• 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: Implementation across several files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Implementation across several files


  • Subject: Re: Implementation across several files
  • From: Scott Ellsworth <email@hidden>
  • Date: Wed, 19 Apr 2006 13:52:15 -0700


On Apr 19, 2006, at 1:07 PM, Phil Montoya wrote:

Anyhow the file is big and I want to break it up and have the implementation straddle several files.

I have usually done this via various categories. Each gets the methods appropriate for the chunk of functionality it is responsible.


(For example, MyDocument+FileIO.h/m, MyDocument+Simulation.h/m, MyDocument+GraphTrawling.h/m.)

I use the same techniques to move helper methods into a category declared and implemented in the .m, which keeps them out of the public interface. I do wish there were a similarly clean way to declare some instance variables that cannot easily be seen from outside, but I understand why there are not.

Drop a line if you need more direction on setting up categories. They are quite useful for this.

Scott
_______________________________________________
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: Implementation across several files
      • From: Ondra Cada <email@hidden>
References: 
 >untar into app bundle (From: petter <email@hidden>)
 >Re: untar into app bundle (From: Ondra Cada <email@hidden>)
 >Implementation across several files (From: Phil Montoya <email@hidden>)

  • Prev by Date: Re: object Allocation
  • Next by Date: Keys of the kingdom
  • Previous by thread: Re: Implementation across several files
  • Next by thread: Re: Implementation across several files
  • Index(es):
    • Date
    • Thread