touch

Windows version of the Unix touch command

I'm looking for a Windows port of the UNIX touch command. I don't want to install an entire MKS toolkit just for the one tool. Is there a native port available somewhere or a command in Windows that does the same thing and supports features like all files in a directory by wildcard? Specifically I'm after changing mtime, ctime and atime...

Hidden UINavigationController inside UITabBarController

I have an application with 5 UIViewControllers each inside a corresponding UINavigationController, all tucked inside a UITabBarController that displays 5 tabs at the bottom of the screen. I want to display another UIViewController (inside a UINavigationController) when a dialog button is pressed. This view should only be loaded and unl...

How to develop multi-touch applications in Java?

Anticipating the day when multi-touch interfaces become more pervasive, are there libraries in Java that can be used for developing touch applications? I'm looking for interfaces similar to MouseListener / MouseMotionListener / MouseWheelListener. ...

Problem with cocos2D for iPhone and touch detection

I just don't get it. I use cocos2d for development of a small game on the iPhone/Pod. The framework is just great, but I fail at touch detection. I read that you just need to overwrite the proper functions (e.g. "touchesBegan" ) in the implementation of a class wich subclasses CocosNode. But it doesn't work. What could I do wrong? the f...

NSTimer and Touches event conflict

hi im trying to execute 2 actions on occurrence of their particular events one is the animation occurring when the a timer with fixed interval is fired and other is also a animation occurring when a touch is detected both r working fine individually but when simultaneously occurring anyone of the animation slows down .its because in the...

How to get touch event on a CALayer?

ok - I'm new to the iPhone SDK. Right now I'm programming with CALayers which I really like a lot- not as expensive as UIViews, and a lot less code than OpenGL ES sprites. I have this question- is it possible to get a touch event on a CALayer? I understand how to get a touch event on a UIView with -(void)touchesBegan:(NSSet *)touches...

How can I implement an autoselection textbox like the one for e-mail addresses on the iPhone?

On the iPhone's mail app, you can type in multiple mail addresses...and then to delete one you just tap it, and click Del. How can I implement something similar in my app? I tried to handle the tap on a UITextView, but it looks like the touchesBegan and related delegate methods are not fired for this class and its subclasses :( Any idea...

jQuery live() removing iPhone touch event attributes?

I am binding live events on links in my PhoneGap app. The event does fire successfully (confirmed by alert()ing), but it seems any touch data is not attached to the event object like it should be. This happens on all touch events - touchstart, touchmove, and touchend. $('a').live('touchend', function(event) { event.preventDefault(); ...

iPhone touch methods not working with release build

Hey all, I'm having a strange issue where a custom control I've built for the iPhone works perfectly when building in debug mode but only works partially when built in release mode. The main wrapper view is a subclass of UIView and it contains a row of "buttons" that are added as subviews. The custom button class extends UIImageView an...

Problem with touchesMoved and drawRect.

I have a sticky bug that I can't seem to figure out, and I think it has something to do with the way touchesMoved is implemented. in touchesMoved, I check to see where the touch is (if statement) and then accordingly, call setNeedsDisplayWithRect on a 40 by 40 area near the touchpoint. What happens in DrawRect is that a black image ...

Why are touch events destroying my Android framerate?

I'm developing a game for Android. It's got a lot going on but is running reasonably smoothly. That is, of course, until the user touches the screen. While they're touching it, onTouchEvent is called (with action = ACTION_MOVE, x = 0 and y = 0) roughly once every ten milliseconds at what appears to be a fairly high priority, as it absol...

iPhone UITextField in Landscape mode

How do you get the keyboard (for editing a UITextField) to come up in the correct orientation if you are in Landscape mode? I'm doing a game in openGL in landscape mode. I add a UITextField when it's time for the user to enter their name for a high score. I can rotate the UITextField (with a CGAffineTransformMakeRotation thanks) but ...

Objective-C/Cocoa: Proper design for delegates and controllers.

Consider the following common situation: You have some MainView in your Cocoa application, loaded from a NIB, which is controlled by a MainViewController. Your MainView contains some controls, such as a UILabel infoLabel. You also have a delegate MyDelegate class which receives some sort of event. You would like to make sure that whe...

Productivity Gains from using Multi-Touch User Interfaces

Given a typical developer usage, I am wondering how much gains/utility can one derive out of a multi-touch Win7 Laptop or a Surface device. If people have experiences to share or if there were some studies on this please share ...

Keyboard Iphone

Is possible to know when the user touch the keyboard iphone? When the user touch some button from keyboard... :/ ...

UIPickerView not appearing until touch occurs

I'm programatically adding two custom UIPickerViews to another view (MainView). They work just fine but they are not visible until a touch event occurs in any part of the MainView. I've checked the class references for UIPickerView and UIView but haven't found anything that manages to "refresh" the view, unless I'm missing something obvi...

Why can I 'touch' a write-protected file?

Why is it possible to touch a write-protected file? Shouldn't the following give an error? $ touch test.txt $ chmod a-w test.txt $ ls -l test.txt -r--r--r-- 1 name group 0 Jun 13 09:14 test.txt $ touch test.txt && echo OK OK $ ls -l test.txt -r--r--r-- 1 name group 0 Jun 13 09:15 test.txt Does touch change permissions, touch the fil...

How to simulate touch event ?

as topic , I want fire touch event without user touch actions , does it possible ? thanks for your help in advance . Thanks . ...

Why is a Silverlight button hard to click by touch on an HP Touchsmart?

I am using Silverlight to develop an application that we anticipate will be used heavily on touch screen monitors in the healthcare setting. I am finding that simple controls like Button, or even simpler primitive controls that I've written myself to capture mouse events, are very flaky and unresponsive on an HP Touchsmart. Many times ...

How do I accelerate the touchesBegan event firing?

Hello, I have a UIView where I use the touchesbegan event, but I realized that once I put my finger on it, the touchesBegan event takes like 1 or 2 seconds to fire. How can I make this happen faster? thanks!!! ...