NSArrayControllers and lazyloading referencing through an NSObjectController alias
NSArrayControllers and lazyloading referencing through an NSObjectController alias
- Subject: NSArrayControllers and lazyloading referencing through an NSObjectController alias
- From: "ad veloper" <email@hidden>
- Date: Sat, 11 Aug 2007 14:04:37 +0100
I have a main nib in which I instantiate all my NSController-type
objects, as a convenience primarily.
The main nib has tabView's whose various views are being lazyily loaded.
This means that tables etc., appear in other nib files, so in order to
manage selection etc. I have provided each of these subViews with
NSObjectControllers representing the mainControllerObject which
contains all the necessary NSController outlets from the mainNib. In
the subView's I then instantiate other NSArrayControllers (as
required) whose contentArray's are bound through this alias/ proxy
object to the PrimaryNSArrayController represented by it.
It's a method of keeping all the Controllers in one place as a point
of referrence for other parts of the app, which tell them to update as
necessary.
Is this the correct way of doing things, or needlessly convoluted? If
there is a preferred way of establishing this kind of communication
between Primary NSController objects held in a mainController and
their offshoots in other Nibs etc, or does someone have any pointers.
I've been raking the usual places, and am just trying to clear some
fog.
Thanks.
_______________________________________________
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