• 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
Weird deallocation of custom cell class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Weird deallocation of custom cell class


  • Subject: Weird deallocation of custom cell class
  • From: Lars Hoss <email@hidden>
  • Date: Fri, 7 Dec 2001 10:51:08 +0100

Hi!

I'm facing a very weird problem and perhaps someone can help me.
I have written a class that extends from NSTextFieldCell. I told NSOutlineView
to use this class for the first column:

myCell = [[MyNSTextFieldCell alloc] init];
[myCell setFolderIcon: folderIcon];
col = [outlineView tableColumnWithIdentifier:@"filename"];
[col setDataCell:myCell];

Now, when the application starts everything seems to be fine at first.
But when I click on an entry in the first column my app crashes.
I found out that the myCell instance receives a dealloc message
right after clicking on a cell in the first column.

It seems to make no sense to send a dealloc message here?

Thanks for you help in advance.
Lars


  • Follow-Ups:
    • Re: Weird deallocation of custom cell class
      • From: Matt Rollefson <email@hidden>
  • Prev by Date: Probably solved: Equivalent to gethrtime()
  • Next by Date: NSGlyph, NSBezierPath questions
  • Previous by thread: Probably solved: Equivalent to gethrtime()
  • Next by thread: Re: Weird deallocation of custom cell class
  • Index(es):
    • Date
    • Thread