Re: Custom Widget
Re: Custom Widget
- Subject: Re: Custom Widget
- From: Rick Bischoff <email@hidden>
- Date: Wed, 28 Jul 2004 00:51:07 -0500
Hi,
NSTableView won't work since I need to selected the individual cell in
a row, *not* the entire row. Sorry if I wasn't clear on that.
Rick Bischoff
On Jul 28, 2004, at 12:47 AM, Chaz McGarvey wrote:
Hello:
On Jul 27, 2004, at 11:10 PM, Rick Bischoff wrote:
I have a strong need for a widget that is similar to NSTableView with
the following peculiarities: certain cells, based on a delegate call
or datasource call, should be selectable or not. There will be no
editing of the text.
But I don't need some of the stuff NSTableView provides:
1. I don't need column headers, resizable columns, drag and drop, etc.
2. I don't need row selection
3. I don't need multiple selection
So, I started looking into using NSMatrix to do the job, since it has
all of what I need except.... All the cells have to be
identically sized...
::sigh::
Thus, the questions:
A) Does anyone already have this type of thing already done and are
willing to share under a reasonable license?
B) If not, would I be better off subclassing NSTableView, NSMatrix or
just writing the whole thing from the ground up?
I believe you can accomplish everything you need just with a standard
NSTableView. All you'll need to do is change some options.
1. You can turn off column headers, column resizing, and drag 'n drop
doesn't work by default.
2. The NSTableView delegate method tableView:shouldSelectRow: lets you
specify which rows are selectable.
3. Multiple selection can be turned off, too.
I wouldn't use NSMatrix in this case. NSTableView seems perfect for
the job.
Chaz McGarvey
http://www.brokenzipper.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.