Re: NSButton ical Like
Re: NSButton ical Like
- Subject: Re: NSButton ical Like
- From: Emmanuel Pinault <email@hidden>
- Date: Wed, 19 Nov 2008 20:23:02 -0800
Ken
Thanks for the pointers. I will look into those classes. Sounds like
what I am looking for. Too bad it is not in the documentation :(
Manu
On Nov 19, 2008, at 3:27 PM, Ken Ferry wrote:
I can see they use some image that somehow but be stretched to fit.
but have
no idea how to do it.
...
how would I create a background using a strectched
image?
I'm not following what art exactly you're talking about drawing, but
it sounds like you might be interested in NSDrawThreePartImage and
NSDrawNinePartImage, which are in NSCell.h (they haven't made it to
the html documentation yet).
NSDrawThreePartImage takes end cap images and a center image to be
tiled, and NSDrawNinePartImage takes corners, edges to be tiled, and a
center piece to be tiled.
-Ken
On Wed, Nov 19, 2008 at 11:37 AM, Emmanuel Pinault
<email@hidden> wrote:
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 (email@hidden)
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:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden