Weird deallocation of custom cell class
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