• 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: Best way to implement a "dynamic" panel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best way to implement a "dynamic" panel


  • Subject: Re: Best way to implement a "dynamic" panel
  • From: Jerry Krinock <email@hidden>
  • Date: Sat, 4 Oct 2008 20:45:13 -0700


On 2008 Oct, 04, at 10:07, Andreas Eriksson wrote:

I'm wondering what's the best way to implement a panel with a very
dynamic layout, similar to the iCal panel used to edit events? I need
the panel to resize, and other controls to move as other controls are
inserted, removed, or resized.

Well, I don't know if it's the ^best^ way, but I've written a custom "alert" window which does this. As far as the dynamic layout, before invoking -display, it starts at x=0, adds a margin, then marches across, setting the x-origin of each subview. Then it does the same thing on the y-axis. It is quite brute-force, but it works. Does anyone know a better way?


_______________________________________________

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


References: 
 >Best way to implement a "dynamic" panel (From: "Andreas Eriksson" <email@hidden>)

  • Prev by Date: Re: premature dealloc of the datasource of a NSTableView crashes my application
  • Next by Date: Re: Can I put UTIs in NSFilesPromisePboardType promise drag array?
  • Previous by thread: Best way to implement a "dynamic" panel
  • Next by thread: premature dealloc of the datasource of a NSTableView crashes my application
  • Index(es):
    • Date
    • Thread