FROM : Kyle Sluder
DATE : Fri Jun 06 19:18:28 2008
On Fri, Jun 6, 2008 at 12:11 PM, Jon Keon <<email_removed>> wrote:
> I have a class called BaddieManager.
Any time you use the word Manager when programming in an MVC context
blaring alarm bells should go off in your head. It seems like you're
actually trying to write a model-controller object, similar to what
NSArrayController does. But your code is dealing with both the model
and the view. This isn't what controllers are supposed to do;
instead, they generally come in two flavors (model-controller and
view-controller). I have a feeling this confusion is leading to your
problems.
--Kyle Sluder
DATE : Fri Jun 06 19:18:28 2008
On Fri, Jun 6, 2008 at 12:11 PM, Jon Keon <<email_removed>> wrote:
> I have a class called BaddieManager.
Any time you use the word Manager when programming in an MVC context
blaring alarm bells should go off in your head. It seems like you're
actually trying to write a model-controller object, similar to what
NSArrayController does. But your code is dealing with both the model
and the view. This isn't what controllers are supposed to do;
instead, they generally come in two flavors (model-controller and
view-controller). I have a feeling this confusion is leading to your
problems.
--Kyle Sluder
| Related mails | Author | Date |
|---|---|---|
| Jon Keon | Jun 6, 18:11 | |
| Kyle Sluder | Jun 6, 19:18 | |
| Vijay Malhan | Jun 6, 19:48 | |
| Jon Keon | Jun 6, 19:59 | |
| Vijay Malhan | Jun 6, 20:13 |






Cocoa mail archive

