• 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: Xavier Elizalde <email@hidden>
  • Date: Wed, 26 Apr 2006 17:28:38 +1000

This exercise had me read a plist from the application bundle for the default values for text fields rather than have the values directly in the code, but the modifications were put in a plist in ~/Library/ Preferences. I got it working fine. I know what you mean, though.

On 26/04/2006, at 2:54 AM, Ondra Cada wrote:

Xavier,

just a bit of clarification (things noted below tend to be often misunderstood):

On Apr 25, 2006, at 6:39 PM, Xavier Elizalde wrote:

I thought it meant to write information in the application bundle,

Generally, you can*not* write to the app bundle runtime, no way. The reason is that in any half-decent setup the app bundle is not user writeable.


not just read from the application bundle and write in ~/Library/ Preferences

It does not. Whatever you set by [defaults set*Value:... forKey:] gets written there all right; registered values though are *not* written *anywhere*. They are kept in a cache and used from there if there is no appropriate value in Preferences.
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc




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

  • Prev by Date: Need suggestion on creating web form-filling application
  • Next by Date: Re: Russian Language Support (Pref Pane)
  • Previous by thread: Re: Newbie questions
  • Next by thread: completion weirdness
  • Index(es):
    • Date
    • Thread