• 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: Dialog boxes with dynamic contents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dialog boxes with dynamic contents


  • Subject: Re: Dialog boxes with dynamic contents
  • From: Kyle Sluder <email@hidden>
  • Date: Mon, 9 Nov 2009 09:17:01 -0800

On Mon, Nov 9, 2009 at 9:10 AM, Kevin Brock <email@hidden> wrote:
> I'm pretty sure that I could just do it programmatically, creating and
> laying things out on the fly, but I'm hoping there's a simpler way.  Most of
> the application is standard windows in a nib file.

You could take the NSPredicateEditor approach and create different
views for each kind of thing that will be displayed in the dialog.
Then it's just a matter of unfreezing these views from their nibs and
arranging them at runtime, rather than arranging every single control.

If you need finer-grained control than even that, you could do the
loading using a subclass of NSViewController and put your
view-rearrangement logic in that object, which would be the nib's
file's owner.

--Kyle Sluder
_______________________________________________

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: Dialog boxes with dynamic contents
      • From: Kevin Brock <email@hidden>
References: 
 >Dialog boxes with dynamic contents (From: Kevin Brock <email@hidden>)

  • Prev by Date: Re: Hardware UUID
  • Next by Date: Creating a small timer?
  • Previous by thread: Dialog boxes with dynamic contents
  • Next by thread: Re: Dialog boxes with dynamic contents
  • Index(es):
    • Date
    • Thread