Re: Implementation across several files
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