• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Custom Widget
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom Widget


  • Subject: Re: Custom Widget
  • From: Chaz McGarvey <email@hidden>
  • Date: Tue, 27 Jul 2004 23:47:20 -0600

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.


  • Follow-Ups:
    • Re: Custom Widget
      • From: Rick Bischoff <email@hidden>
References: 
 >Custom Widget (From: Rick Bischoff <email@hidden>)

  • Prev by Date: Custom Widget
  • Next by Date: Re: Where is NSList?
  • Previous by thread: Custom Widget
  • Next by thread: Re: Custom Widget
  • Index(es):
    • Date
    • Thread