Re: filling & sorting and NSTableView through bindings
Re: filling & sorting and NSTableView through bindings
- Subject: Re: filling & sorting and NSTableView through bindings
- From: Koen van der Drift <email@hidden>
- Date: Thu, 1 Feb 2007 16:18:59 -0500
On Jan 29, 2007, at 4:23 PM, Koen van der Drift wrote:
However, nothing appears in the tableview, although I can see from
the scrollbar that the array is being populated. Now when I click
one of the column headers and then click on the action-button, I
see all the items in the NSTableView as expected.
There's clearly a bug here, but the cause could be any number of
things.
I can convert this to my own code, but what I am missing is where
the key @"employees" comes from. Seems to me that the above snippet
is part of a larger code chunk, which is where @"employees" is also
used. How do I get this to work?
@"employees" is the key name for the array you're adding items to.
This is usually the same as the instance variable name, though
without any leading underscores (@"myArray" not @"_myArray").
Ah, I see. Yes now I got it to work, thanks. It also solved the
column header problem.
- Koen.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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