Re: Dialog boxes with dynamic contents
Re: Dialog boxes with dynamic contents
- Subject: Re: Dialog boxes with dynamic contents
- From: Kevin Brock <email@hidden>
- Date: Mon, 09 Nov 2009 09:24:05 -0800
Kyle Sluder wrote:
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.
I don't know the higher level arrangements in advance either... It
really is down to the per-control level.
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.
I'll take a look at that. Thanks.
Kevin
_______________________________________________
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