On Sun, Jan 31, 2010 at 7:51 PM, Stuart Malin <stu...@zhameesha.com> 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com