• 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
Auto center within a custom NSView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Auto center within a custom NSView
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: NSDocument save incremental file package in-place
  • Next by Date: Re: Auto center within a custom NSView
  • Previous by thread: Re: NSDocument save incremental file package in-place
  • Next by thread: Re: Auto center within a custom NSView
  • Index(es):
    • Date
    • Thread