(Cocoa Newbie) NSTable Issues
(Cocoa Newbie) NSTable Issues
- Subject: (Cocoa Newbie) NSTable Issues
- From: "G. 'Andrew' Tapolow" <email@hidden>
- Date: Tue, 29 May 2001 12:41:54 -0700
Hello all,
This is a combination of a question posted earlier (Just at the start
of WWDC) and a secondary issue.
The short form:
Issue 1: I'd like the header cells to display 2 lines of text that are centered
Issue 2: When I click in the table, I don't any of the table to
highlight. (I have controls in certain columns and want the click to
be handled by the buttonCell)
Longer form, analysis, and things tried:
Issue 1: I've attempted:
[[headerAdjustColour headerCell] setWraps:YES]
This didn't do much of anything. I'm currently guessing that the
NSTableHeaderCell has very specific constraints. The question is
whether or not I can push in a simple NSTextCell in its place. Also
the lack of knowledge on when and where would be the best place for
that.
Issue 2:
At this point I've gotten the table columns that have controllers to
work appropriately. I tried setting:
- (BOOL)tableView:(NSTableView *)tableView shouldSelectRow:(int)row;
{
return NO;
}
But all this did was kill any clicks in the table view. So it's been
set back to YES.
Both these issues have had me going around in circles and my lack of
cocoa has made them seem a bit unsolvable.
Any advice or pointers on this would be very strongly appreciated.
Pulling a bit of hair out and with my hairline, I can't really afford
it.
-G. Andrew Tapolow
Sr. System Eng.
--