2009/7/12 Ryan Spangler
<patch_work8848@yahoo.com>
Hey all,
I was looking into porting the touch events into gambit, but I am pretty new to gambit and the c ffi specifically. The touch events are somewhat complex, taking an NSSet * and a UIEvent *. From what I can tell, the NSSet contains all current touch points (so if you have three fingers down, the NSSet contains three touch points) and the UIEvent has a history of all the touch points and where they have been since the first "touchesBegan" event, though I am not sure of the specific structure of these objects yet. I am wondering what is the best way to translate these into scheme data structures? |
Lately I have come to the conclusion that it might be easier to structure the program, such that
the view and controller is programmed in Objective C and the model is programmed in Scheme.
This might change when a real Objective C FFI emerges, but until then, using Objective C
for the controller means that you can use reference material on iPhone development more
easily. I myself have found that learning the ways of Interface Builder takes it toll, so adding
one more obstacle is not worth it.
Apropos reference materials, I'll to recommend the book "iPhone SDK Development -Building
iPhone Applications by Chris Adamson, Bill Dudnet with Marcel Molina. The book is
especially good for newcomers to XCode and Interface Builder.
--
Jens Axel Søgaard