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: Button clicked



There's a backwards compatibility scheme in place.

Basically, copy the class into your widget's bundle, with the AppleClasses folder at the root level of the bundle and whatever classes you need inside of it, and include the Info.plist key "BackwardsCompatibleClassLookup" set to a Boolean YES.

Then, in your HTML, include the local file. When run on pre-10.4.3, the local copy is used. 10.4.3+ is smarter—when it sees that Info.plist key, it looks at the files you include and, if possible, includes the system version over the local version.

On Nov 4, 2005, at 1:46 PM, Chuck Soper wrote:

What happens when this class (or another new class) is used then someone runs the widget on 10.4.2 or earlier?

Chuck


At 1:13 PM -0800 11/4/05, John Louch wrote:
There is a class for you to use now that does just that.

AppleButton in /System/Library/WidgetResources/AppleClasses/

AppleGlassButton is a subclass of AppleButton.

Thanks,
jl


 Ludwig,

Generally, the most common way is to create two graphics for the
button, one representing the unclicked state and one representing the
clicked state. You can switch between the states using onmousedown
and onmouseup handlers on the image.


 Let me know if you need more detail (or if I'm totally
 misunderstanding you).

 Ben
 --
 Ben Kazez
 http://www.benkazez.com

 On Nov 4, 2005, at 2:48 PM, Ludwig Villiger wrote:

 Is there a easy way to show to the user, that the button was
 clicked? I think of something like the genericButton from Apple,
 but not so complicated. It should only change the color or become
 darker when you click the button.

 Greetings,
 Ludwig _______________________________________________
 Do not post admin requests to the list. They will be ignored.
 Dashboard-dev mailing list      (email@hidden)
 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/dashboard-dev/kazezb%
 40carleton.edu

This email sent to email@hidden

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


This email sent to email@hidden

-------------------------------------------------- John Louch Internet #: email@hidden (805) 541 2965


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


This email sent to email@hidden

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

This email sent to email@hidden

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

This email sent to email@hidden
References: 
 >Re: Button clicked (From: John Louch <email@hidden>)
 >Re: Button clicked (From: Chuck Soper <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.