gif animation under a blocking
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