touch objects for iPhone
Posted: Fri Nov 05, 2010 9:57 pm
If you want your list on the iPhone or any other touch device it is not easy to code the "touch" into the objects. A touch is different from a mouseClick, since on a touch-device you often have a mouseMove message between mouseDown and mouseUp. If you want your object to scroll then you have to have a mouseMove handler. But then you have to figure out whether the user wants to scroll or click.
I learned this from an attempt to make a scrolling list field like in the address book of the iPhone. I guess this will be a fairly common interface element on any touch device. It allows you to scroll a list and to select one line of that list. Easily done in a mouse-driven environment, but tricky in a touch environment.
What RevMobile needs are objects for the mobile/touch interface. This with regards to functionality but also as far as design is concerned. This is currently up to the individual developer to implement.
I post this as a revlet:
http://berndniggemann.on-rev.com/iphonelistfieldrevlet/
and as a zipped stack
http://berndniggemann.on-rev.com/iphone ... vecode.zip
a "slotmachine" i.e. a endlessly scrolling "wheel" field, like on the iPhone to set timers etc. can be found here:
as revlet
http://berndniggemann.on-rev.com/slotma ... inerevlet/
as zipped stack
http://berndniggemann.on-rev.com/slotma ... ne.rev.zip
If you have comments/improvements/questions, they are welcome.
regards
Bernd
I learned this from an attempt to make a scrolling list field like in the address book of the iPhone. I guess this will be a fairly common interface element on any touch device. It allows you to scroll a list and to select one line of that list. Easily done in a mouse-driven environment, but tricky in a touch environment.
What RevMobile needs are objects for the mobile/touch interface. This with regards to functionality but also as far as design is concerned. This is currently up to the individual developer to implement.
I post this as a revlet:
http://berndniggemann.on-rev.com/iphonelistfieldrevlet/
and as a zipped stack
http://berndniggemann.on-rev.com/iphone ... vecode.zip
a "slotmachine" i.e. a endlessly scrolling "wheel" field, like on the iPhone to set timers etc. can be found here:
as revlet
http://berndniggemann.on-rev.com/slotma ... inerevlet/
as zipped stack
http://berndniggemann.on-rev.com/slotma ... ne.rev.zip
If you have comments/improvements/questions, they are welcome.
regards
Bernd