Re: Table view with widgets inside
Re: Table view with widgets inside
- Subject: Re: Table view with widgets inside
- From: David Remahl <email@hidden>
- Date: Thu, 15 Nov 2001 23:16:01 +0100
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!