Re: How to use a DataSource for NSLevelindicatorCell?
Re: How to use a DataSource for NSLevelindicatorCell?
- Subject: Re: How to use a DataSource for NSLevelindicatorCell?
- From: "stephen joseph butler" <email@hidden>
- Date: Sun, 30 Jul 2006 00:18:53 -0500
2006/7/29, Paul Schulze <email@hidden>:
May somebody please tell me, what I'm supposed to return in the "-
(id)tableView:(NSTableView *)aTableViewobjectValueForTableColumn:
(NSTableColumn *)aTableColumn row:(int)rowIndex" method of my table
view's data source, for a column consisting of NSLevelIndicatorCells?
An instance of NSNumber. For example, "return [NSNumber numberWithInt:myValue];"
I only dragged them into the table, but couldn't find any
documentation, showing how to set their value. Is there any
documentation on how to use them?
In Cocoa, any time you think a control should take a number (int,
float, double, etc) but you have to return an id, you should wrap it
in NSNumber.
_______________________________________________
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