• 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: Bindings setup with NSCollectionViews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bindings setup with NSCollectionViews


  • Subject: Re: Bindings setup with NSCollectionViews
  • From: Hajder Rabiee <email@hidden>
  • Date: Wed, 18 Jun 2014 23:41:28 +0200

Actually I already have an alternative (code) solution, instead of binding
an IBOutlet to an ArrayController, I could just call setContent on my
detailedView in observeValueForKeyPath (see hint in the question).

But I would prefer getting it to work through IB only, since everything
else is already in place.




On Wed, Jun 18, 2014 at 9:33 PM, Gordon Apple <email@hidden> wrote:

>  That part should work. I was referring to the view controller’s
> representedObject, if you are using such a view controller in a view nib
> and trying to bind the collection view to an array controller through the
> view controller’s representedObject.
>
>
> On 6/18/14 1:34 PM, "Hajder Rabiee" <email@hidden> wrote:
>
> The application consists of one main xib and its File's Owner is a
> subclass of NSWindowController.
>
> Can you further explain as to which binding to an array controller that is
> not possible? The only places where 'representedObject' is present is in
> the item prototypes for NSCollectionView. I.e. the ones that are added
> automatically
> when dragging an NSCollectionView in IB.
>
>
> On Wed, Jun 18, 2014 at 7:09 PM, Gordon Apple <email@hidden> wrote:
>
> I’m not clear as to what your view/nib structure is. If you are using a
> view nib, I recommend using a custom viewController and, in awakeFromNib,
> setting a local property (maybe from an IBOutlet) to the array controller.
> Trying to bind anything to an array controller through a view controller’s
> representedObject does not work.
>
>
>
>
> On 6/18/14 8:28 AM, "email@hidden <
> http://email@hidden> " <
> email@hidden <
> http://email@hidden> > wrote:
>
> I am having trouble getting the master-detail binding configuration setup
> correctly. I've sat down far too many hours trying to debug this and I hope
> anyone can give me a hint on how to solve this issue. The full problem
> description can be found already at *http://stackoverflow.com/questions/24190299/nscollectionview-master-detail-binding-configuration
> <http://stackoverflow.com/questions/24190299/nscollectionview-master-detail-binding-configuration>*
>
>
>
>
>
>


--
Med vänliga hälsningar / Best Regards
Hajder
_______________________________________________

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: Cocoa-dev Digest, Vol 11, Issue 339 (From: Hajder Rabiee <email@hidden>)
 >Re: Bindings setup with NSCollectionViews (From: Gordon Apple <email@hidden>)

  • Prev by Date: RE: iOS app restarting from screen one. Why?
  • Next by Date: Re: Send msg to object by nameed NSString;
  • Previous by thread: Re: Bindings setup with NSCollectionViews
  • Next by thread: iOS app restarting from screen one. Why?
  • Index(es):
    • Date
    • Thread