Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: System icons



Title: Re: System icons
Thanks Mike...this is great!


On 2/26/08 3:21 PM, "Mike Swingler" <email@hidden> wrote:

On Feb 26, 2008, at 11:33 AM, Ken Orr wrote:

Is there a way to get at the System images from Java (like those referenced below)?
 
 http://developer.apple.com/documentation/UserExperience/Conceptual/OSXHIGuidelines/XHIGIcons/chapter_15_section_10.html#//apple_ref/doc/uid/20000967-SW15
 

Toolkit.getDefaultToolkit().getImage("NSImage://NSComputer");
Toolkit.getDefaultToolkit().getImage("NSImage://NSInfo");
etc.

Just take the image name from that page, and chop out the "ImageName" component. As these system images are Leopard-only, so is the Java support for it.

The NSImage:// syntax also loads arbitrary images from your bundled application's Resources folder (ICNS, PDF, multi-res TIFF, etc). It is, unsurprisingly, a cheap trick that calls though the [NSImage imageNamed:] method.

Cheers,
Mike Swingler
Java Frameworks Engineer
Apple Inc.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: System icons (From: Mike Swingler <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.