Mailing Lists: Apple Mailing Lists

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

[ANN] AMRollOverButton class



AMRollOverButton class

Apple first used this kind of button in Safari's bookmarks bar (as far as I can remember, that is). This button highlights when you move the mouse pointer over it. In addition it sports text shadows and configurable colors. You can also attach a menu which will be indicated by a small triangle inside the button. Dragging is not yet implemented.

Techniques demonstrated:

- roll over effect
- subclassing NSCell
- implementing mouse tracking for cell
- basic drawing (NSBezierPath, Strings, Shadows ...)
- creating a custom Interface Builder palette

I *know* you all crave for those cool buttons that Safari uses in it's bookmarks bar  come, get 'em! :-)

http://www.harmless.de/cocoa.html


Have Fun!

Andreas
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.



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.