• 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
gif animation under a blocking
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gif animation under a blocking


  • Subject: gif animation under a blocking
  • From: "Koshiro MITSUYA" <email@hidden>
  • Date: Fri, 18 May 2007 14:33:53 +0900

Hello,

I am a quite newbie of Cocoa.  I need some help.

I am trying to have a gif image animating during a HTTP session
between a server.
However, the animation stopped when I called NSURLConnection because
(maybe) the connection is blocking the process.


The code is like following:

-- in the header definition:
// the NSImageView is bind to a NSImageView  on the mainWindow by
InterfaceBulder
IBOutlet NSImageView *aImage;

-- in the .m code:
[aImage setImage:[NSImage imageNamed:"gifAnimation.gif"]];
[aImage setAnimates:YES];

<... snip...>

receivedData = [NSURLConnection sendSynchronousRequest:theRequest
returningResponse:&response error:&error];


I found it's somehow related to RunLoopMode, but I have no idea. Does anyone have any suggestion to solve this?

thanks in advance,
Koshiro
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: gif animation under a blocking
      • From: Andrew Farmer <email@hidden>
  • Prev by Date: Re: Changing the sequence of editing cells in NSTableView/NSOutlineView
  • Next by Date: Re: gif animation under a blocking
  • Previous by thread: Re: Changing the sequence of editing cells in NSTableView/NSOutlineView
  • Next by thread: Re: gif animation under a blocking
  • Index(es):
    • Date
    • Thread