• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Adding buttons to a custom view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Adding buttons to a custom view (From: Michael Becker <email@hidden>)

  • Prev by Date: Adding buttons to a custom view
  • Next by Date: NSWindowController with NSObjectController doesn't dealloc
  • Previous by thread: Adding buttons to a custom view
  • Next by thread: NSWindowController with NSObjectController doesn't dealloc
  • Index(es):
    • Date
    • Thread