Re: App name from Bundle Identifier?
Re: App name from Bundle Identifier?
- Subject: Re: App name from Bundle Identifier?
- From: Dave DeLong <email@hidden>
- Date: Sat, 13 Sep 2008 10:14:57 -0600
I think MobileMe mail is still being silly because I only got 2
replies, but I see on CocoaBuilder that there were actually more.
Whomever it was that suggested using NSFileManager was spot on! I've
got this in an NSValueTransformer subclass and it works great:
- (id) transformedValue:(id)value {
NSString * path = [[NSWorkspace sharedWorkspace]
absolutePathForAppBundleWithIdentifier:(NSString *)value];
return [[NSFileManager defaultManager] displayNameAtPath:path];
}
Thanks for the suggestions!
Dave
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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