If all you want is a custom shape button, subclass NSButton and override a few
methods, -hitTest:.
http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSView_Class/Reference/NSView.html#//apple_ref/occ/instm/NSView/hitTest:
Use whatever image you want. Then implemen
e drawRect: method would draw the image that corresponds to the
shape. It is very easy to get images from the bundle based on names.
On Mar 20, 2008, at 8:43 AM, ADIL SALEEM wrote:
Hi,
I need guidance for a problem. I want to make custom
shaped buttons (based on images) in my GUI.
By assigning
ike what you want to do.
On Mar 20, 2008, at 8:43 AM, ADIL SALEEM wrote:
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 im
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