NSString and file system Re: AppleScript in Sandboxed App
NSString and file system Re: AppleScript in Sandboxed App
- Subject: NSString and file system Re: AppleScript in Sandboxed App
- From: Fritz Anderson <email@hidden>
- Date: Wed, 16 Jan 2013 09:50:48 -0600
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.
— F
--
Fritz Anderson
Xcode 4 Unleashed: 4.5 supplement for free!
http://www.informit.com/store/xcode-4-unleashed-9780672333279
_______________________________________________
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