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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/ronny%40carotin.net

This email sent to [EMAIL PROTECTED]


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to