Re: private methods and variables
Re: private methods and variables
- Subject: Re: private methods and variables
- From: Bill Bumgarner <email@hidden>
- Date: Tue, 29 Jul 2008 14:08:03 -0700
On Jul 29, 2008, at 2:02 PM, Torsten Curdt wrote:
@interface MyClass
-(void) publicMethod;
@end
@interface MyClass (Private)
{
int privateVariable;
}
-(void) privateMethod;
@end
I am not sure why that would be better than to just do
@interface MyClass
-(void) publicMethod;
@end
@implementation MyClass
int privateVariable;
-(void) privateMethod {
}
-(void) publicMethod {
}
@end
Any wise words?
privateVariable is a global in your second example.
b.bum
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden