Re: NSTextFieldCell subclass
Re: NSTextFieldCell subclass
- Subject: Re: NSTextFieldCell subclass
- From: "Alastair J.Houghton" <email@hidden>
- Date: Wed, 24 Sep 2003 10:12:19 +0100
On Wednesday, September 24, 2003, at 03:24 am, David Schmitt wrote:
The results are that -init is called once, but each and every time I
click in the subclassed cell, -dealloc gets called. How (and why) can
this be? I've looked at this for days and can't figure it out.
I think you'll find that the cell is being copied (using either -copy
or -copyWithZone:). It's the copy whose -dealloc is running. (Try
doing
NSLog(@"dealloced %p\n", self);
in your -dealloc function).
Kind regards,
Alastair.
_______________________________________________
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.