Re: [iOS] Block animation kills performance

2011-08-04 Thread Rick Mann
Thanks! On Aug 4, 2011, at 11:02 , Matt Neuburg wrote: > On Sun, 31 Jul 2011 16:20:48 -0700, Rick Mann said: >> Xcode 3.2.6, iOS 4.3. >> >> My app shows a heartbeat as a flashing red square. Once each second, I >> execute the following code. If I use the block style, overall performance of >>

Re: [iOS] Block animation kills performance

2011-08-04 Thread Matt Neuburg
On Sun, 31 Jul 2011 16:20:48 -0700, Rick Mann said: >Xcode 3.2.6, iOS 4.3. > >My app shows a heartbeat as a flashing red square. Once each second, I execute >the following code. If I use the block style, overall performance of the app >suffers greatly (the UI becomes unresponsive to touches). If

Re: [iOS] Block animation kills performance

2011-08-01 Thread Rick Mann
Thank you, Roland, for that thorough explanation. Now I understand what's going on and why. I will write a bug, if only to get the docs improved. -- Rick On Aug 1, 2011, at 3:38 , Roland King wrote: > > On Aug 1, 2011, at 8:08 AM, Rick Mann wrote: > >> >> On Jul 31, 2011, at 17:04 , Roland

Re: [iOS] Block animation kills performance

2011-08-01 Thread Roland King
On Aug 1, 2011, at 8:08 AM, Rick Mann wrote: > > On Jul 31, 2011, at 17:04 , Roland King wrote: > >> On Aug 1, 2011, at 7:32, Rick Mann wrote: >> >>> >>> On Jul 31, 2011, at 16:23 , Hunter Hillegas wrote: >>> Are you sure you don't need UIViewAnimationOptionAllowUserInteraction and >>

Re: [iOS] Block animation kills performance

2011-07-31 Thread Rick Mann
On Jul 31, 2011, at 17:04 , Roland King wrote: > On Aug 1, 2011, at 7:32, Rick Mann wrote: > >> >> On Jul 31, 2011, at 16:23 , Hunter Hillegas wrote: >> >>> Are you sure you don't need UIViewAnimationOptionAllowUserInteraction and >>> animateWithDuration:delay:options:animations:completion:?

Re: [iOS] Block animation kills performance

2011-07-31 Thread Rick Mann
On Jul 31, 2011, at 17:04 , Roland King wrote: > On Aug 1, 2011, at 7:32, Rick Mann wrote: > >> >> On Jul 31, 2011, at 16:23 , Hunter Hillegas wrote: >> >>> Are you sure you don't need UIViewAnimationOptionAllowUserInteraction and >>> animateWithDuration:delay:options:animations:completion:?

Re: [iOS] Block animation kills performance

2011-07-31 Thread Roland King
On Aug 1, 2011, at 7:32, Rick Mann wrote: > > On Jul 31, 2011, at 16:23 , Hunter Hillegas wrote: > >> Are you sure you don't need UIViewAnimationOptionAllowUserInteraction and >> animateWithDuration:delay:options:animations:completion:? > > No, I'm not sure :-) I've never worried about th

Re: [iOS] Block animation kills performance

2011-07-31 Thread Rick Mann
On Jul 31, 2011, at 16:23 , Hunter Hillegas wrote: > Are you sure you don't need UIViewAnimationOptionAllowUserInteraction and > animateWithDuration:delay:options:animations:completion:? No, I'm not sure :-) I've never worried about that option before, and don't know why it would be different

Re: [iOS] Block animation kills performance

2011-07-31 Thread Hunter Hillegas
Are you sure you don't need UIViewAnimationOptionAllowUserInteraction and animateWithDuration:delay:options:animations:completion:? On Jul 31, 2011, at 4:20 PM, Rick Mann wrote: > Xcode 3.2.6, iOS 4.3. > > My app shows a heartbeat as a flashing red square. Once each second, I > execute the fol

[iOS] Block animation kills performance

2011-07-31 Thread Rick Mann
Xcode 3.2.6, iOS 4.3. My app shows a heartbeat as a flashing red square. Once each second, I execute the following code. If I use the block style, overall performance of the app suffers greatly (the UI becomes unresponsive to touches). If I animate the more traditional way, UI responsiveness se

Re: block animation

2011-05-06 Thread Brian Bruinewoud
Thanks David, that's led me on the right path - I seem to have two instances of the view controller where there should be one so I'll need to check my NIB wiring, something wrong there. On 06/05/2011, at 01:47 , David Duncan wrote: > On May 4, 2011, at 4:50 AM, Brian Bruinewoud wrote: > >> Que

Re: block animation

2011-05-05 Thread David Duncan
On May 4, 2011, at 4:50 AM, Brian Bruinewoud wrote: > Question is: Why doesn't the Nothing button animate in all calls to the > method? Only thing I can think of is self.nothingButton == nil. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@lis

Re: block animation

2011-05-04 Thread Brian Bruinewoud
Ignore my parallel issue with loading views - they are not affecting this. I've now made a simple project which exhibits this animation issue. I create a view based ipad app Add a toolbar to the top and add two buttons to the main view: "Animate" and "Nothing" The button that comes with the toolb

Re: block animation

2011-05-03 Thread David Duncan
On May 3, 2011, at 3:40 AM, Brian Bruinewoud wrote: > Hi All, > > self.view.alpha is animated but nothing at all happens to drawingVC.view. My guess would be that 'drawingVC.view' isn't actually in a window anywhere. Given your current and previous question however, I would posit that you are

block animation

2011-05-03 Thread Brian Bruinewoud
Hi All, This animation doesn't code doesn't work properly: - (IBAction) gotClicked: (id) sender { [UIView animateWithDuration: 1.0 delay: 0.0 options: UIViewAnimationOptionCurveEaseIn animations:^{

Re: NSImageViews, Block Animation and Frame by Frame Image Swapping

2010-09-15 Thread David Duncan
ng"],nil]; >>> [playerImage setAnimationImages:playerImagesRight]; >>> [playerImage setAnimationDuration:.5]; >>> [playerImage setAnimationRepeatCount:-1]; >>> [playerImage startAnimating]; >>> >>> and turn it into a block animation wit

Re: NSImageViews, Block Animation and Frame by Frame Image Swapping

2010-09-15 Thread James Miller
>> imageNamed:@"p3.png"],[UIImage imageNamed:@"p4.png"],nil]; >> [playerImage setAnimationImages:playerImagesRight]; >> [playerImage setAnimationDuration:.5]; >> [playerImage setAnimationRepeatCount:-1]; >> [playerImage startAnimating]; >> >>

Re: NSImageViews, Block Animation and Frame by Frame Image Swapping

2010-09-15 Thread David Duncan
imageNamed:@"p1.png"], [UIImage imageNamed:@"p2.png"],[UIImage > imageNamed:@"p3.png"],[UIImage imageNamed:@"p4.png"],nil]; > [playerImage setAnimationImages:playerImagesRight]; > [playerImage setAnimationDuration:.5]; > [playerImage setAnimationRepeat

NSImageViews, Block Animation and Frame by Frame Image Swapping

2010-09-14 Thread James Miller
mage imageNamed:@"p3.png"],[UIImage imageNamed:@"p4.png"],nil]; [playerImage setAnimationImages:playerImagesRight]; [playerImage setAnimationDuration:.5]; [playerImage setAnimationRepeatCount:-1]; [playerImage startAnimating]; and turn it into a block animation with the whole &q