• 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
Re: Combo Box Problem (when using data source)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Combo Box Problem (when using data source)


  • Subject: Re: Combo Box Problem (when using data source)
  • From: Ronny Reichmann <email@hidden>
  • Date: Wed, 14 May 2008 09:20:12 +0200

Hi Adil,

when you set your combo-box to use a data-source-object, you have to provide this data source object. At the end your data-source should know exactly the number of items. Your are providing the data-source, so you should know the number of items.


Am 14.05.2008 um 08:17 schrieb Adil Saleem:

Hi,

If a combo box is using a Data Source, then how do i
programatically get the number of items in that combo
box ? If i use [self
numberOfItemsInComboBox:myComboBox], it says

*** -[NSComboBoxCell objectValueOfSelectedItem] should
not be called when usesDataSource is set to YES

My question is, how do i get number of objects in a
combo box when it is using data source.


Thanx



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Combo Box Problem (when using data source) (From: Adil Saleem <email@hidden>)

  • Prev by Date: Pantomime working well.
  • Next by Date: Re: openURL is not applied to POST-argument of local html file in leopard.
  • Previous by thread: Combo Box Problem (when using data source)
  • Next by thread: how to update the view of NSPrintOperation ?
  • Index(es):
    • Date
    • Thread