Le 26 janv. 09 à 11:29, Florian Soenens a écrit :

Hi list,

i'm working on a 10.4+ app and i use some icon templates like NSPreferencesGeneral, NSUser, etc... The problem is that something like [toolbarItem setImage:[NSImage imageNamed:@"NSPreferencesGeneral"]] only works on 10.5+

My question is, does anyone know the location these icons on then system so i can take them and build them with my project instead of relying on the runtime based approach.

I looked in System -> CoreServices but there not all there.

Thanks in advance,
Florian.

Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


What about retreiving them on 10.5 using NSImage functions ?

[[[NSImage imageNamed:@"NSPreferencesGeneral"] TIFFRepresentationUsingCompression:NSTIFFCompressionLZW] writeToFile:@"NSPreferencesGeneral.tiff" atomically:NO];


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to