• 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: NSWorkspace openFile: bug?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWorkspace openFile: bug?


  • Subject: Re: NSWorkspace openFile: bug?
  • From: "Sean McBride" <email@hidden>
  • Date: Fri, 5 Jan 2007 14:24:48 -0500
  • Organization: Rogue Research

On 2007-01-05 11:09, Paul Borokhov said:

>Hmmm, I didn't think this all the way through... :( I keep assuming that
>it will always succeed on the first iteration, don't know why...
>BUT, I'm still looking for a cleaner way of doing this. Is there such a
>way? I tried using launchAppWithBundleIdentifier (specifically, with
>[[NSWorkspace sharedWorkspace] launch
>AppWithBundleIdentifier:@"com.growl.prefpanel"
>options:NSWorkspaceLaunchWithoutAddingToRecents
>additionalEventParamDescriptor:nil launchIdentifier:nil]), but that
>simply returned NO every time.

A prefpane is not an app. :)

> Seems wasteful to do it like this. And
>running AppleScripts is something I'd rather avoid, mostly due to
>performance issues.

It's just one little line of AppleScript, surely not slow compared to
how long it takes Sys Prefs to launch and switch panes.  You could use
AppleEvents directly if you're that concerned.

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

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

References: 
 >NSWorkspace openFile: bug? (From: Paul Borokhov <email@hidden>)
 >Re: NSWorkspace openFile: bug? (From: John Stiles <email@hidden>)
 >Re: NSWorkspace openFile: bug? (From: Paul Borokhov <email@hidden>)

  • Prev by Date: previousResponder?
  • Next by Date: Re: NSWorkspace openFile: bug?
  • Previous by thread: Re: NSWorkspace openFile: bug?
  • Next by thread: Re: NSWorkspace openFile: bug?
  • Index(es):
    • Date
    • Thread