Custom Shaped Buttons
Custom Shaped Buttons
- Subject: Custom Shaped Buttons
- From: ADIL SALEEM <email@hidden>
- Date: Thu, 20 Mar 2008 05:43:31 -0700 (PDT)
Hi,
I need guidance for a problem. I want to make custom
shaped buttons (based on images) in my GUI.
By assigning image and alternate image in IB it
displays the image but the shape of the button is not
exactly as the image. I want to make the button of
exact shape as that of the image.
For that i am trying to subclass NSButton. I have
created the subclass and assigned it to my buttons,
but i have no idea what functions to
implement/overwrite in the subclass to change the
shape of the button and assign the image as the button
shape.
Also please tell me that is this the right way
(subclassing NSButton) to do what i am trying to do ?
Thank you
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
_______________________________________________
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