touch

How do I get the touch location of a different view?

Touch may specify self to get the touch location in its own coordinate system but how do i get it from another? Say another UIview's coordinate system? - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { [UIView beginAnimations:@"box" context:nil]; [UIView setAnimationDuration:1]; [UIView setAnimationBegins...

How to make a Swing application touchable?

We developed a Swing GUI system running on PC, and the boss wants it to run on a special tablet PC too. Does anyone know what else we can do to achieve it? How to make a Swing GUI support touch operation? The touch-support driver of the tablet PC is necessary, of course. ...

Touch files from Z->A with a delay

I need to do a touch of several files in a directory in reverse alphabetical order, with a 1 second delay. These files have spaces in their names. I've tried this: ls | sort -r | tr '\012' '\000' | xargs -0 touch and this: #!/bin/bash for i in $(ls -r); do touch "$i" sleep 1 done but the first makes it too quick and doesn...

Blackberry Storm Emulator - TouchGesture events not firing, how to get a Swipe to work?

Been playing with the Storm Emulator and the 4.7 JDE, for the life of me I can't figure out how to fire gesture events in the emulator. Below is the touch event code for the RIM sample app EmbeddedMapDemo. It seems straightforward enough, but touchGesture.getEvent() == TouchGesture.SWIPE never seems to register to true. How can I regis...

Propagating touches from UIApplication in a custom manner

Is it possible to propagate touches from shared application object to a custom view which has not actually received touches and somewhere at the back of the top view? Assume that I can't use my top view to track touches. ...

iPhone SDK:Trouble Dragging a UIImageView

Hi, I am trying to drag a UIImageView around the iphone screen in my app. Currently The drag functionality I have set up is fine and dragging the image does move it around the screen, the trouble is that you don't have to drag the image view to move it, you can also drag anywhere on the screen and it will move the image. I am new to t...

Issue with receiving touches for a UIView subview of a MKMapView using MapKit

I have added a subclass of UIView as a subview to an MKMapView when a button is pressed. The UIView has its background colour set to be clear. This UIView is not getting messaged with any of the touchesBegan, etc. messages. The MKMapView seems to be receiving all the messages still as zooming still occurs on a double click, etc. How ...

iPhone Device's touch events stops responding

Hello, I'm using cocos2d version 0.73, 2.2.1 SDK on the device, 2.2.1 and 3.0 on the simulator. I have a layer with 2 menu items, and a sprite that's being dragged over the screen (using ccTouchesBegan, ccTouchesMoved and ccTouchesEnded). It's all working good on the simulator, but on the device - the menu items can be pressed many ti...

iPhone detecting touches on a map image

Hi, I have a static map image with a bunch of circles and squares on it that depict cities. I have loaded the image into an imageView that is sub-classed under a scrollView so that I can capture user touches and zoom/scroll across the map. My challenge is that I want to pop-up a label whenever a user touches one of these circles/squar...

how to identify a device (ipod Touch/iPhone) is 2G or 3G ?

Hi all, how to identify a device (ipod Touch/iPhone) is 2G or 3G ? ...

WPF supports touch or multi-touch screen?

Hello everyone, I am wondering whether WPF on .Net 3.5 supports touch or multi-touch for laptop? Appreciate if there are some cool Demos to show the effect. I am using VSTS2008 + C#. thanks in advance, George ...

Touch pad writer in iPhone

Hi, I need to develop Touch pad writer in iPhone (user will move his finger to write a letter). I know this is possible, but dont know from where to start. Do I need to use any specific framework or can be done using controls available in Interface Builder. Please suggest, what will be best approach to achieve this. Thanks SD ...

iphone UITextView manually registerring touches

I'm currently working on an app with this structure: I have a view controller which we will call MainViewController, that handles all touch events for the application. MainViewController has as an instance variable, a view called canvasView. canvasView has as a UITextView called hiddenTextView. Theres other invisible views and such so ...

Intuitive scroll for embedded browser in WPF

Hi, I am working on a project built in WPF, which includes an embedded WebBrowser. The Browser that comes with WPF did not meet our needs, so we are using a WinForms WebBrowser in a WindowsFormsHost element. This all works fine, except the application is to be used on a touch screen, and the users are having a hard time using the tiny ...

moving an object without actually touching the object

Hey guys, I'm a beginner when it comes to iPhone development and i've searched for the answer to this question and haven't found anything yet. What i'm trying to do is allow the user to move an object without actually touching the object (they can touch anywhere on the screen) and as they move the object will go from where it was origi...

Is it possible to stop touches from getting added to the queue?

Hi, I have disabled interactions in my primary view (which contains some subviews I use as buttons). I keep this disabled while I have a secondary view up indicating network activity (loading data). When it is finished, I re-enable interactions in the primary view. This is so the user isn't tapping those buttons while the network oper...

Check if drawn path/CGPath intersects itself in an iPhone game

I have a path drawn in OpenGL ES. I can convert it to a CGPath if needed. How would I check if it intersects itself (If the user created a complete loop)? ...

Easy way to feed in a decimal number as string into an NSDecimalNumber?

Reading the documentation, I would have to do something ugly like this: NSLocale *usLocale = [[[NSLocale alloc] initWithLocaleIdentifier:@"en_US"] autorelease]; NSDecimalNumber *number = [NSDecimalNumber decimalNumberWithString:@"0.00001" locale:usLocale]; But: Isn't there a nicer way of telling that NSDecimalNumber class to look out ...

Time Touch Events Take in iPhone SDK

Hi Everyone: I am wondering how I would go about measuring the time in between touches inside a view in the iPhone SDK. I know that the first event triggered is touchesBegan: and then the last one triggered is touchesEnded:, however I just don't know how I would go about measuring the time that the user has touched the view for. For i...

how to know the generation of ipod touch by code or by programatically??

I ant to know wether my ipod touch is 1st generation or 2nd generation ...