Re: Bindings setup with NSCollectionViews
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