• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: shared instance and nstableview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >shared instance and nstableview (From: Yorh <email@hidden>)
 >Re: shared instance and nstableview (From: "Lawrence Sanbourne" <email@hidden>)
 >Re: shared instance and nstableview (From: Yorh <email@hidden>)

  • Prev by Date: Re: Quit menu item undimming itself?!
  • Next by Date: Re: Quit menu item undimming itself?!
  • Previous by thread: Re: shared instance and nstableview
  • Next by thread: Re: shared instance and nstableview
  • Index(es):
    • Date
    • Thread