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

Re: NSTableView Column Header Restrictions?


  • Subject: Re: NSTableView Column Header Restrictions?
  • From: Corbin Dunn <email@hidden>
  • Date: Tue, 19 Jan 2010 15:44:00 -0800

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

References: 
 >NSTableView Column Header Restrictions? (From: Daniel Wambold <email@hidden>)

  • Prev by Date: NSTableView Column Header Restrictions?
  • Next by Date: Re: Make sheets open instantly
  • Previous by thread: NSTableView Column Header Restrictions?
  • Next by thread: Re: NSTableView Column Header Restrictions?
  • Index(es):
    • Date
    • Thread