• 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: NSString and file system Re: AppleScript in Sandboxed App
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSString and file system Re: AppleScript in Sandboxed App


  • Subject: Re: NSString and file system Re: AppleScript in Sandboxed App
  • From: "email@hidden" <email@hidden>
  • Date: Wed, 16 Jan 2013 17:12:15 +0000

On 16 Jan 2013, at 15:50, Fritz Anderson <email@hidden> wrote:

> On 16 Jan 2013, at 3:52 AM, "email@hidden" <email@hidden> wrote:
>
>> 	Py_SetProgramName((char *)[[scriptRunner launchPath] UTF8String]);
>
> If a char* is destined for the file system, you should be using -fileSystemRepresentation, not -UTF8String.
>
> I forget that all the time.

To be honest I rarely remember to call -fileSystemRepresentation.
The docs seem to indicate that its only purpose is to replace abstract / and . characters with OS equivalents.
On OS X this would have seem to have no net result.

Is there more to this?

Jonathan
_______________________________________________

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

  • Follow-Ups:
    • Re: NSString and file system Re: AppleScript in Sandboxed App
      • From: Quincey Morris <email@hidden>
References: 
 >AppleScript in Sandboxed App (From: John Nairn <email@hidden>)
 >Re: AppleScript in Sandboxed App (From: Mike Abdullah <email@hidden>)
 >Re: AppleScript in Sandboxed App (From: John Nairn <email@hidden>)
 >Re: AppleScript in Sandboxed App (From: "email@hidden" <email@hidden>)
 >NSString and file system Re: AppleScript in Sandboxed App (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Provisioning profiles
  • Next by Date: Re: NSString and file system Re: AppleScript in Sandboxed App
  • Previous by thread: NSString and file system Re: AppleScript in Sandboxed App
  • Next by thread: Re: NSString and file system Re: AppleScript in Sandboxed App
  • Index(es):
    • Date
    • Thread