Re: Dialog boxes with dynamic contents
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