On Mon, Jul 18, 2011 at 2:30 PM, Peter <magn...@web.de> wrote:
> Yes - so the more appropriate question is why it was retained 4 times.
> I don't see Cocoa doing it.
> It's the programmer - mostly.
> Could you give us more code?
>
> Cocoa gives us a very reliable way to know, when an object is released: If 
> the reference count goes down to 0.
> The question now is how to bring it down to 0.

Don't think about retain counts. Especially on NSTextView, which has a
custom retain/release implementation that prevents its retain count
from ever reaching zero the normal way, and changes depending on
whether the NSTextView was unarchived from nib or created
programmatically.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to