• 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
Re: Binding NSTabViews in NSCollectionViews?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binding NSTabViews in NSCollectionViews?


  • Subject: Re: Binding NSTabViews in NSCollectionViews?
  • From: Joshua Emmons <email@hidden>
  • Date: Sat, 1 Dec 2007 21:47:39 -0600

For some reason, bindings of controls in the initial tab (the one selected in IB) work fine, but all the rest are dead. This only happens within an NSCollectionView. If drop my NSTabView on the window directly, all the bindings in all the tabs work.

I've read somewhere on this list that the collection view decodes the prototype view and recreates its bindings. But I assume the subviews bindings (like in your example) are certainly not recreated.


Except that the bindings work for the text field in the selected tab -- which is a subview just as deep as the other tabs that do not display their bindings correctly. Why would it work in the one and not the others?

Also, you can link the CollectionViewItem's "view" outlet to a plain old NSView and stack as many NSView subviews as you want on top of it. If you drop a text field 16 subviews down and bind its value to NSCollectionViewItem.representedObject, it works just fine. So I suspect subviews have nothing to do with the problem.

But if no one else has any ideas, I'll file a radar and move on. It'd be nice to get a little more transparency on what exactly NSCollectionView is doing with its NSCollectionViewItem, though. It would save me a lot of code to use these classes, but every time I try to do something even a little bit different than IKImageBrowserView I stub my toe on something odd and unexplainable like this.

Cheers,
-Joshua Emmons
_______________________________________________

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


References: 
 >Re: Binding NSTabViews in NSCollectionViews? (From: email@hidden)

  • Prev by Date: Re: NSImage lock/unlock slow
  • Next by Date: drag&drop filename
  • Previous by thread: Re: Binding NSTabViews in NSCollectionViews?
  • Next by thread: Re: Binding NSTabViews in NSCollectionViews?
  • Index(es):
    • Date
    • Thread