Re: [NSWorkspace fullPathForApplication:] : Classic forever?
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.