• 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 fullPathForApplication:] : Classic forever?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NSWorkspace fullPathForApplication:] : Classic forever?


  • Subject: Re: [NSWorkspace fullPathForApplication:] : Classic forever?
  • From: Jeremy Dronfield <email@hidden>
  • Date: Wed, 12 May 2004 17:30:02 +0100

On 12 May 2004, at 2:59 pm, Stephane Sudre wrote:

From what I'm seeing, the fullPathForApplication: method of NSWorkspace tends to prefer to return the Classic application path when both a Carbon and Mac OS 9 application are available?

Is this a bug or a feature?

In my case, the "problem" is occurring with Internet Explorer.

NSLog(@"%@",[[NSWorkspace sharedWorkspace] fullPathForApplication:@"Internet Explorer"]);

I think it's a bug in the way NSWorkspace handles the application name. I noticed the same "Classic bias" with -[NSWorkspace openFile:withApplication:]. If you pass the application name with a .app path extension, you get the OS X version. Presumably, when these methods iterate through available apps, they hit the one without the path extension first and return that.

Regards,

-Jeremy
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >[NSWorkspace fullPathForApplication:] : Classic forever? (From: Stephane Sudre <email@hidden>)

  • Prev by Date: Re: How to share data between application and Printing Plug-In Module?
  • Next by Date: Re: setAccessoryView
  • Previous by thread: [NSWorkspace fullPathForApplication:] : Classic forever?
  • Next by thread: Affine transform questions
  • Index(es):
    • Date
    • Thread