• 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: Getting smaller icon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting smaller icon


  • Subject: Re: Getting smaller icon
  • From: Eric Forget <email@hidden>
  • Date: Fri, 27 Feb 2004 03:29:28 -0500

> I know [fileWrapper icon] returns the 32 x 32 file icon, but does
> anyone know how I get the other representations, such as the 16 x 16
> one for instance.

Francisco,

Something like this:

NSImage *icon = [fileWrapper icon];

[icon setSize:NSMakeSize(16, 16)];

Now "icon" will compose a 16 x 16 icon.

Eric

___________________________________________________________________

Eric Forget Cafederic
email@hidden <http://www.cafederic.com/>

Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684>
_______________________________________________
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.


References: 
 >Getting smaller icon (From: Francisco Tolmasky <email@hidden>)

  • Prev by Date: Re: Protocol doesn't seem to compile?
  • Next by Date: Removing fuzzy lines (was Re: [NSBezierPath clipRect] do not do what is says!)
  • Previous by thread: Getting smaller icon
  • Next by thread: Is there anyway to forward these events to my custom buttons?
  • Index(es):
    • Date
    • Thread