Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MacDonaldsd

macrumors 65816
Original poster
Sep 8, 2005
1,005
0
London , UK
Hi,

I have a feeling this is a rather dumb question but I can't seem to find the answer.

Im trying to achieve something that can be seen in Journler, whereby I wish to count the number of attachments for a given event using bindings.

Im using core data and I have and Event class that has a relationship with the document class.

I realise I can solve this using a value transformer, but if its possible using bindings that would be easier.
 

Attachments

  • Picture 1.png
    Picture 1.png
    8 KB · Views: 138

MacDonaldsd

macrumors 65816
Original poster
Sep 8, 2005
1,005
0
London , UK
Hi thanks for the link it was very helpful, I didn't realise you can prefix the @count with an attribute.

I used documents.@count for the model key path and that does the trick
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.