• 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: Brian Ganninger <email@hidden>
  • Date: Fri, 5 Jan 2007 14:24:06 -0600

I think it's more anecdotal as the first time I implemented Growl support I don't this method wasn't available (around 0.4/5 with the old launchGrowlIfInstalledNotifyingTarget:... methods and brethren) [+ (BOOL)isGrowlInstalled was added at the beginning of 2005 in late 900s or early 1000s of the revisions, I forget where] and I've spent more time in other code than in this specific chunk in the past few years. Can and will I update, probably ;)

On Jan 5, 2007, at 1:35 PM, Sean McBride wrote:

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


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>)
 >Re: NSWorkspace openFile: bug? (From: "Sean McBride" <email@hidden>)

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