[SOLVED] Re: iOS: getting the shakes

2011-05-31 Thread Graham Cox
On 01/06/2011, at 2:19 PM, Roland King wrote: > s your uiresponder the first responder? Aha! No, it wasn't :) Thanks - it's working now. --Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderat

Re: iOS: getting the shakes

2011-05-31 Thread Roland King
Is your uiresponder the first responder? On Jun 1, 2011, at 11:35, Graham Cox wrote: > In my IOS app, I'm overriding -motionBegan:withEvent: in my view controller, > trying to receive shake events. But it's never called (iOS simulator, version > 4.3). > > Is there something else I need to d

Re: iOS: getting the shakes

2011-05-31 Thread Graham Cox
On 01/06/2011, at 1:55 PM, David Rowland wrote: > I think you want, > > - (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event > > You make a subclass of UIView, instantiate it, and implement the above within > that subclass. Hmm, thanks but it's still not called. I have a

Re: iOS: getting the shakes

2011-05-31 Thread David Rowland
That should be a subclass of UIResponder. You don't need a UIView, but I suppose you could use an existing one. D On May 31, 2011, at 8:55 PM, David Rowland wrote: > It's an iOS device, not a computer. No mouse, no keyboard. > > I think you want, > > - (void)motionEnded:(UIEventSubtype)moti

Re: iOS: getting the shakes

2011-05-31 Thread Graham Cox
On 01/06/2011, at 1:42 PM, Eli Bach wrote: > Well, how hard did you shake your computer? You have to actually shake the > computer, as neither your mouse nor your keyboard have a motion sensor. > > Eli You're a funny guy. :) I assume you are being funny: the simulator has a "shake" menu com

Re: iOS: getting the shakes

2011-05-31 Thread David Rowland
It's an iOS device, not a computer. No mouse, no keyboard. I think you want, - (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event You make a subclass of UIView, instantiate it, and implement the above within that subclass. David On May 31, 2011, at 8:42 PM, Eli Bach wro

Re: iOS: getting the shakes

2011-05-31 Thread Eli Bach
On May 31, 2011, at 9:35 PM, Graham Cox wrote: > In my IOS app, I'm overriding -motionBegan:withEvent: in my view controller, > trying to receive shake events. But it's never called (iOS simulator, version > 4.3). > > Is there something else I need to do to specifically enable delivery of shak

iOS: getting the shakes

2011-05-31 Thread Graham Cox
In my IOS app, I'm overriding -motionBegan:withEvent: in my view controller, trying to receive shake events. But it's never called (iOS simulator, version 4.3). Is there something else I need to do to specifically enable delivery of shake events? I have scoured the docs but didn't find anything