Re: Getting filename in NSDocument readFromData
Re: Getting filename in NSDocument readFromData
- Subject: Re: Getting filename in NSDocument readFromData
- From: Kyle Sluder <email@hidden>
- Date: Wed, 28 Apr 2010 11:40:33 -0700
On Wed, Apr 28, 2010 at 11:37 AM, Pascal Harris
<email@hidden> wrote:
> How do I get the filename of the source document when using NSDocument readFromData?
Just override -readFromURL:ofType:error: instead. The documentation is
quite clear about this method's implementation simply being a wrapper
around -readFromFileWrapper:ofType:error, which in turn is documented
to just be a wrapper for -readFromData:ofType:error:.
--Kyle Sluder
_______________________________________________
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