• 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: NSTextFieldCell subclass
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >NSTextFieldCell subclass (From: David Schmitt <email@hidden>)

  • Prev by Date: Re: NSMovieView problem
  • Next by Date: Setting Alpha of an NSView
  • Previous by thread: NSTextFieldCell subclass
  • Next by thread: Re: NSTextFieldCell subclass
  • Index(es):
    • Date
    • Thread