Stupid question: selected object of an array controller
Stupid question: selected object of an array controller
- Subject: Stupid question: selected object of an array controller
- From: Pierre Bernard <email@hidden>
- Date: Fri, 4 Jun 2004 19:12:25 +0200
Hi!
I have created using bindings what essentially is a master detail
interface. I have a NSArrayController which draws its content from the
file owner. I have a table view whose columns bind to keys of the
controller's arranged objects. The table allows only for single
selection and there is a detail part in the UI to display said
selection.
Now I would like my NSDocument subclass to know which item is selected.
I actually want it to be 'notified' when the selection changes. I guess
this should be trivial. Yet I am at loss.
I see no adapted binding from within Interface Builder. I have tried
the following from the windowControllerDidLoadNib: method
[self bind:@"selectedPage" toObject:[self pageRollController]
withKeyPath:@"selection" options:nil];
Any insight is appreciated.
Thanks in advance!
Pierre
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.