When using the "external string constants" defined in NSPasteboard or NSFileManager in 64-Bit Cocoa such as NSFileType, NSFileCreationDate, NSStringPboardType and so on, I get an error of the following type:
ld: 32-bit RIP relative reference out of range (-4297995934 max is +/-4GB): from _..._$$_...$crc9E1F315A (0x1002E35F0) to _NSStringPboardType@0x00000000 (0x00000000) in '_..._$$_...' from /Users/.../lib/x86_64-darwin/FileAttributes.o for architecture x86_64In 32-Bit Carbon, the following was possible:
var
AKey: NSString;
begin
AKey := NSURLIsHiddenKey; // or any other constant
end;
Now, I always get this error, no matter how I use the constants. Also something like ANSMutableDictionary.setObject_forKey(ADate, NSFileModificationDate), what was possible in Carbon, is not possible when compiling for 64 Bit Cocoa.
Does someone have an idea what one can do here?