• 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: Launch with bundle fails the first time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Launch with bundle fails the first time


  • Subject: Re: Launch with bundle fails the first time
  • From: Trygve Inda <email@hidden>
  • Date: Sat, 09 Dec 2006 08:56:01 +0000
  • Thread-topic: Launch with bundle fails the first time

> You know the location of the application, don't make the system look for it.
> Use any of the NSBundle methods to construct the path:
>
> - (NSString *)pathForResource:(NSString *)name ofType:(NSString *)extension
> - (NSString *)resourcePath
>
>
> NSURL *appURL = [NSURL fileURLWithPath:[NSString
> stringWithFormat:@"%@/Contents/FolderForApps/MySubApp.app", [[NSBundle
> mainBundle] bundlePath]]];
>
> [[NSWorkspace sharedWorkspace] openURL:appURL];
>
> Regards,
> Conor
> http://www.bruji.com/

Same situation... I lose these options.

options:(NSWorkspaceLaunchOptions)options
additionalEventParamDescriptor:(NSAppleEventDescriptor *)descriptor
launchIdentifier:(NSNumber **)identifier


Trygve


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: Launch with bundle fails the first time
      • From: "Adam R. Maxwell" <email@hidden>
    • Re: Launch with bundle fails the first time
      • From: leenoori <email@hidden>
References: 
 >Re: Launch with bundle fails the first time (From: Conor <email@hidden>)

  • Prev by Date: Re: Re-using a custom view
  • Next by Date: RE: PDFKit: problem with PDFView goToDestination across PDFViews.
  • Previous by thread: Re: Launch with bundle fails the first time
  • Next by thread: Re: Launch with bundle fails the first time
  • Index(es):
    • Date
    • Thread