• 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: [Newbie] Proper class releasing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >detect URL change (From: "Mauricio Camayo" <email@hidden>)
 >Re: detect URL change (From: Scott Anguish <email@hidden>)
 >Re: detect URL change (From: Adam Leonard <email@hidden>)
 >Re: detect URL change (From: Jens Alfke <email@hidden>)
 >[Newbie] Proper class releasing (From: "Jon Keon" <email@hidden>)

  • Prev by Date: Re: Drawing over a QTCaptureView
  • Next by Date: Re: Regular Expressions?
  • Previous by thread: [Newbie] Proper class releasing
  • Next by thread: Re: [Newbie] Proper class releasing
  • Index(es):
    • Date
    • Thread