Hello.

Im trying to set a NSOutlineView not Cell based but View based. 

Now, I read the documentation and pretty much I had all set up except that the 
binding doest go to the table column, but to the table view contents. 

- So I have a class called PGTreeNode with a name and an image properties. In 
IB I set up the a NSTreeController and bound the content array to an 
NSMutableArray form the File Owner.
- I then bound the outlineView's content binding to the NSTreeController with 
arrangedObjects  controller key.
- Then I selected the TextField of the NSTableCellView and bound it;s value to 
Table View Cell  with model key path objectValue.name.
- the same as above for the image property.


I run the app, click an add button, (which is connected to the add: of the 
NSTreeController). In fact a new instance of PGTreeNode is created, but the 
outline view displays only the disclosure triangle with no name and no image. 

Any ideas?


Thx Gustavo

Gustavo

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to