NSCombobox subclass and binding ?
NSCombobox subclass and binding ?
- Subject: NSCombobox subclass and binding ?
- From: Robert Miller <email@hidden>
- Date: Fri, 8 Jul 2005 18:15:22 -0400
Hello,
I hope someone can help. I have a subclass of NSCombobox that
displays a custom resizable popup list instead of the standard fixed
size list. The subclass list populates fine when using an internal
list defined in a nib for the custom combo box class by simply making
the subclass box the data source of my table I can do this:
- (int)numberOfRowsInTableView:(NSTableView *)aTableView
{
return [self numberOfItems];
}
- (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:
(NSTableColumn *)aTableColumn row:(int)rowIndex
{
return [self itemObjectValueAtIndex:rowIndex];
}
However, when bindings are attached to the subclass the list does not
populate. The question is how can I take advantage of NSCombobox'es
default binding and obtain the data from that binding to populate the
custom popup list ? Any help would be greatly appreciated.
Thanks in advance,
Regards,
Bob M.
_______________________________________________
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