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)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 wrote:
> 
>> 
>> 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 
>>> shake events? I have scoured the docs but didn't find anything relevant.
>>> 
>>> --Graham
>> 
>> 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
>> 
>> _______________________________________________
>> 
>> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>> 
>> 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:
>> http://lists.apple.com/mailman/options/cocoa-dev/rowlandd%40sbcglobal.net
>> 
>> This email sent to rowla...@sbcglobal.net
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/rowlandd%40sbcglobal.net
> 
> This email sent to rowla...@sbcglobal.net

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to