QuickTime callbacks
QuickTime callbacks
- Subject: QuickTime callbacks
- From: Candide Kemmler <email@hidden>
- Date: Sun, 1 Jul 2001 20:46:51 +0200
Hi !
On my way to porting my mapping program from java to the Mac, I now have
everything I need to get the data from my server and parsing it
appropriately (I had to learn using pointers for this !).
Now, I need to render the data.
I already have my server generate Macromedia flash (.swf) files, which
is cool for web browsers. Now, to display the maps on a Mac screen, I
could get the raw data (in some proprietary format), parse it, and then
use the NSBezierPath stuff to render the map... Better though, I could
use the flash rendering capabilities of QuickTime to display the maps.
But then, I need to be able to interact with the maps.
Specifically, I have to be able to respond to the user clicking on
specific spots on the map (points of interest). The user must also be
able to add spots of his own and also other kinds of information
(textual information, or even drawings, etc.)
I looked quickly into the NSMovie and NSMovieView classes'
documentation. But that was to discover disapointingly that the only
things you could do with the movie was to play it, stop it, rewind
it,... but nothing more advanced from what QuickTime really allows for.
This is really a kindergarten kind of thing to my opinion... I read
somewhere though (cannot remember where) that NSMovie allows to get a
pointer to the QuickTime movie (there's indeed such a function in the
Objective-C implementation, why not in Java's, since there's a Quicktime
for Java API ?). What from there ? Does the QTMovie offer an API to
respond to user input which I could just use inside my Cocoa app ?
I'd really appreciate infomation on this, as it could save me a big
amount of time...
Thank you in advance,
Candide