Newby Question
Newby Question
- Subject: Newby Question
- From: R T <email@hidden>
- Date: Sat, 9 Jul 2005 17:45:25 -0700 (PDT)
I'm using an array in a class and I'm not sure how to
write the get and set methods...can anyone correct
these lines.
#import <Cocoa/Cocoa.h>
@interface MyArrayClass : NSObject
{
int anArray[10];
}
- (void)anArray;
- (int)setAnArray:(int)bArray;
@end
___________________________________
#import "MyArrayClass.h"
@implementation MyArrayClass
- (int)anArray { return anArray; }
- (int)setAnArray:(int)bArray { anArray = bArray; }
@end
Thanks
Rick T.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
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