• 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: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

  • Follow-Ups:
    • Re: NSWorkspace openFile: bug?
      • From: Brian Ganninger <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>)
 >Re: NSWorkspace openFile: bug? (From: Brian Ganninger <email@hidden>)

  • Prev by Date: Re: NSWorkspace openFile: bug?
  • 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