• 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: NSOperation and NSAutoreleasePool
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOperation and NSAutoreleasePool


  • Subject: Re: NSOperation and NSAutoreleasePool
  • From: Kyle Sluder <email@hidden>
  • Date: Sat, 7 Mar 2009 02:36:05 -0500

On Sat, Mar 7, 2009 at 1:31 AM, Aaron Wallis <email@hidden> 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 (email@hidden)

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:

This email sent to email@hidden

References: 
 >Fwd: NSOperation and NSAutoreleasePool (From: Aaron Wallis <email@hidden>)
 >Re: NSOperation and NSAutoreleasePool (From: Kyle Sluder <email@hidden>)
 >Re: NSOperation and NSAutoreleasePool (From: Aaron Wallis <email@hidden>)
 >Re: NSOperation and NSAutoreleasePool (From: Roland King <email@hidden>)
 >Re: NSOperation and NSAutoreleasePool (From: Aaron Wallis <email@hidden>)
 >Re: NSOperation and NSAutoreleasePool (From: Graham Cox <email@hidden>)
 >Re: NSOperation and NSAutoreleasePool (From: Aaron Wallis <email@hidden>)

  • Prev by Date: Re: NSOperation and NSAutoreleasePool
  • Next by Date: Re: Moving a window offscreen
  • Previous by thread: Re: NSOperation and NSAutoreleasePool
  • Next by thread: Re: NSOperation and NSAutoreleasePool
  • Index(es):
    • Date
    • Thread