• 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: SFAuthorization KAuthorizationEnvironmentIcon setting not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: SFAuthorization KAuthorizationEnvironmentIcon setting not working (From: "stephen joseph butler" <email@hidden>)

  • Prev by Date: Re: is printing tabular data really that annoying?
  • Next by Date: HTMLEditing.framework & Cocoa
  • Previous by thread: Re: SFAuthorization KAuthorizationEnvironmentIcon setting not working
  • Next by thread: HTMLEditing.framework & Cocoa
  • Index(es):
    • Date
    • Thread