Largest image representation
Largest image representation
- Subject: Largest image representation
- From: Daniel Gobera <email@hidden>
- Date: Fri, 9 Mar 2007 11:43:47 -0800
Hi.
I have an NSImage with 3 representations (it's actually an icon
obtained from NSWorkspace iconForFile). I'd like to save this image,
but I only need the largest representation. Is there a way to obtain
this directly? NSImage's bestRepresentationForDevice: returns the
32x32 representation, but I want the 128x128 one.
Currently what I do is iterate over the array of representations and
compare their sizes to manually get the largest one. It may not be
too expensive, but I wanted to know if there's a more elegant solution.
Thanks,
Daniel
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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