Re: NSWorkspace openFile: bug?
Re: NSWorkspace openFile: bug?
- Subject: Re: NSWorkspace openFile: bug?
- From: "Sean McBride" <email@hidden>
- Date: Fri, 5 Jan 2007 14:35:36 -0500
- Organization: Rogue Research
On 2007-01-05 13:31, Brian Ganninger said:
>And I've used the following to conditionally enable the Growl-
>launching button (a method on my app delegate that I can just bind to):
>/* this method looks for common install locations for Growl and let's
>us know whether to prompt or not */
>
>-(BOOL)detectGrowl
>{
> BOOL foundGrowl = NO;
>
> // framework check
> if([[NSFileManager defaultManager] fileExistsAtPath:@"/Library/
>Frameworks/Growl.framework"])
> foundGrowl = YES;
>
> *SNIP*
But with this technique you've hardcoded all kinds of paths. Why make
those assumptions when you don't need to? Can't you just call
[GrowlApplicationBridge isGrowlInstalled] ?
--
____________________________________________________________
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