Re: [Q] Bindings, FilteringController and KVC compliance
Re: [Q] Bindings, FilteringController and KVC compliance
- Subject: Re: [Q] Bindings, FilteringController and KVC compliance
- From: "Peter.Teeson" <email@hidden>
- Date: Thu, 16 Sep 2004 21:53:51 -0400
On Sep 16, 2004, at 12:55, Ondra Cada wrote:
On 16.9.2004, at 18:35, Peter.Teeson wrote:
... In IB in the MyDocument.nib file there is only one connection that I could find and that was in the File's Owner.
So I disconnected it as well. I could not find any other explicit references to peopleController.
When built and run that way I get an exception telling me that MyDocument is not KVC compliant for the key peopleController.
Means there is *somewhere* a binding to MyDocument.peopleController (which is not found at runtime since you removed it).
To search for it an easy way, save the NIB in XML format, open the result file in TextEdit and just plain search.
Interesting idea. I did that but it's not there.
To repeat what I did with the mmalc FilteringController example (just because I didn't understand how peopleController was used):
(0) In MyDocument.h I commented out the only reference to peopleController in the project source code.
@interface MyDocument : NSDocument
{
NSMutableArray *people;
// IBOutlet NSArrayController *peopleController;
}
.....
(1) In IB I read the MyDocument.h file and did a replace in the Parse and saved the nib.
(2) Back in Xcode I re-built the target and ran it getting this exception:
2004-09-16 21:31:42.775 FilteringController[10530] [<MyDocument 0x351ec0> valueForUndefinedKey:]:
this class is not key value coding-compliant for the key peopleController.
(3) Saved the MyDocument.nib as a text archive and examined it (using BBEdit). There is no occurrence of peopleController in that file.
Not in the keyedObjects.nib, nor the other two nibs in the package.
So my original question remains:
Why and how does the exception arise if there are no bindings and no source code reference to peopleController?
Who is using this key? Where is it bound?
I am suspicious that there may be an undocumented thing going on here but don't have a clue where to look for this.
Does MMALC care to comment (please)?
respect.....
Peter
_______________________________________________
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