Re: Re: Re: Re: Launch bundled application before main application
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