• 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: finder eject images
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: finder eject images


  • Subject: Re: finder eject images
  • From: Patrick Robertson <email@hidden>
  • Date: Tue, 05 Jul 2011 15:34:37 +0100

> 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.

True, but this method has been working for our app for 8 years now, no
problems :)
If you have any better suggestions, feel free to let me know!

For those hoping to use the CoreTypes.bundle ICNS, I have not seen any of
them disappear or change name in over 8 years with OS updates. No changes is
Lion either as far as I can tell.

On 5 July 2011 15:20, Kyle Sluder <email@hidden> wrote:

> 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

  • Follow-Ups:
    • Re: finder eject images
      • From: Corbin Dunn <email@hidden>
    • Re: finder eject images
      • From: Ken Ferry <email@hidden>
    • Re: finder eject images
      • From: Quincey Morris <email@hidden>
References: 
 >Re: finder eject images (From: Lee Ann Rucker <email@hidden>)
 >Re: finder eject images (From: Ulf Dunkel <email@hidden>)
 >Re: finder eject images (From: Sherm Pendley <email@hidden>)
 >Re: finder eject images (From: Patrick Robertson <email@hidden>)
 >Re: finder eject images (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Setting the Sent Actions in IB
  • Next by Date: Re: selected image in webview
  • Previous by thread: Re: finder eject images
  • Next by thread: Re: finder eject images
  • Index(es):
    • Date
    • Thread