Dear List!

I recently switched to using NSFileManagers copyItemAtPath method instead of the deprecated copyPath. When I compile (and run) the application in question in 64 Bit, the new method is obviously not able to copy a symbolic link but instead returns an NSError:

Error Domain=NSPOSIXErrorDomain Code=12 UserInfo=0x115ce8a40 "Operation could not be completed. Cannot allocate memory"

If I use the old method or compile the app as a 32 bit universal binary the links are copied.
This is happening under 10.5.8.

I find it hard to believe that such a fundamental thing has not been tested. Maybe I overlook something but the documentation of the method still states that symlinks are not traversed and themselves copied...

Any suggestion would be much appreciated...

Regards
Thomas Bauer


_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to