Re: Custom Shaped Buttons

2008-03-20 Thread Erik Buck
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

Re: Custom Shaped Buttons

2008-03-20 Thread David Adalsteinsson
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

Re: Custom Shaped Buttons

2008-03-20 Thread Jeff LaMarche
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

Custom Shaped Buttons

2008-03-20 Thread ADIL SALEEM
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