NSTableView Column Header Restrictions?
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