Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(Cocoa Newbie) NSTable Issues



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.
--




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.