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

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


  • Subject: Re: Re: Re: Launch bundled application before main application
  • From: Claudio Procida <email@hidden>
  • Date: Mon, 20 Nov 2006 12:08:07 +0100

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
  • Follow-Ups:
    • Re: Re: Re: Re: Launch bundled application before main application
      • From: "Julien Jalon" <email@hidden>
  • Prev by Date: Re: CoreData undo and observing related objects
  • Next by Date: More autorelease pool strangeness
  • Previous by thread: Re: Re: Launch bundled application before main application
  • Next by thread: Re: Re: Re: Re: Launch bundled application before main application
  • Index(es):
    • Date
    • Thread