Re: Get default Browser and Mail Client
Re: Get default Browser and Mail Client
- Subject: Re: Get default Browser and Mail Client
- From: David Remahl <email@hidden>
- Date: Tue, 17 Sep 2002 15:08:47 +0200
>
On Tuesday, September 17, 2002, at 05:02 , Stephane ODUL wrote:
>
>
> By the way is there a cleaner way than regex to extract the name of the
>
> app from the URL I get: I receive /Applications/Internet/Navigator.app
>
> and I want "Navigator".
>
>
Hmmmm... would
>
>
[[path lastPathComponent] stringByDeletingPathExtension]
>
>
be sufficient?
Apple's recommended way is to use
[[NSFileManager defaultManager] displayNameAtPath:path];
This will show the file name extension on files where it should, and hide it
on those where it should. It will also show localized names whene available.
/ David Remahl
_______________________________________________
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.