has anyone an idea if it is possible to create ellipse or polygon buttons in IB?
A:
Directly, not without a library.
You can, however, create an NSView subclass which performs your shape drawing for you. You will need to implement the mouse events to perform clicks correctly. Drop an NSView on your window, set its class in the inspector to your custom-drawn NSView subclass, and you're set. Check out this tutorial.
You could also create a custom control, derived from NSControl. Check out this documentation.
John Rudy
2009-06-11 14:20:52
THANK you very much!!!
2009-06-11 14:58:41
sorry, but i have another question: can i use this also for iphone-apps?
2009-06-11 15:04:14
In iPhone apps, I *believe* you will be using a UIView instead of an NSView. I just started working those myself, so I'm probably not the best guy to answer it just yet. :)
John Rudy
2009-06-12 21:24:36