How do I make a button like the mini calendar in ical (the one that show the days and when one is selected , it shows the day with a blue gradient)?

I looked at the NSButton and NSButtonCell and nothing can set the background directly nor having an image and text on top... My understanding is that it must be a custom button made by Apple. So I looked inside the iCal.app, I can see they use some image that somehow but be stretched to fit. but have no idea how to do it. Would I need to extend the NSButton class and redo the drawing myself? If so , how would I create a background using a strectched image?

Thanks

Manu

_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to