• 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: Strategy to split up large class files?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strategy to split up large class files?


  • Subject: Re: Strategy to split up large class files?
  • From: Arthur Clemens <email@hidden>
  • Date: Wed, 30 Jun 2004 14:29:59 +0200

On Jun 30, 2004, at 13:29, Andreas Mayer wrote:

Am 30.06.2004 um 13:08 schrieb Arthur Clemens:

Is there a strategy to split up my AppController class in smaller chunks (separate class files that belong to AppController perhaps)?

If you just want to distribute the code to different files you can use categories.

But 80 methods seem to be a lot for a single class. I'd think about moving some functionality to separate classes.

The problem I have is that each part has some relation to the interface. If I separate the registration part to a category, the IBAction methods are not accessible in Interface Builder (or should I leave the declarations in the AppController.h? - this seems to get messy).

So I could move registration to a separate class, including IBAction methods. Then I need to instantiate the Registration class in Interface Builder. And in AppController, I would need to change oRegistrationWindow to [mRegistration window]. Is this the way to go?

Arthur
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Strategy to split up large class files?
      • From: Allan Odgaard <email@hidden>
    • Re: Strategy to split up large class files?
      • From: Andreas Mayer <email@hidden>
References: 
 >Strategy to split up large class files? (From: Arthur Clemens <email@hidden>)
 >Re: Strategy to split up large class files? (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Re: NSCursor category
  • Next by Date: / vanishing info in a global variable /
  • Previous by thread: Re: Strategy to split up large class files?
  • Next by thread: Re: Strategy to split up large class files?
  • Index(es):
    • Date
    • Thread