NSFileWrapper initWithPath: returns nil?
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.