• 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: Breaking source file into multiple files?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Breaking source file into multiple files?


  • Subject: Re: Breaking source file into multiple files?
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Wed, 15 Sep 2004 04:46:19 +0200

At 4:18 Uhr +0200 15.09.2004, Andreas Mayer wrote:
Am 15.09.2004 um 04:04 Uhr schrieb Todd Freese:

I have a source file that is getting really long and would like to break it
up into several files for cleanliness. What is the "best approach" for doing
this?

This one:

2. Use Categories.
[...]
Looking for the pros and cons to each.

Don't know of any cons. :)

Well, a category can't define its own instance variables. So if one of your categories needs an instance variable, you need to declare that waaay over in the main header file for that class.


It's a con around which you can work, but it definitely makes thinking about what to extract from the file more interesting.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: Breaking source file into multiple files?
      • From: Scott Anguish <email@hidden>
    • Re: Breaking source file into multiple files?
      • From: Scott Stevenson <email@hidden>
References: 
 >Breaking source file into multiple files? (From: Todd Freese <email@hidden>)
 >Re: Breaking source file into multiple files? (From: Andreas Mayer <email@hidden>)

  • Prev by Date: Re: Distributing vs. re-using source code?
  • Next by Date: [ANN] Shovel 0.2
  • Previous by thread: Re: Breaking source file into multiple files?
  • Next by thread: Re: Breaking source file into multiple files?
  • Index(es):
    • Date
    • Thread