Re: shared instance and nstableview
Re: shared instance and nstableview
- Subject: Re: shared instance and nstableview
- From: "Lawrence Sanbourne" <email@hidden>
- Date: Tue, 9 May 2006 18:16:43 -0500
On 5/9/06, Yorh <email@hidden> wrote:
Hi Lawarence and thank you,
Yes is true, but this is not the problem, my nstableview continue to
not refresh...
Yorh,
I think your -init method is not correct. For a singleton, you can use
a regular init method:
- (id)init{
if (self = [super init]) {
allData = [[NSMutableArray alloc] init];
}
return self;
}
The difference according to the docs, is in +allocWithZone:
> <http://developer.apple.com/documentation/Cocoa/Conceptual/
> CocoaFundamentals/CocoaObjects/chapter_3_section_10.html>
Basically, use the code in the above documentation as a template for your class.
Larry
_______________________________________________
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