• 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 questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie questions


  • Subject: Re: Newbie questions
  • From: Paul Lynch <email@hidden>
  • Date: Tue, 25 Apr 2006 14:03:18 +0100


On 25 Apr 2006, at 13:42, Xavier Elizalde wrote:

I've been reading O'Reilly's "Learning Cocoa with Objective-C", even though I'm using XCode 2.2.1 on OS X 10.4.6, just to get my feet wet. The fact that the developing tools have changed makes it more of a learning experience to figure out how to adapt to the differences.

Wrong book. Get Aaron Hillegass' Cooca, book, second edition. There are other decent books, but unfortunately none of them are published by O'Reilly or sponsored by ADC, and Aaron's is the only tutorial.


2. On page 296, the third exercise at the end of Chapter 15 says to modify the example application "so that it reads its application defaults from a .plist file contained as a resource in its application bundle" rather than in ~/Library/Preferences. I can't figure out how to do that.

Look at NSPropertyListSerialization and NSDictionary dictionaryWithContentsOfFile:, and read Property List Programming Guide for Cocoa - that's how to read a plist; it's not immediately obvious how to hook this in with NSUserDefaults, but it's not exactly hard, either. (Hint given rather than an explicit solution)


Paul
_______________________________________________
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:
    • Defaults registration
      • From: Ondra Cada <email@hidden>
References: 
 >Newbie questions (From: Xavier Elizalde <email@hidden>)

  • Prev by Date: Re: Temporary object created at runtime with Core Data
  • Next by Date: Re: Newbie questions
  • Previous by thread: Newbie questions
  • Next by thread: Defaults registration
  • Index(es):
    • Date
    • Thread