jonathanpenn / ui-auto-monkey

UI AutoMonkey is a simple stress testing script for iOS applications that runs in UI Automation and Instruments. Grass fed. Free range.
http://cocoamanifest.net
MIT License
1.47k stars 249 forks source link

- restrict events to rectangular area of screen #3

Closed foochris closed 11 years ago

jonathanpenn commented 11 years ago

I really like this idea! I definitely want to merge this in. Would you mind if I changed the interface a bit?

I'm thinking that matching the way UI Automation specifies rects would be good. It does the same thing as CGRect, {origin: {x: 1, y: 2}, size: {320, 200}}, something like that.

Also, what would you think of naming it frame instead of boundsArea, too? By setting up a rect, it reminds me of frames for UI Views.

Just trying to figure out ways to keep the API consistent with Cocoa Touch. Let me know what you think.

foochris commented 11 years ago

Renaming is fine with me and your idea of making it like CGRect is great. Make the changes and I'll pull down the latest from your master branch