Re: Adding buttons to a custom view
Re: Adding buttons to a custom view
- Subject: Re: Adding buttons to a custom view
- From: stephane sudre <email@hidden>
- Date: Mon, 11 Oct 2004 17:46:07 +0200
On Oct 11, 2004, at 5:47 PM, Michael Becker wrote:
Hello all!
I'm creating a custom view which will hold a matrix of buttons. When
the window is resized, the matrix of buttons should adjust to the new
size by re-ordering. Therefore my question:
Is it more feasable to add NSButtons as subviews to my view or should
I draw them "myself" in the drawRect: method? What is the easier way
to handle the re-ordering when the size of my view changes?
Using NSButtonCells in your custom Control.
This way you can draw them where you want.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden