Auto center within a custom NSView
Auto center within a custom NSView
- Subject: Auto center within a custom NSView
- From: Lorenzo Thurman <email@hidden>
- Date: Sat, 01 Mar 2014 23:19:34 -0600
I have to add a variable number of NSSliders to a custom view, (although, probably no more than eight). I’d like these items centered within the view, but am unsure how to achieve this. I know I could probably “do the math” and just calculate the position of each as its added, but I thought I would ask on the list and see if anyone had any ideas as to how to go about this. Given issues such as spacing between the sliders and padding from the edges make the math route seem problematic.
Any ideas greatly appreciated.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden