• 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 13:20:53 +0100

> Yes, but we're supposed to use them in-place, not copy them into our apps.

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"];

if (!path) return nil;

return [[[NSImage alloc] initByReferencingFile:path] autorelease];

}


Works well :)

On 5 July 2011 13:09, Sherm Pendley <email@hidden> wrote:

> On Tue, Jul 5, 2011 at 6:53 AM, Ulf Dunkel <email@hidden> wrote:
> > Hi Lee Ann.
> >
> >> Also I think Apple frowns on copying their icons into your apps. Only
> the
> >> ones you can get through imageNamed: or iconForFileType: are fair game.
> >
> > Wasn't it Steve Jobs who invited us to pick all their nice icons,
> somewhen
> > in the past when he introduced Leopard (or even Tiger)?
>
>
> sherm--
>
> --
> Cocoa programming in Perl:
> http://camelbones.sourceforge.net
> _______________________________________________
>
> 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
>
_______________________________________________

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: Kyle Sluder <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>)

  • Prev by Date: Re: finder eject images
  • Next by Date: Re: finder eject images
  • Previous by thread: Re: finder eject images
  • Next by thread: Re: finder eject images
  • Index(es):
    • Date
    • Thread