• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSFileManager copyItem and 64 Bit not able to copy a symlink?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSFileManager copyItem and 64 Bit not able to copy a symlink?


  • Subject: NSFileManager copyItem and 64 Bit not able to copy a symlink?
  • From: Thomas Bauer <email@hidden>
  • Date: Sun, 30 Aug 2009 21:40:07 +1200

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@hidden)

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:
This email sent to email@hidden


  • Prev by Date: NSScroller width
  • Next by Date: Re: Get error message about registered observers when Object receives dealloc message
  • Previous by thread: Re: NSScroller width
  • Next by thread: x86_64 "Symbol not found" problem
  • Index(es):
    • Date
    • Thread