Re: Why is NSString->FSRef so hard?
Re: Why is NSString->FSRef so hard?
- Subject: Re: Why is NSString->FSRef so hard?
- From: Erg Consultant <email@hidden>
- Date: Mon, 27 Apr 2009 23:19:57 -0700 (PDT)
I should mention I am using XCode 2.5 under 10.5 so I cannot use the 10.5 SDK nor Obj-C 2.0.
Erg
________________________________
From: Stephen J. Butler <email@hidden>
To: Cocoa-Dev List <email@hidden>
Sent: Monday, April 27, 2009 11:14:44 PM
Subject: Re: Why is NSString->FSRef so hard?
On Tue, Apr 28, 2009 at 12:21 AM, Erg Consultant
<email@hidden> wrote:
> LSOpenCFURLRef doesn't work either - kLSApplicationNotFoundErr.
>
> The nature of the file is the app's exe which is normally inside the MacOS dir.
>
> However, all this works perfectly fine if there are no special chars in the path - the exe launches just fine. I find it hard to believe that Apple would issue an API that executes single executable binaries only in the case that they don't have special chars in the path.
Because you seem to still think this is Apple's fault, I've created a
simple app which demonstrates what you are telling us you are trying
to do:
https://netfiles.uiuc.edu:443/sbutler1/www/Open An App.tar.gz
The way I tested it is I copied TextEdit to my desktop. Then I renamed
it TextEdit™, and went into the app bundle and renamed the executable
TextEdit™. Then I typed this into the text box and hit return:
/Users/me/Desktop/TextEdit™.app/Contents/MacOS/TextEdit™
Hit launch and TextEdit launched. Ergo, OS X has no problems with
special characters in the path. Your issue is in your code. QED.
_______________________________________________
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
_______________________________________________
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