• 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: NSURLDownload delegate methods seperate thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: NSURLDownload delegate methods seperate thread


  • Subject: RE: NSURLDownload delegate methods seperate thread
  • From: Colin Deasy <email@hidden>
  • Date: Wed, 9 Sep 2009 17:58:33 +0000
  • Importance: Normal

I just tried Apple's sample code QuickLookdownloader which behaves in exactly the same manner :-/
Shark didn't give me back anything useful either!

> CC: email@hidden; email@hidden
> From: email@hidden
> To: email@hidden
> Subject: Re: NSURLDownload delegate methods seperate thread
> Date: Wed, 9 Sep 2009 09:57:45 -0700
>
>
> On Sep 9, 2009, at 8:35 AM, Colin Deasy wrote:
>
> > Ok so I have tried both ways, using the main thread for the download
> > messages and using NSOperationQueue to create separate threads & run
> > loops.
> > I'm still getting 30% CPU though. When I run it, my app seems to
> > send the
> > kernel_task a bit crazy (that's where most of the CPU is going).
>
> Sample your process and see what the heck it's doing when this is
> going on. Sounds like you've got some code in an spin-loop.
>
> (If your process doesn't seem busy, use Shark or Instruments to sample
> all processes.)
>
> —Jens

_________________________________________________________________
What can you do with the new Windows Live? Find out
http://www.microsoft.com/windows/windowslive/default.aspx_______________________________________________

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: 
 >NSImage with multiple representation sizes (From: Benjamin Rister <email@hidden>)
 >Re: NSImage with multiple representation sizes (From: Ken Ferry <email@hidden>)
 >Re: NSImage with multiple representation sizes (From: Benjamin Rister <email@hidden>)
 >NSURLDownload delegate methods seperate thread (From: Colin Deasy <email@hidden>)
 >Re: NSURLDownload delegate methods seperate thread (From: Randall Meadows <email@hidden>)
 >RE: NSURLDownload delegate methods seperate thread (From: Colin Deasy <email@hidden>)
 >Re: NSURLDownload delegate methods seperate thread (From: Dave Carrigan <email@hidden>)
 >RE: NSURLDownload delegate methods seperate thread (From: Colin Deasy <email@hidden>)
 >Re: NSURLDownload delegate methods seperate thread (From: Dave Carrigan <email@hidden>)
 >RE: NSURLDownload delegate methods seperate thread (From: "Colin Deasy" <email@hidden>)
 >Re: NSURLDownload delegate methods seperate thread (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: NSUserDefaults synchronization in Foundation tools
  • Next by Date: Re: How to set the media box for a CGPDFPageRef?
  • Previous by thread: Re: NSURLDownload delegate methods seperate thread
  • Next by thread: Mac Mini or iMac for Cocoa Development?
  • Index(es):
    • Date
    • Thread