Re: Newbie-Saving file in Tiger
Re: Newbie-Saving file in Tiger
- Subject: Re: Newbie-Saving file in Tiger
- From: Ricky Sharp <email@hidden>
- Date: Mon, 10 Oct 2005 15:48:36 -0500
On Oct 10, 2005, at 12:52 PM, Steve Gran wrote:
Anyway, I'm also going thru Hillegass' excellent book and am now on
the subject of saving with NSKeyedArchiver. But in Xcode under the
dataRepresentationOfType method the following comment says "For
applications targeted for Tiger or later systems, you should use
the new Tiger API -dataOfType:error:"
Well I looked at the documentation but still don't understand how
to use this correctly. Remember I'm like a six year old when it
comes to programming.
If I'm just setting up a simple save my document to a file, what is
the correct to use this?
Would it be...
- (NSData *)dataOfType:(NSString *)aType
{
return [NSKeyedArchiver archivedDataWithRootObject:tasks];
}
That looks good to me.
___________________________________________________________
Ricky A. Sharp mailto:email@hidden
Instant Interactive(tm) http://www.instantinteractive.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden