IB Binding no error, Programmatic Binding error
IB Binding no error, Programmatic Binding error
- Subject: IB Binding no error, Programmatic Binding error
- From: Michael Hanna <email@hidden>
- Date: Tue, 12 Jul 2005 03:47:52 -0400
I have an NSArrayController called Categories in IB that populates an
NSTableViewColumn which is an NSPopUpButtonCell is bound to display
its contents(similar to mmalc's ToDo example).
When the user double-clicks the selected row in the NSTableView I
need to 'edit' the existing row. So in the resulting window I bind an
NSPopUpButton to show the same contents as the Categories array in
the selected row, but I want to select the same object in the
NSPopUpButtonCell so I try:
[oLucidityPassagePopUp bind: @"selectedObject"
toObject: oPassagesController
withKeyPath: @"properties.lucidity"
options: nil];
(I made oPassagesController an IBOutlet, which is connected)
then once the window is closed I programmatically unbind it.
but when this line runs I get:
[<NSArrayController 0x3583a0> addObserver:<NSSelectionBinder
0x374a00> forKeyPath:@"properties.lucidity" options:0x0 context:0x0]
was sent to an object that is not KVC-compliant for the "properties"
property.
where the row is a DLPassages entry and the properties object is an
NSMutableDictionary.
what's the cause of this error? Why is it that in IB if I do
selectedObject
Bind to: Passages(NSArrayController)
Controller Key: selection
Model Key Path: properties.lucidity
to the NSPopUpButton I get no error at runtime(but without the
desired effect since I need to unbind this programmatically).
not sure what I'm missing here..
regards,
Michael
_______________________________________________
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