Re: finder eject images
Re: finder eject images
- Subject: Re: finder eject images
- From: Kyle Sluder <email@hidden>
- Date: Tue, 05 Jul 2011 07:20:51 -0700
On Jul 5, 2011, at 5:20 AM, Patrick Robertson <email@hidden> wrote:
> I wasn't suggesting that be done. Here's the code I use in my apps:
>
> - (NSImage *)sysIconNamed:(NSString *)name {
>
> NSString *path = [[NSBundle bundleWithPath:
> @"/System/Library/CoreServices/CoreTypes.bundle"] pathForResource:name
> ofType:@"icns"];
This is extremely fragile. You have no guarantee this image will continue to exist, that it will always be in ICNS format, or that the CoreTypes bundle will even continue to exist.
--Kyle Sluder_______________________________________________
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