• 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: NSImage initWithContentsOfURL slowness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage initWithContentsOfURL slowness


  • Subject: Re: NSImage initWithContentsOfURL slowness
  • From: Nirias <email@hidden>
  • Date: Sun, 3 May 2009 22:26:50 -0700

More information:

My testing wasnt thorough enough:
While Firefox always loads rapidly, Safari has the same delay as cocoa, and
there is a clear pattern.  Two loads in 1-2 seconds, then the 3rd load takes
a really long time.  This pattern repeats with every 3rd load delayed,
whether loading NSImage from the url or refreshing in Safari.

My workaround for now is to hand code this simple HTTP Get operation,
putting the data into NSData and then initializing the NSImage from the
NSData.  Now it loads in 1/2 second or less, every time.

So it appears to be a webkit bug that afflicts both the Cocoa web
functionality as well as Safari.
_______________________________________________

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 initWithContentsOfURL slowness (From: Nirias <email@hidden>)

  • Prev by Date: Why is -makeWindowControllers getting called twice?
  • Next by Date: Creating a NSHTTPCookie
  • Previous by thread: NSImage initWithContentsOfURL slowness
  • Next by thread: Undo with NSTextView in HICocoaView
  • Index(es):
    • Date
    • Thread