• 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
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]

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


  • Subject: Where does NSTableView get a cell's size from, if not from cellSize?
  • From: "Theodore H. Smith" <email@hidden>
  • Date: Thu, 4 Aug 2005 21:43:11 +0100

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?

--
http://elfdata.com/plugin/ Industrial strength string processing, made easy.


"All things are logical. Putting free-will in the slot for premises in
a logical system, makes all of life both understandable, and free."

_______________________________________________
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: Jim Hamilton <email@hidden>
  • Prev by Date: Re: Solved Re: Fullscreen window after hiding Dock works in 10.4 but not 10.3
  • Next by Date: Re: Where does NSTableView get a cell's size from, if not from cellSize?
  • Previous by thread: NSArrayController duplicate display
  • Next by thread: Re: Where does NSTableView get a cell's size from, if not from cellSize?
  • Index(es):
    • Date
    • Thread