Re: receiving a file on app startup
Re: receiving a file on app startup
- Subject: Re: receiving a file on app startup
- From: Andrew Merenbach <email@hidden>
- Date: Tue, 5 Feb 2008 09:12:04 -0800
Hi,
Note that as of Tiger, -dataRepresentationofType: and -
loadDataRepresentation:ofType: are deprecated. For Tiger and above,
use:
- (NSData *)dataOfType:(NSString *)typeName error:(NSError **)outError
- (BOOL)readFromData:(NSData *)data ofType:(NSString *)typeName error:
(NSError**)outError
instead.
Cheers,
Andrew
On Feb 5, 2008, at 7:26 AM, Torsten Curdt wrote:
On 05.02.2008, at 16:14, Davide Scheriani wrote:
him
did u succed with that task?
which selector/method do you need to implement when the application
open the file?
Yes, you specify the class along with the file types on the target
configuration. That class itself needs to be derived from NSDocument
and have the methods
- (NSData *)dataRepresentationOfType:(NSString *)aType
- (BOOL)loadDataRepresentation:(NSData *)data ofType:(NSString *)aType
Then you are set :)
cheers
--
Torsten
_______________________________________________
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
_______________________________________________
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