Re: Two ways to get this NSTableView behaviour but I do not know how to implement either
Re: Two ways to get this NSTableView behaviour but I do not know how to implement either
- Subject: Re: Two ways to get this NSTableView behaviour but I do not know how to implement either
- From: Gerben Wierda <email@hidden>
- Date: Sun, 13 Oct 2002 16:09:12 +0200
On Saturday, Oct 12, 2002, at 23:16 Europe/Amsterdam, Scott Anguish
wrote:
On Saturday, October 12, 2002, at 04:23 PM, Gerben Wierda wrote:
Were it a fixed set op options, it would be implemented with
checkboxes. But the set has a variable length, so I need a table view
solution that behaves like checkboxes (single itemn select and
deselect), or in other words, the way a table view would behave when
every event was a Cmd-click.
Just use a tableview with a column of checkboxes... this sounds
similar to what I do in OpenUp in the delete panel.. the code is all
there..
This was the *perfect* solution. Thanks Scott!
I had missed the documentation where it says an encompassing scrollview
will automaticall resize (Erik Buck writes: Resizing and scrolling
works automatically (see sizeToCells) if the matrix is the document
view of a scroll view) so I was under the impression I would have to do
a lot of coding with NSRects and NSViews. I also had a bad experience
with trying to get a working NSProgressIndicator in a NSTableView
column (which failed), hence my fear that doing this in an NSTableView
would be messy. But with the checkbox it works perfectly and it is
clean ans simple.
Thanks everybody for your help.
G
_______________________________________________
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.