• 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: Read/Write to info.plist's LSEnvironment
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Read/Write to info.plist's LSEnvironment


  • Subject: RE: Read/Write to info.plist's LSEnvironment
  • From: "Lee, Frederick" <email@hidden>
  • Date: Mon, 21 Jul 2008 13:09:26 -0400
  • Thread-topic: Read/Write to info.plist's LSEnvironment

I was thinking of keeping the User ID and other simple < 2KB of
identifiers
within the bundle.  I found the LSEnvironment option and it 'appears' to
be what
I'm after.

But I'm open to others' suggestions (based on their experiences) and
shall
dutifully follow the more logical route.

For one thing, working with NSUserDefaults is the more intuitive
approach from
my experience.

But FWIW... using XML based LSEnvironment had appeared to more...
modular.
However, the CF-support for LSEnvironment is more cumbersome for me.

Ric.

-----Original Message-----
From: Finlay Dobbie [mailto:email@hidden]
Sent: Monday, July 21, 2008 11:56 AM
To: Lee, Frederick
Cc: email@hidden
Subject: Re: Read/Write to info.plist's LSEnvironment

On Mon, Jul 21, 2008 at 5:50 PM, Lee, Frederick
<email@hidden> wrote:
> Simple need: to store NSString values (UserName, PW) in a Dictionary
> format within my application's .plist.
>
> I've read Apple's Cocoa literature and found that .plist's
LSEnvironment
> is the way to go.
>
> Using the .plist editor to add LSEnvironment dictionary and member
keys
> is straight forward.
>
> But I'm having trouble figuring out how to programmatically
> update/retrieve these values.

You cannot guarantee that the user of your application will have write
access to your bundle. Why are you trying to store them within your
application rather than using, for example, NSUserDefaults? It doesn't
sound like LSEnvironment is what you want at all.

 -- Finlay
_______________________________________________

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

  • Follow-Ups:
    • Re: Read/Write to info.plist's LSEnvironment
      • From: Jens Alfke <email@hidden>
References: 
 >Read/Write to info.plist's LSEnvironment (From: "Lee, Frederick" <email@hidden>)
 >Re: Read/Write to info.plist's LSEnvironment (From: "Finlay Dobbie" <email@hidden>)

  • Prev by Date: Re: Handling key equivalents in a controller class?
  • Next by Date: Re: Read/Write to info.plist's LSEnvironment
  • Previous by thread: Re: Read/Write to info.plist's LSEnvironment
  • Next by thread: Re: Read/Write to info.plist's LSEnvironment
  • Index(es):
    • Date
    • Thread