• 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: Why does this leak memory?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why does this leak memory?


  • Subject: Re: Why does this leak memory?
  • From: j o a r <email@hidden>
  • Date: Mon, 11 Jul 2005 17:31:58 +0200


On 11 jul 2005, at 17.24, Matt Ball wrote:

I've read through that page and its conceptual counterpart, and I
don't see why that is applicable to my situation. The values of a cell
are set by the tableView's methods; they do not all have the same
values. I'm sure I'm interpreting it wrong, but I don't see how that
will help me. I've messed around with the code on that page, and the
effect is the same.

1) A cell subclass used by a table view needs to implement NSCopying protocol correctly, because the table view will copy cells from time to time.


2) If you implement support for NSCopying incorrectly, you can end up with memory management errors that causes crashes. There is information about this problem on the page that I linked to in my last message.

We might be able to offer some suggestions if you can provide:

* The interface of your cell subclass
* The implementation of NSCopying for your cell subclass

I'm not even sure that this is the problem you're seeing, as I don't know your current implementation, and since I haven't seen the backtrace to your crash.

j o a r


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Follow-Ups:
    • Re: Why does this leak memory?
      • From: Matt Ball <email@hidden>
References: 
 >Why does this leak memory? (From: Matt Ball <email@hidden>)
 >Re: Why does this leak memory? (From: Charilaos Skiadas <email@hidden>)
 >Re: Why does this leak memory? (From: Matt Ball <email@hidden>)
 >Re: Why does this leak memory? (From: Charilaos Skiadas <email@hidden>)
 >Re: Why does this leak memory? (From: Matt Ball <email@hidden>)
 >Re: Why does this leak memory? (From: Charilaos Skiadas <email@hidden>)
 >Re: Why does this leak memory? (From: Matt Ball <email@hidden>)
 >Re: Why does this leak memory? (From: Bob Ippolito <email@hidden>)
 >Re: Why does this leak memory? (From: j o a r <email@hidden>)
 >Re: Why does this leak memory? (From: Matt Ball <email@hidden>)

  • Prev by Date: RE: SOAP Handler question
  • Next by Date: Re: SOAP Handler question
  • Previous by thread: Re: Why does this leak memory?
  • Next by thread: Re: Why does this leak memory?
  • Index(es):
    • Date
    • Thread