NSArrayController

Anthony B Arthur brianarthur at nc.rr.com
Fri Oct 19 11:19:38 PDT 2007


I sent this yesterday but did not see it come through.....

My apologies if this has already been answered.  I am trying to  
properly bind an NSTableView to a NSArrayController.  The tableView  
has 3 columns, 2 of which use popup button cells as its data cells.   
It is these 2 columns that I am having trouble properly binding.  The  
controller has an array of objects set as its content.  I have  
entered keys to this content on the controller in its inspector.   
Each object in the content array has a list of strings that should  
display in the popup buttons.  I am not using a model, didn't really  
feel I needed to go through all that.  So in IB there are bindings  
for the column and bindings for the popup cell.  It is unclear which  
of the two I should bind, one or the other or both, and exactly which  
binding aspects and controller keys I should bind to.  Attempts to  
bind to the popup cell bindings causes errors while binding to the  
column alone looks better, but the popups are empty.  Is there anyone  
who can offer some explanation.

Many Thanks,

--Brian



More information about the MacOSX-dev mailing list