• 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: Opening a file in Preview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Opening a file in Preview


  • Subject: Re: Opening a file in Preview
  • From: Douglas Davidson <email@hidden>
  • Date: Fri, 23 Jan 2004 16:29:02 -0800

On Jan 23, 2004, at 3:38 PM, Moray Taylor wrote:

I want to have a button on my app that loads a selected file into 'Preview', I know I could run a shell command, like

open -a /Applications/Preview.app /myfile

but this doesn't seem a very good way to do it, i.e. what if the user has moved Preview.

NSWorkspace. Try e.g.

- (BOOL)openURLs:(NSArray *)urls withAppBundleIdentifier:(NSString *)bundleIdentifier options:(NSWorkspaceLaunchOptions)options additionalEventParamDescriptor:(NSAppleEventDescriptor *)descriptor launchIdentifiers:(NSArray **)identifiers;

or various other simpler methods.

Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Opening a file in Preview (From: Moray Taylor <email@hidden>)

  • Prev by Date: Re: NSPopUpButtonWillPopUpNotification
  • Next by Date: Re: Opening a file in Preview
  • Previous by thread: Opening a file in Preview
  • Next by thread: Re: Opening a file in Preview
  • Index(es):
    • Date
    • Thread