Re: IB Binding no error, Programmatic Binding error
Re: IB Binding no error, Programmatic Binding error
- Subject: Re: IB Binding no error, Programmatic Binding error
- From: Scott Anguish <email@hidden>
- Date: Tue, 12 Jul 2005 03:54:12 -0400
On Jul 12, 2005, at 3:47 AM, Michael Hanna wrote:
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)
your controller doesn't respond to properties.. you actually
want "selection.properties.lucidity"
_______________________________________________
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