Re: [Newbie] Proper class releasing
Re: [Newbie] Proper class releasing
- Subject: Re: [Newbie] Proper class releasing
- From: "Kyle Sluder" <email@hidden>
- Date: Fri, 6 Jun 2008 13:18:28 -0400
On Fri, Jun 6, 2008 at 12:11 PM, Jon Keon <email@hidden> 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
_______________________________________________
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