Cocoa bindings and a custom view...
Cocoa bindings and a custom view...
- Subject: Cocoa bindings and a custom view...
- From: Jiva DeVoe <email@hidden>
- Date: Wed, 19 Jan 2005 20:17:22 -0700
I have a custom view and an nsarraycontroller which I have attached to
instance variables in my NSDocument subclass like so:
IBOutlet MyView *view;
IBOutlet NSArrayController *controller;
In my awakeFromNib function, I am attempting to bind the "foo"
attribute of my view to the selected object in the array controller
using the following call:
[view bind:@"foo" toObject:controller withKeyPath:@"selection"
options:nil];
foo does have apropriate KVC accessors.
When this line executes, I get the following error:
2005-01-19 20:10:41.389 TestProject[457] *** -[_NSControllerObjectProxy
copyWithZone:]: selector not recognized
What am I doing wrong?
--
Jiva DeVoe
jiva at devoesquared.com
http://www.devoesquared.com
_______________________________________________
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