• 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 Column Header Restrictions?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView Column Header Restrictions?


  • Subject: NSTableView Column Header Restrictions?
  • From: Daniel Wambold <email@hidden>
  • Date: Tue, 19 Jan 2010 18:30:54 -0500

I have an NSTableView that I populate with columns programmatically. I use the following to establish the header titles:

NSTableHeaderCell *myGenericHeaderCell = [[[NSTableHeaderCell alloc] initTextCell:myTableColumnTitle] autorelease];
[myGenericHeaderCell setAlignment:NSCenterTextAlignment];
[myGenericHeaderCell setEditable:NO];
[myGenericHeaderCell setSelectable:NO];
[aTableColumn setHeaderCell:myGenericHeaderCell];

From there, I add the column to the tableView. My problem is that, if I use a header name that contains a period (.), the tableView tries to validate my data. Is this expected behavior? I have no validation routines anywhere in the program or in IB, and I can only seem to work around this by changing the column names. I can't find this behavior referenced in the NSTableView or NSTableHeaderCell docs.

Thanks.
-Dan_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSTableView Column Header Restrictions?
      • From: Corbin Dunn <email@hidden>
  • Prev by Date: Re: NSDictionary trouble
  • Next by Date: Re: NSTableView Column Header Restrictions?
  • Previous by thread: Re: MKPinAnnotationView callout behind other pins
  • Next by thread: Re: NSTableView Column Header Restrictions?
  • Index(es):
    • Date
    • Thread