• 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: Why is NSString->FSRef so hard?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why is NSString->FSRef so hard?


  • Subject: Re: Why is NSString->FSRef so hard?
  • From: Erg Consultant <email@hidden>
  • Date: Tue, 28 Apr 2009 14:03:03 -0700 (PDT)

Well, I finally got it to work - but it took a lot of work.

How does one launch an exe inside an app bundle if LSOpenApplication isn't desgined to do that?

Erg


________________________________
From: Jean-Daniel Dupas <email@hidden>
To: cocoa-dev <email@hidden>
Sent: Tuesday, April 28, 2009 9:59:07 AM
Subject: Re: Why is NSString->FSRef so hard?


Le 28 avr. 09 à 17:47, Michael Ash a écrit :

> On Tue, Apr 28, 2009 at 1:13 AM, Erg Consultant
> <email@hidden> wrote:
>> Apple's doc's specifically say to stay away from using the "CString" routines which require encodings. So now the encoding issue goes away. The problem is LSOpenApplication() does not like the FSRef I pass it which gets created from the path NSString->CFURL->FSRef.
>
> They state the opposite. They say to stay away from the ones which do
> NOT require encodings. That's because the ones without encodings use
> the "system encoding" which is not guaranteed to be anything useful.
> The ones with encodings require you to specify them yourself and are
> therefore just fine.

And to add a word about your LS issue, it's because to launch an app, you should create a ref on the bundle, not on the executable..

_______________________________________________

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

  • Follow-Ups:
    • Re: Why is NSString->FSRef so hard?
      • From: Kyle Sluder <email@hidden>
References: 
 >Why is NSString->FSRef so hard? (From: Erg Consultant <email@hidden>)
 >Re: Why is NSString->FSRef so hard? (From: "Sean McBride" <email@hidden>)
 >Re: Why is NSString->FSRef so hard? (From: Erg Consultant <email@hidden>)
 >Re: Why is NSString->FSRef so hard? (From: Michael Ash <email@hidden>)
 >Re: Why is NSString->FSRef so hard? (From: Erg Consultant <email@hidden>)
 >Re: Why is NSString->FSRef so hard? (From: Michael Ash <email@hidden>)
 >Re: Why is NSString->FSRef so hard? (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: Storing a table view in user defaults
  • Next by Date: Re: Why is NSString->FSRef so hard?
  • Previous by thread: Re: Why is NSString->FSRef so hard?
  • Next by thread: Re: Why is NSString->FSRef so hard?
  • Index(es):
    • Date
    • Thread