Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. COAlthough I never found a webpage showing *how* to modularize, while looking for samples on Costique's recommendation, as well as 'category' examples I also found Apple's (trivial) "SimpleCocoaApp" demo where it uses a main controller plus two other separate NSObject objects that are handed separate tasks by the principal controller object. Is this what you mean? Is having several separate custom objects considered wasteful of resources? No? (I'm asking out of newbie ignorance here). Hmmm... it now seems there are *several* solutions to my question! Thanks, abc. Appreciate your help :-)
      singulars
    2. COHaving looked up cocoa, I understand it recommends/enforces the MVC design pattern. 1) Yes, the controller can be split up into a kind of hierarchy if it's unweildy. 2) You can have many custom objects, if each represents one unique concept (understand "concept" as you wish). Finally, the point of MVC is to modularize data, while allowing a controller to cross-reference different type of data easily. My view is that *only* code that does this should go in the controller. Code that does something with only one type of data (one model class) should be in that model class. Hope that helps.
      singulars
    3. COIt sure does help, and thanks for all your input. I guess I painted myself into a corner by rushing to add code without giving priority to a properly planned structure *first* (you know how it is :-)). I've now got a (test) NSObject model up and running alongside my AppController and it's working perfectly -- though I see what you mean by: "... group your data and functions some other way, but it's much less easy to do well." There are certain common objects (like a main array) that need to be passed to different model controllers, but generally speaking I've got the basics now. Thanks again!
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload