[futurebasic] Re: [FB] re: Great Mousepaint Challenge

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 2001 : Group Archive : Group : All Groups

From: Andrew Pritchard <andy.pritchard@...>
Date: Tue, 04 Sep 2001 08:47:26 +0100
> I'm no expert - but I think this kind of "mouse still down" polling is a
> no no under OS X and carbon events. If you try to lock up processor time
> like this, the system will start to share time with other programs and
> your drawing routine will really fall behind. This was actually an
> example given at WWDC. If you are interested, I think this is one of the
> sessions you can view via quicktime for free (I have not checked, I'm
> waiting for my DVD set).
> 
> If you are thinking of a move to OS X in the future, you should consider
> how you track such things, as mouse move's in a painting program. The
> new way is via an event handler which is notified in this case via a
> timer. Thus every say 5ms your draw function is called, and you can
> update the plot. This will give a very responsive user experience even
> under X, and allow other processes to operate.
> 
> I hope this is correct

David,

Have you a small FB^3 example of how to implement a Carbon compliant drawing
function - I use the wrong method all over the place (eek!)

Andy