• 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
preferred pattern
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

preferred pattern


  • Subject: preferred pattern
  • From: Warner Onstine <email@hidden>
  • Date: Wed, 26 Apr 2006 07:41:25 -0700

Continuing with my application I'm still working on my application, dealing with my workout form view. This view contains several fields and a table. Overall each form will relate to an object that contains fields like:
workoutDate
heartRate data
min
average
peak
calories
notes
array of routines (which will be shown in an NSTableView
routine
name
set
reps1
reps2
reps3
weightsPerSet1
weightsPerSet2
weightsPerset3


While researching I found out about the ObjectController and NSArrayController (particularly in reference to creating an NSTableView). Initially I was going with creating my own controller but I like the idea of directly binding my view fields to directly to my object. So, my question is if I were going to use the ObjectController should I just go ahead and extend this controller to gain the benefits of direct object binding? If so should I encapsulate an instance of NSArrayController to get the benefits for the NSTableView. Or is there another pattern that I should be following here?

Oh, I'm also assuming that when using something like the ObjectController I can bind to fields using syntax like this (which, by the way, I haven't actually found any references to in the documentation) heartRate.min, heartRate.average, etc.

Just getting used to Cocoa and its APIs, thanks in advance for any help.

-warner
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Horizontal NSTableView OR How I learned to Bind NSTableView Columns Instead of Rows
  • Next by Date: Re: NSNumberFormatter and localized format problem
  • Previous by thread: Re: Horizontal NSTableView OR How I learned to Bind NSTableView Columns Instead of Rows
  • Next by thread: Sublassing NSObject
  • Index(es):
    • Date
    • Thread