Re: Accessing an NSArrayController in another NIB file
Re: Accessing an NSArrayController in another NIB file
- Subject: Re: Accessing an NSArrayController in another NIB file
- From: mmalc crawford <email@hidden>
- Date: Sat, 19 May 2007 16:14:26 -0700
On May 19, 2007, at 2:51 PM, Claudio Mezzasalma wrote:
Bind to
[Application
].mainWindow
.windowController.document.pathToArrayController.canRemove
I assume that [Application] is the File's Owner (NSApplication)...
but now I get the following exceptions:
[<MyDocument 0x52a4e0> addObserver:<NSKeyValueObservationForwarder
0x100f4e60> forKeyPath:@"characterController.canRemove" options:0x0
context:0x52a480] was sent to an object that is not KVC-compliant
for the "characterController" property.
Exactly as the error says, that means that your MyDocument class
doesn't have an attribute called 'characterController'. Did you
create an outlet to the array controller?
So I thought I had to use the entitiy defined in the data model, but
the exception is still there (except the fact that I get Character
(the entity) instead of characterController, as it's supposed to be).
I'm a bit confused...
The managed object model (and Core Data in general) is irrelevant to
this issue.
It sounds as if you're trying to learn Core Data and bindings at the
same time. I'll reiterate the advice given in the Core Data
Programming Guide: Don't try to do this. Master one, then turn to the
other...
mmalc
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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