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

Re: async NSOperation and NSOperationQueue


  • Subject: Re: async NSOperation and NSOperationQueue
  • From: Quincey Morris <email@hidden>
  • Date: Mon, 15 Sep 2008 11:04:15 -0700

On Sep 15, 2008, at 10:31, Jason Coco wrote:

You /should/, however, autorelease your NSOperation since your queue
will retain it when you add it and release it when it completes.

This sounds plausible, but I can't find anything in the documentation promising that NSOperationQueue will retain its NSOperation objects. (The sample code in the Threading Programming Guide does no memory management, so apparently leaks its NSInvocationOperation object.)


It's possible that it's not safe to release a NSOperation until after it returns YES to [NSOperation isFinished].


_______________________________________________

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


  • Follow-Ups:
    • Re: async NSOperation and NSOperationQueue
      • From: Ken Thomases <email@hidden>
    • Re: async NSOperation and NSOperationQueue
      • From: Jason Coco <email@hidden>
References: 
 >Re: async NSOperation and NSOperationQueue (From: John Love <email@hidden>)
 >Re: async NSOperation and NSOperationQueue (From: Jason Coco <email@hidden>)

  • Prev by Date: Re: NSUInteger in for-loop?
  • Next by Date: Re: NSUInteger in for-loop?
  • Previous by thread: Re: async NSOperation and NSOperationQueue
  • Next by thread: Re: async NSOperation and NSOperationQueue
  • Index(es):
    • Date
    • Thread