If I declare foo and setFoo as properties instead of methods in the interface would that be the same for the example you posted?
Thanks Greg On Thu, Nov 27, 2008 at 9:04 AM, Matt Gough <[EMAIL PROTECTED]> wrote: > Yes, something like this should do you > > In file MyObj.h > @interface MyObj : NSObject{ > Foo* _foo; > } > -(Foo) foo; > -(void) setFoo:(Foo)aFoo; > -(void) solveWorldFinancialCrisis; > > @end; > > In file MyObj+GetSetters.m: > > #import "MyObj.h" > @implementation MyObj (GetSetters) > -(Foo) foo > {....} > > -(void) setFoo:(Foo)aFoo > {....} > > @end > > In file MyObj.m: > > #import "MyObj.h" > @implementation MyObj > > -(void) solveWorldFinancialCrisis > { > // Good luck with this one :) > } > @end > > > Matt > On 27 Nov 2008, at 14:30, Greg Robertson wrote: > >> One of my implementation files is getting kind of long and I would >> like to split it into two. >> >> I have a lot of custom getters and setters and I was wondering if >> there was a way I could put them in a separate file but keep a common >> interface file? >> >> Can I do that? >> >> What is the syntax for doing this? >> >> >> Thanks >> >> >> Greg >> _______________________________________________ > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]