• 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: Category or Protocol? (sidetrack)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Category or Protocol? (sidetrack)


  • Subject: Re: Category or Protocol? (sidetrack)
  • From: Chris Hanson <email@hidden>
  • Date: Wed, 20 Apr 2005 16:24:37 -0700

On Apr 19, 2005, at 8:18 PM, Jeff Laing wrote:
In my source files, I tend to have chunks sectioned off with:

////////////// NSApplication delegate stuff ////////////////////

comments so that I can locate things. Yes, I could use the various popup
widgets in XCode but so far they just haven't stuck in my unconscious. And,
of course, I need to remember the long-winded method names that correspond
to the various delegates.


Another thing I find very frustrating about Obj-C is this insistence on the
entire implementation being defined in the one compile-unit (ala Pascal).
Browsing 5000+ line source code, especially "samples from the net" can be
quite difficult.

You can use categories to split classes among multiple compilation units, and to make it easier to locate groups of methods used for specific purposes.


  --Chris

_______________________________________________
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


References: 
 >RE: Category or Protocol? (sidetrack) (From: Jeff Laing <email@hidden>)

  • Prev by Date: Re: Category or Protocol? (sidetrack)
  • Next by Date: Re: NSDocument-based architecture suiting my NSBundle-based documents case?
  • Previous by thread: Re: Category or Protocol? (sidetrack)
  • Next by thread: RE: Category or Protocol? (sidetrack)
  • Index(es):
    • Date
    • Thread