• 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
(Cocoa Newbie) NSTable Issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Obj-C difference between NULL and nil
  • Next by Date: Re: theoretical - Protocols
  • Previous by thread: NSNumberFormatter localization bug?
  • Next by thread: Weird doc-based behaviour?
  • Index(es):
    • Date
    • Thread