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: Table view with widgets inside



It is possible to use any subclass of NSCell. If you want to see an example
of Sliders, I can send you some code of mine ("Cocoa Fortune") which does
that in the prefs dialog. If i stuff it all, it will be a few megs, (because
that would include the fortune files), but if you could do with just the
code it will be just a few kb...Mail me if you need it.

/ david

> This is certainly possible for a button. NSTableView draws it's entries
> using an NSCell subclass, one for each column. If you use the
> "setDataCell:" method of NSTableColumn to make the data cell for the
> column an NSButtonCell, you should be able to have buttons.
> Don't know about sliders though.
>
> Drew McCormack
>
>> Greetings,
>>
>> Is there any kind of thing like an NSTableView in which one or more of
>> the columns contains a widget, such as a NSSlider or NSButton, one for
>> each row? Would this be a time to use NSMatrix or something?
>>
>>
>> Thanks!
>> --
>> David McCabe
>> http://homepage.mac.com/davidmccabe/
>> 'finger email@hidden' for PGP key.
>> No PGP sig because it's broken. Will fix soon.
>> Wrfhf ybirf lbh!


References: 
 >Re: Table view with widgets inside (From: Drew McCormack <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.