Trying to use fileExistsAtPath:isDirectory:, I saw in the Apple documentaion that isDirectory parameter should not be a boolean but a pointer to a Boolean. I can't figure how to pass a pointer to a function definition like:
Code: Select all
private foreign handler ObjC_NSFolderExistsAtPath(in pFileManager as ObjcId, in pFilename as ObjcId, in pBoolean as CBool) \
returns CBool binds to "objc:NSFileManager.-fileExistsAtPath:isDirectory:"
Code: Select all
put ObjC_NSFolderExistsAtPath(tFileManager, StringToNSString(pFilename), pBoolean) into tResultExists
Thank you for you help.