• 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
NSTableView : resizing behaviour -> Can anybody explain ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView : resizing behaviour -> Can anybody explain ?


  • Subject: NSTableView : resizing behaviour -> Can anybody explain ?
  • From: "Cristian Savu" <email@hidden>
  • Date: Fri, 5 Jul 2002 11:45:21 +0300

I have a tableView with 1 column containing only numbers. (for the sake of
simplicity). The column content and its header are centred.

Now, I'm trying to resize the table and to obtain a smooth resizing (the
col header and content should be centred while I'm resizing).

And here comes the weird part:
I've tried all possible combination of setting in IB. No result !
(if anyone knows any combination, I'll be glad to see it)
The content moving is not synchronized with the window resizing.

If I subclass NSTableView and override the drawRow:clipRect method like
this :

- (void) drawRow:(int) rowIndex clipRect:(NSRect) clipRect
{
[super drawRow:rowIndex clipRect:clipRect];
}

I've got the most wanted result !!!! WHY ??

What the ... , has the header to do with the drawRow:clipRect ?


thanks in advance,
Cristian
_______________________________________________
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.

  • Prev by Date: stopping superview from responding
  • Next by Date: RE: set/saveFrameUsingName
  • Previous by thread: stopping superview from responding
  • Next by thread: RE: NSTableView : resizing behaviour -> Can anybody explain ?
  • Index(es):
    • Date
    • Thread