Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to use a DataSource for NSLevelindicatorCell?



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: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >How to use a DataSource for NSLevelindicatorCell? (From: Paul Schulze <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.