Correct Bindings Architecture
Correct Bindings Architecture
- Subject: Correct Bindings Architecture
- From: Chris Outwin <email@hidden>
- Date: Wed, 2 Mar 2005 09:49:44 -0600
I been experiencing a bindings problem which I find hard to debug. I'm
new to bindings, and the problem may be related to incorrect design on
my part. I'm using the Groups tutorial by mmalc Crawford as a guide.
My Architecture
Unlike the tutorial, I'm using a NSWindowController subclass as the
fileowner(The nib loads lazily after checking if the document is nil.)
I also have a master and detail views. The master view has two
tableviews and two NSArrayControllers. Data is added to the master
array controller when the user clicks in a matrix of buttons in the
detail view. This seems OK.
The Problem
In the tutorial when the user clicks the button to shift data from the
first tableview to the second, the debugger shows several methods in
the stack which finally call the insertObject in a NSDocument subclass.
When I click the button these methods aren't called even though
they're in my NSDocument subclass. My NSPanel containing both
tableviews also disappears and only reappears after I click the detail
view.
Questions
The tutorial has the to-many methods in the NSDocument subclass (the
fileowner) and the model path is direct to its data array. My to-many
methods are also in my NSDocument subclass, but my NSWidowController is
the fileowner. I have references to my mutable arrays in my
NSWindowController subclass and my contentArray is set to these arrays.
Are my to-many methods not being called because the NSWindowController
doesn't contain them?
Is it normal for the master view to disappear with the architecture
I've made?
Thank you very much.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden