touch

Handling subview's touch events within it's parent while retaining screen coordinate data relative to window

Hi, Parent is a UIImageView, child is a UIImageView. Both have enable user interaction set to yes. Problem is that child will cover parent view, so can't fire touches from the parent, need to do them from the child. But how can the child either set a new image file in the parent based on it's touch events which can be acquired by user ...

Detect double-tap on UISlider?

I can detect single/double-taps in specific views with: NSSet *myTouches = [event touchesForView:mySpecificView.view]; but I want to detect a double-tap on the button of a slider and can't find any reference to it. Is there a replacement for "touchesForView:" where I can enter the name of my slider? usage: I have three sliders with ...

Simulate touch command with Java

I want to change modification timestamp of a binary file. What is the best way for doing this? Would opening and closing the file be a good option? (I require a solution where the modification of the timestamp will be changed on every platform and JVM). ...

How do I know if a MotionEvent is relative or absolute?

I am implementing OnTouchListener and am receiving MotionEvent objects. Some ACTION_MOVE events reports absolute X/Y coordinates, while some reports relative coordinates. How can I ask a MotionEvent what kind of coordinates it currently represents? ...

How to make an UIAlertView(Pop Up) Come When a Bouncing image touches a dragable image(iPhone SDK)?

Hi Guys how can a pop up alert cum when an bouncing img touches a dragable image like how it is done in this app http://tinyurl.com/kspnh6 Example there is an image that is going up and down the screen and it touches an image that we can drag here & there,how can v bring a alertview when that image touches the moving image thanks ...

Cocos2d iPhone Non-Rectangular Sprite Touch Detection

Have a project with a TRIANGLE shaped graphic in a sprite. I am arranging these sprites in a grid so that their rectangles are all overlapping. As sprites get touched their z-order is being changed (by me) to put them on the top of zOrder. I am using Cocos 0.8.1 and the touch dispatcher method. I have touches working but obviously the "...

multitouch not working in uitabbar controller

Hi, I wrote a Simple View Controller with multi touch function (swipe left, swipe right). It works fine if I set it to window directly. But after I added a tab bar controller and add this Simple View in its selected view, the multi-touch event won't get fired any more. Please help. Thanks. ...

equivalent of "touch" in scons?

scons uses MD5 hashes rather than file mod times to determine if a dependency needs to be built. I want this to be the default behavior. But is there any way to force it to assume a particular file is out of date (the equivalent of "touch"), besides editing the file to make it different? edit: use case: binary file F is used to create...

Why am I not receiving either WM_GESTURE or WM_TOUCH?

My window is not receiving WM_GESTURE messages, nor WM_TOUCH messages. According to the msdn touch troubleshooter, I ought to be receiving WM_GESTURE messages unless I have called RegisterTouchWindow, which I have not. My code calls GetSystemMetrics as described in the help page for "Getting started with Windows Touch", and it tells me t...

how do i handle uislider's touch event in iphone?

i want to fire a timer as user slides the slider when the touch ends. is there a way to handle touch events of uislider? ...

Comparing Touch Coordinates.

Is it possible to compare touch coordinates made by the users on the UIView to the one store in a plist or txt format? The argument looks like this; if (user touch coordinate == touch coordinate stored in plist or text) then (do something) else (do something) If possible in what format should i write the coordinates in t...

Adding a UIImage on a touch event iPhone

OK i am really struggling with this! I know had to add an image to the view, i know how to record a touch event. But combining the two is proving to be an issue. There are lots of tutorials out there on how to move an image with touch events. But Could anyone suggest how i might complete the following: Add an image to the view on t...

Preventing touches from being handled by a parent table view

I have a custom table view cell that handles user gestures. However, even if I have exclusiveTouch set to YES, the moment the y value changes by any amount, scolling starts, even if I'm in the middle of handling the touch events. How do I prevent the table from scrolling when I'm handling touch events in the cell? ...

Variable losing its value (iPhone SDK)

I declare a variable in the header file and synthesize it in the implementation. When the view loads (ViewDidLoad) I read a plist file an populate the variable with a value. WIth my NSLog I see that the variable contains the value. However, after the view loads, I have some interaction with the user via a button the executes a method....

UIScrollView. What is the correct way to allow a subview to receive touch events?

I have a relativeluy simple setup. myScrollView containerView touchSensitiveView passiveView So, touchSensitiveView and passiveView are subviews of containerView which is the only subview of myScrollView, a UIScrollView instance (not a subclass of UIScrollView). touchSensitiveView implements all touch sequence methods: ...

Recognize regular taps in table view on iPhone

Hello, I have a table view with custom cells and I recognize swipes in that cells. That works just fine but I'd like the table view to behave normally. When I tap the wherever on the table view I'd like cell to get selected and perform action tableView:didSelectRowAtIndexPath: Any tips or ideas? Thanks. ...

Emulating touch-screens

Hi, How would you emulate touch-screens? I wouldn't want to pay $ to get a touch-screen to test my software whether it supports touching fully. Any links or tips? ...

UX Design for Disabled Controls w/ the Touch Interface

So we're re-designing a desktop application so that it's also usable with thye Touch Interface with Windows 7. We've consulted the UX guidelines. For some part of the UI, there are toolbox icons that are disabled because of some arcane rules (the software communicates with a hardware device). We disable the actions that aren't applicabl...

CGrectContainPoints & Touches queries

Im getting straight to the point. I have static coordinates stored as array and i want to compare this coordinates with user touch. //touch handling UITouch *touch = [[event allTouches] anyObject]; CGPoint touchPoint = [touch locationInView:touch.view]; //comparing touches if (CGRectContainsPoint((CGRectMake(x1, y1, w, h)) , touchPo...

How to write software for my touchpad?

I have some ideas for improvements on my touchpad, ranging from the run of the mill scroll horizontally at the bottom, tapzones for right click, to more complicated ones. But I have no idea where to get started? I'm working on Windows 7 Home Premium, its an Asus laptop, and I have none of these options natively available to me. Regardles...