Re: private methods and variables
Re: private methods and variables
- Subject: Re: private methods and variables
- From: Erik Buck <email@hidden>
- Date: Tue, 29 Jul 2008 20:35:41 -0400
On Jul 29, 2008, at 7:19 PM, Erik Buck wrote:
@implementation MyClass
int privateVariable; // this is an instance variable
@end
and
int privateVariable; // this is a global variable
@implementation MyClass
@end
Never mind. both declarations above are global variables.
@interface MyClass : NSObject
{
int privateVariable; // this is an instance variable
}
@end
and
extern int privateVariable; // this is a global variable
@interface MyClass : NSObject
{
}
@end
_______________________________________________
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