• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSCombobox subclass and binding ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSCombobox subclass and binding ?
      • From: Ricky Sharp <email@hidden>
  • Prev by Date: Re: help! I lost my menu bar
  • Next by Date: Re: Documentation frustrations
  • Previous by thread: Re: What is a "positional parameter" in the context of localizable strings?
  • Next by thread: Re: NSCombobox subclass and binding ?
  • Index(es):
    • Date
    • Thread