• 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: Re: Re: Re: Launch bundled application before main application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: Re: Re: Launch bundled application before main application


  • Subject: Re: Re: Re: Re: Launch bundled application before main application
  • From: "Julien Jalon" <email@hidden>
  • Date: Mon, 20 Nov 2006 18:54:19 +0100

Oups... sorry :-)

Never do Mail compiled code.
As you noted, executablePath has to be called on the migration app's bundle.

--
Julien

On 11/20/06, Claudio Procida <email@hidden> wrote:
> Julien Jalon wrote:

> Much better use:
> - (NSString *)pathForResource:(NSString *)name ofType:(NSString *)
> extension
> - (NSString *)executablePath
>
>               NSString *migrationAgentPath = [[[NSBundle mainBundle]
> pathForResource:@"Migration Agent" ofType:@"app"] executablePath];

The latter won't work:

2006-11-20 11:50:43.705 MiniBatteryLogger[12545] *** -[NSCFString
executablePath]: selector not recognized [self = 0x3c17410]

I've modified it as follows:

NSString *migrationAgentPath = [[NSBundle bundleWithPath:[[NSBundle
mainBundle] pathForResource:@"Migration Agent" ofType:@"app"]]
executablePath];

--
Claudio Procida
Emeraldion Lodge
http://www.emeraldion.it


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Re: Re: Re: Launch bundled application before main application (From: Claudio Procida <email@hidden>)

  • Prev by Date: Re: Re: More autorelease pool strangeness
  • Next by Date: Do I need to subclass NSCell?
  • Previous by thread: Re: Re: Re: Launch bundled application before main application
  • Next by thread: NSAnimation-caused crash
  • Index(es):
    • Date
    • Thread