Re: NSWorkspace openFile: bug?
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