• 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
NSFileWrapper initWithPath: returns nil?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSFileWrapper initWithPath: returns nil?


  • Subject: NSFileWrapper initWithPath: returns nil?
  • From: Jeff Harrell <email@hidden>
  • Date: Wed, 18 Jun 2003 07:18:42 -0500

Does anybody know about NSFileWrapper's error handling features, if any?

I've got a little utility that accepts file drags from the Finder and, in the process of doing other things, instantiates NSFileWrappers for each of them. When I try to init an NSFileWrapper with ~/Library (not using the string ~/Library but rather the path as passed to my program from the Finder through the dragging pasteboard), initWithPath: returns nil. That's not a big deal; I can trap for that very easily. But I'd like to be able to report an error message back to the user. How do I find out why initWithPath: returned nil?

I never thought I'd long for the days of errno, but here we are. ;-)

--
email@hidden
http://homepage.mac.com/jharrell
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Expanding and collapsing windows
  • Next by Date: Re: How to have table column headers span multiple columns?
  • Previous by thread: Re: Expanding and collapsing windows
  • Next by thread: Using drag-n-drop in an NSOpenPanel
  • Index(es):
    • Date
    • Thread