• 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
NSOutlineView with NSTableCellView not working, what am I missing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSOutlineView with NSTableCellView not working, what am I missing?


  • Subject: NSOutlineView with NSTableCellView not working, what am I missing?
  • From: Gustavo Pizano <email@hidden>
  • Date: Tue, 01 Nov 2011 22:04:34 +0100

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 (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

  • Prev by Date: Re: inserting/removing items in NSOutlineView subclass
  • Next by Date: Re: Problems with runModalForWindow, looking for alternatives
  • Previous by thread: Re: Sandboxing question
  • Next by thread: Re: NSAssert no longer displaying reason in console
  • Index(es):
    • Date
    • Thread