Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Programmer Help > NSTableView and...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 3696 of 3840
Post > Topic >>

NSTableView and Cocoa Bindings Question

by Can I Get a Word In <lazloman@[EMAIL PROTECTED] > Apr 6, 2008 at 07:29 PM

I have an NSTableView bound to an NSArrayController. The 
NSArrayController is populated with NSDictionarys, each of which 
constitutes a row in the  NSTableView. I also have two NSTextfields that 
are bound to the selection of the NSTableView. When a selection is made 
in the NSTableView, the NSTextfields are populated. This all works just 
fine, except, when the NSTableView is first populated. The first item in 
the NSTableView is automatically selected, but the text fields are not 
populated. This is actually OK for me. I want the user to make a 
selection, and then I want to the text fields to populate. But, if I now 
click on the first row in the table, my text fields do not populate. I 
have to first click another row and then back onto the first row to see 
that selection populate the text fields. I would guess that until 
another row is clicked, no selectiondidchange message is sent, so the 
text fields don't populate. There are delegate methods that would help 
with this, but if I implement them for this, then I implement them for 
all of the rows, which makes the binding superfluous. So I figure I must 
be missing some checkbox or something in the binding. Can someone hel me 
with this?
Thanks in advance.
 




 2 Posts in Topic:
NSTableView and Cocoa Bindings Question
Can I Get a Word In <l  2008-04-06 19:29:20 
Re: NSTableView and Cocoa Bindings Question
Can I Get a Word In <l  2008-04-11 08:35:22 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 1:11:55 CDT 2008.