newbie : init ?
newbie : init ?
- Subject: newbie : init ?
- From: Famille GOUREAU-SUIGNARD <email@hidden>
- Date: Wed, 12 Jun 2002 10:01:55 +0200
Hi,
sorry for this dumb one :
I made my own subclass of NSTextField. It now uses a NSArray.
.h
@interface TextFieldAmeliore : NSTextField
{
NSMutableArray *listeItem ;
}
@end
Where does I put the line : listeItem = [[NSMutableArray alloc]
initWithCapacity:0];
I think I should override the init function of NSTextField, but I think
- (id) init
{
listeItem = [[NSMutableArray alloc] initWithCapacity:0];
return self ;
}
is not good.
Why ?
Thanks.
Camille
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.