Re: variable scopes
Re: variable scopes
- Subject: Re: variable scopes
- From: Jeff LaMarche <email@hidden>
- Date: Sun, 7 Oct 2001 11:37:41 -0700
On Sunday, October 7, 2001, at 11:23 AM, email@hidden wrote:
ok i know this might have been asked before but how to you make a
variables scope public?thanx in advance
The answer to this is found in "Object Oriented Programming and the
Objective C Language" available from Apple's developer website. I would
highly recommend reading it if you're going to do any Cocoa programming.
The following pseudo-code should give you all you need to know for
setting an iVar's scope:
@interface foo : NSObject
{
@private
int myPrivateFoo;
@protected
int myProtectedFoo;
@public
int myPublicFoo;
}
...
@end