Re: SFAuthorization KAuthorizationEnvironmentIcon setting not working
Re: SFAuthorization KAuthorizationEnvironmentIcon setting not working
- Subject: Re: SFAuthorization KAuthorizationEnvironmentIcon setting not working
- From: David Garcea <email@hidden>
- Date: Thu, 18 Jan 2007 17:18:55 -0800
- Thread-topic: SFAuthorization KAuthorizationEnvironmentIcon setting not working
Thanks for the info.
I've incorporated your changes, but unfortunately it still isn't working.
Regards,
David
On 1/18/07 5:02 PM, "stephen joseph butler" <email@hidden>
wrote:
> I don't know if it's causing your problems, but this is most certainly
> not the correct way to pass C strings from an NSString. -length
> returns the number of characters, which will be less than the UTF8
> encoding if the string contains non-7 bit characters. Plus, it's best
> to not assume that UTF8 is the filesystem representation. Here's a
> better version:
>
> const char *cPathToIcon = [pathToIcon fileSystemRepresentation];
> const char *cPrompt = [prompt UTF8String];
>
> AuthorizationItem dialogConfiguration[2] = {
> {kAuthorizationEnvironmentIcon, strlen( cPathToIcon ), (void*)cPathToIcon,
> 0},
> {kAuthorizationEnvironmentPrompt, strlen( cPrompt ), (void*)cPrompt, 0}
> };
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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