• 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: Binding TableColumn Programatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binding TableColumn Programatically


  • Subject: Re: Binding TableColumn Programatically
  • From: Ron Lue-Sang <email@hidden>
  • Date: Tue, 22 Jul 2008 16:35:25 -0700


On Jul 22, 2008, at 1:08 PM, kiran Sanka wrote:

I am adding a NSTableColumn to a tableview

NSTableColumn *aTableColumn = [[NSTableColumn alloc]

initWithIdentifier: @"title"];
[tableView addTableColumn:aTableColumn];

and Binding the tableColumn to an array controller (which contains array of Dictionaries) with key path title.

[aTableColumn bind:NSValueBinding toObject:arrayController withKeyPath:@"arrangedObjects.title" options:nil];

but in the above added tableColumn data is not populated and an opening brace is shown in each row of that column.

someone, please, lend me a clue! What am I missing here?

Establish the binding *after* you've added the table column to the tableview.






kiran Sanka email@hidden



_______________________________________________

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


--------------------------
RONZILLA



_______________________________________________

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: 
 >Binding TableColumn Programatically (From: kiran Sanka <email@hidden>)

  • Prev by Date: Re: PropertyList -> NSBrowser / NSOutlineView?
  • Next by Date: Re: how to prevent baseline shift when using NSSuperscriptAttributeName on a NSTextView's NSAttributedString ?
  • Previous by thread: Re: Binding TableColumn Programatically
  • Next by thread: name and email address parsing
  • Index(es):
    • Date
    • Thread