• 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: core data app questions - help!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: core data app questions - help!


  • Subject: Re: core data app questions - help!
  • From: Ricardo Strausz <email@hidden>
  • Date: Sat, 1 Sep 2007 11:57:22 -0500

Hola Jacob!

Date: Fri, 31 Aug 2007 23:02:56 -0500
From: Jacob Scheckman <email@hidden>
Subject: core data app questions - help!
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed


Your wish list will need some work from you —not all of this is given "by free" in Core Data.
But the main thing to have in mind is that if you have a good model, you can fetch (see) your data in many ways, just by free. Also, you may have to adjust your interface to.


As I understand, your model is something like W<<-->S : W<<-->I (with the obvious meanings).

The easiest part is to put at work your to-many relations: any of the tutorials that come with the tools will explain (in particular, see http://developer.apple.com/cocoa/coredatatutorial/index.html )

For number one, I would recommend to add an entity with dates, and with relations W<<-->D, so by clicking in a date you can see only those objects in W with that date... if this can be done with a nicer interface (a calendar) will be your research – please let us know ;^)

For the last, you will have to implement a notification centre that advise you whenever the table changes, so you can calculate the needed sum using something like [[table displayedObjects] @sum (duration)].
There is no magic in this... as far as I know, but if you find a shortcut, also let us know!



1. I would like to be able to click on a date on the calendar (currently doesn't have any function) and have only the workout(s) from that day show in the table.

2.  I would like to be able to click on a sport in the sport table on
in the main window (currently just a listing of the sports that I've
added on the sports window) and have only the workout(s) with that
sport associated with them show in the table.

3.  I'd like to have the same functionality with the intensity table
in the main window.  I'd also like to be able to filter by both sport
and intensity, so if I click on a sport and then click on an
intensity it shows me only the workouts associated with that sport
and intensity.

4.  computations:  I'd like to have a text box which shows me the
total of the duration column.  If I filter the table by sport or
intensity I'd like this box to show the filtered total.  If I can
also show a weekly and monthly total that would be awesome.  It would
also be awesome if I could add a column to my workout table that
automatically calculated average pace (workout distance/workout time).

Suerte! Dino

_______________________________________________

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: core data app questions - help!
      • From: mmalc crawford <email@hidden>
  • Prev by Date: Re: many messages between threads
  • Next by Date: Re: Why no -[NSManagedObjectContext deleteObjects:] ?
  • Previous by thread: Re: best way to "reset" values
  • Next by thread: Re: core data app questions - help!
  • Index(es):
    • Date
    • Thread