On Jan 19, 2010, at 3:30 PM, Daniel Wambold wrote:

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

There are no such restrictions. Can you post a backtrace of when it is being 
validated when you don't expect it to be? There must be something else going on.

...corbin

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to