core data nsarraycontroller for all entities
core data nsarraycontroller for all entities
- Subject: core data nsarraycontroller for all entities
- From: Martin Hewitson <email@hidden>
- Date: Fri, 21 Aug 2009 11:12:35 +0200
Dear all,
I'd like to have an NSArrrayController 'collect' all the values of a
particular attribute from all entities in the managed object array.
More specifically, I have core-data document based app with a simple
model containing two entities: an Entry and a Category. The Entry
entity has a relationship (to-many) called categories which links to
the Category entity. What I'm aiming for is a pop-up menu on each
document that contains all categories from all entries in the document
(preferably with only unique entries). I was hoping to do this in IB
with an array controller, but I haven't managed to figure out the
bindings necessary for that so far.
Does anyone have any suggestions?
Cheers,
Martin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Martin Hewitson
Albert-Einstein-Institut
Max-Planck-Institut fuer
Gravitationsphysik und Universitaet Hannover
Callinstr. 38, 30167 Hannover, Germany
Tel: +49-511-762-17121, Fax: +49-511-762-5861
E-Mail: email@hidden
WWW: http://www.aei.mpg.de/~hewitson
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
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