On Sat, Mar 7, 2009 at 1:31 AM, Aaron Wallis <d2k...@gmail.com> wrote:
> Thanks for pointing that one out, but it wasn't the cause for my problem.
> As for retaining the delegate, originally I wasn't, I just took the advice
> from Roland, but it doesn't break if I don't have it there :D

Just because it doesn't break right here, right now does *not* make it
acceptable or correct behavior.

You have a memory management bug that's causing an object to disappear
and another object to be allocated in its place.  This bug is caused
by an apparent lack of understanding of the Cocoa memory management
model.  The solution is not to randomly stab retains and releases
around; the solution starts with understanding the model.

I do not mean to sound condescending, but this is a very important
fundamental concept.  Especially since you seem to be doing something
drag-and-drop related, which will involve multiple method invocations
spread out across run loop iterations and will therefore be that much
harder to get right.

--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