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: NSImage://NSAddTemplate and Tiger



I've redrawn these images in Fireworks (I wanted to avoid any murkiness of using Apples image artwork) - if you'd be interested in using my icons I'd be happy to send them to you.

On Jul 1, 2008, at 2:32 PM, Mike Swingler wrote:

On Jul 1, 2008, at 11:09 AM, Steve McLeod wrote:

Hi there,

This code, when run on Leopard, gives me a nice "add" button.
       JButton addButton = new JButton(new
ImageIcon(Toolkit.getDefaultToolkit().getImage("NSImage://
NSAddTemplate")));

Unfortunately "NSImage://..." is only available on Leopard, as far
as I can tell.

Can someone suggest a nice alternative approach that works on Tiger,
too?

Unfortunately, this functionality only exists on Leopard. Even if you write JNI and call [NSImage imageNamed:], the NSAddTemplate stock image does not exist on Tiger for native applications.

Sorry,
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/ken.orr %40mathworks.com


This email sent to email@hidden

_______________________________________________ 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: 
 >NSImage://NSAddTemplate and Tiger (From: "Steve McLeod" <email@hidden>)
 >Re: NSImage://NSAddTemplate and Tiger (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.