• 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: Proper way to use NSUserDefaults + Bindings + Keychain
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Proper way to use NSUserDefaults + Bindings + Keychain


  • Subject: Re: Proper way to use NSUserDefaults + Bindings + Keychain
  • From: "Shawn Erickson" <email@hidden>
  • Date: Fri, 17 Aug 2007 14:00:40 -0700

On 8/17/07, Andrei Tchijov <email@hidden> wrote:
> Hi,
>         I have an application which needs to be able to store standard
> network login information ( host name, port, user name, password ).
> I am using NSUserDefaults with Bindings to "link" appropriate fields
> from the GUI to "host name", "port" and "user name". For "password" I
> am using none-NSUserDefaults related binding which uses Keychain APIs
> to store password.  It works, but I am far from been happy. My
> biggest problem is this: Lets imagine following scenario:
>         1) Some one enters host name + port + user name
>         2) Then he/she enters password - which gets stored in Keychain as a
> password for particular host name + port + user name
>         3) Some one change host name.
> The way it works now, GUI "forgets" password (because it was
> associated with "old" host name ) and we end up having "orphan"
> password in Keychain.

Sounds like you generally control all of the data (ignoring use of
Keychain Access) and you know when host name is changed by the user
(assuming you are prompting the user for this information). If so...
then when host name changes keep the new and old host name around long
enough for you to replace the now out-of-date keychain entry.

-Shawn
_______________________________________________

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

References: 
 >Proper way to use NSUserDefaults + Bindings + Keychain (From: Andrei Tchijov <email@hidden>)

  • Prev by Date: Re: OutlineView Column Problem
  • Next by Date: Re: modifying info dictionary
  • Previous by thread: Proper way to use NSUserDefaults + Bindings + Keychain
  • Next by thread: [moderator] various "YouMint" and other invitations
  • Index(es):
    • Date
    • Thread