• 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: Where does NSTableView get a cell's size from, if not from cellSize?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where does NSTableView get a cell's size from, if not from cellSize?


  • Subject: Re: Where does NSTableView get a cell's size from, if not from cellSize?
  • From: Jim Hamilton <email@hidden>
  • Date: Thu, 4 Aug 2005 16:51:53 -0400


On Aug 4, 2005, at 4:43 PM, Theodore H. Smith wrote:

How do you go about changing an NSCell's size? Basically, my rows are drawing too big, and I want the rows to be drawn smaller.

I've subclassed NSComboBoxCell, but actually some of it's methods never get called. cellSizeForBounds: and cellSize don't get called. But the cell displays just fine. Where from is NSTableView getting the cell height, then? If not from cellSize?

I don't get it.

NSCell's drawingRectForBounds: and drawWithFrame:inView: however, do get called.

Changing the height in the rect in the method, drawingRectForBounds: seems to have no effect! If I shrink the height of the cell in drawWithFrame:inView: , it still doesn't draw properly, sometimes the cell is drawn clipped, or other odd visual stuff happens.

I'm at a loss here, again. Where do I look for the correct information on how to resize a row?

NSTableView:

- (void)setRowHeight:(float)rowHeight;

NSTableColumn:
- (void)setWidth:(float)newWidth;

- (void)setMaxWidth:(float)maxWidth;

- (void)setMinWidth:(float)minWidth

Those cells are hosted...

Jim H
--
Jim Hamilton

email@hidden
email@hidden

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Where does NSTableView get a cell's size from, if not from cellSize?
      • From: "Theodore H. Smith" <email@hidden>
References: 
 >Where does NSTableView get a cell's size from, if not from cellSize? (From: "Theodore H. Smith" <email@hidden>)

  • Prev by Date: Where does NSTableView get a cell's size from, if not from cellSize?
  • Next by Date: Creating a dmg (was Re: NSWorkspace)
  • Previous by thread: Where does NSTableView get a cell's size from, if not from cellSize?
  • Next by thread: Re: Where does NSTableView get a cell's size from, if not from cellSize?
  • Index(es):
    • Date
    • Thread