• 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 NSTableView to NSSet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Binding NSTableView to NSSet


  • Subject: Re: Binding NSTableView to NSSet
  • From: Koen van der Drift <email@hidden>
  • Date: Wed, 04 Jul 2012 17:59:18 -0400

Ok, I found the solution.

I added an NSArrayController to the nib, of which I bound the content set to the NSSet of my model.  Then I bound the NSTableView to the NSArrayController, and the views to the various attributes through the objectVAlue.

- Koen.


On Jul 4, 2012, at 1:46 PM, Koen van der Drift wrote:

> Hi,
>
> I am trying to hookup a view based NSTableView to my CoreData model using bindings.  The table should display various attributes of the entity 'Tags', which has a many-to-one relationship with my main entity. In my code I can see that the Tags entities are valid using NSLog statements, however I fail to use the correct binding to hook it up to the table. From the docs (at <https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/TableView/PopulatingViewTablesWithBindings/PopulatingView-TablesWithBindings.html#//apple_ref/doc/uid/10000026i-CH13-SW1>), I see I need to bind the table to an NSArrayController, however, my Tags are an NSSet.
>
> How do I solve this?
>
> Thanks,
>
> - Koen.


_______________________________________________

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

  • Follow-Ups:
    • Re: Binding NSTableView to NSSet
      • From: Koen van der Drift <email@hidden>
References: 
 >Binding NSTableView to NSSet (From: Koen van der Drift <email@hidden>)

  • Prev by Date: Re: Stupid block syntax!
  • Next by Date: Crash when calling va_arg()
  • Previous by thread: Binding NSTableView to NSSet
  • Next by thread: Re: Binding NSTableView to NSSet
  • Index(es):
    • Date
    • Thread