Re: Getting NSProgressIndicators in an NSTableView
Re: Getting NSProgressIndicators in an NSTableView
- Subject: Re: Getting NSProgressIndicators in an NSTableView
- From: matt neuburg <email@hidden>
- Date: Mon, 18 Nov 2002 09:38:57 -0800
On Sat, 16 Nov 2002 19:07:05 -0800, Simone Manganelli <email@hidden> said:
>
I've got a problem. I want to get some progress indicators in an
>
NSTableView, with a column dedicated to just progress indicators with
>
different data.
>
>
I understand that this is possible by using image cells, but I'm not
>
sure where to start. I was told that I could make an array of NSImages
>
that I could then feed through the dataSource of the NSTableView so
>
that it is displayed.
>
>
Is there a way to produce an NSProgressIndicator as an image that I
>
could then fit into an array of images? If so, what's the easiest way
>
to do this. If not, what other method can I use? Will I have to draw
>
an image myself?
That's what I ended up doing. This is a very easy approach because if a column's datacell is an imagecell, then the value you return as objectValueForTableColumn simply is the image. If you search the archives you'll find several other solutions, mostly involving overriding the way the cell draws itself, but this felt rather over-elaborate to me so I didn't bother to try it. m.
matt neuburg, phd = email@hidden,
http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart.
http://www.tidbits.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.