• 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
Re: Newbie-Saving file in Tiger
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Newbie-Saving file in Tiger
      • From: Sherm Pendley <email@hidden>
References: 
 >Newbie-Saving file in Tiger (From: Steve Gran <email@hidden>)

  • Prev by Date: [Meet] Cocoaheads Los Angeles organizational meeting
  • Next by Date: CoreData - KVO on unarchived array/dictionary elements?
  • Previous by thread: Newbie-Saving file in Tiger
  • Next by thread: Re: Newbie-Saving file in Tiger
  • Index(es):
    • Date
    • Thread