Decomposing an interface into separate nibs
Decomposing an interface into separate nibs
- Subject: Decomposing an interface into separate nibs
- From: Frank Wilson <email@hidden>
- Date: Wed, 19 Nov 2008 18:05:12 +0000
I'm a newbie to cocoa development and this is my first post to this
list, so
please bear with me! :)
What I want to do is be able to decompose a particular interface into
several nibs. Sometimes this feels right to me because I feel that one
component on the interface can be reused separately. In fact, it might
represent one unit of functionality that I might like to test
separately.
I'll use the Master-Detail example from [1] as a running example.
What I would like to do is workout how to put the "Detail" part of the
interface in a separate nib. I think this would be good because
it would give the flexibility to move this part of the interface to a
sheet
if required.
I've thought about subclassing NSView and loading the nib on
initialization however I would still need instantiate another NSView
inside so I could layout the components using the interface builder.
This seems a bit ugly to me and makes me think im not doing the right
thing.
Can anybody advise me on whether this is a sensible way to go
about this?
Thanks,
Frank
[1] "Master Detail Interface" -
http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaBindings/Tasks/masterdetail.html#/
/apple_ref/doc/uid/20002090
_______________________________________________
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