• 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: convert password from SecKeychainFindGenericPassword to NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: convert password from SecKeychainFindGenericPassword to NSString


  • Subject: Re: convert password from SecKeychainFindGenericPassword to NSString
  • From: "Stephen J. Butler" <email@hidden>
  • Date: Sun, 31 Jan 2010 20:20:43 -0600

On Sun, Jan 31, 2010 at 7:51 PM, Stuart Malin <email@hidden> wrote:
> I acquire a password from a keychain using SecKeychainFindGenericPassword. That provides a non null terminated c string and a length. I had been using [NSString stringWithCString: length:] to get an NSString instance of the password. However, the +stringWithCString:length: method was deprecated way back, so I thought I'd clean up my code and use +stringWithCString:encoding:  -- however that doesn't work because the  supplied C string isn't null terminated.

Look at initWithBytes:length:encoding:
_______________________________________________

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: 
 >convert password from SecKeychainFindGenericPassword to NSString (From: Stuart Malin <email@hidden>)

  • Prev by Date: Re: convert password from SecKeychainFindGenericPassword to NSString
  • Next by Date: sine wave
  • Previous by thread: Re: convert password from SecKeychainFindGenericPassword to NSString
  • Next by thread: sine wave
  • Index(es):
    • Date
    • Thread