[futurebasic] Re: Carbon Event Model

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2003 : Group Archive : Group : All Groups

From: "H. Gluender" <h@...>
Date: Tue, 21 Jan 2003 13:12:37 +0100
Dear Peter Bancroft,

Apple's PDF-manual mentioned by Robert Purves surely is much better 
than the previous sketches Apple has published concerning this 
important topic. It now tells one more clearly how to write and call 
event handlers, etc.

In general CarbonEvents provides what FB has always provided. I think 
it was Tedd Sperling who mentioned this before. For those of us who 
prefer Toolbox coding, CarbonEvents is definitely the way to go. All 
the standard functionality of windows and controls is now handles by 
System/CarbonLib-routines.

For those interested in CarbonEvents, I've converted two examples 
from Bricknell's book to FB^3 that serve as an introduction to 
CarbonEvents. Both examples are in the dropbox. I highly recommend to 
download at least chapter 17 of Bricknell's book in which he explains 
what is most important in order to start using CarbonEvents.

David Cottrell has already converted Apple's CarbonEvents Header file 
to FB^3 (comes with Release7). Consequently, we just can start using 
CarbonEvents...

>Can anyone point me to a succinct description of the "Carbon Event Model"?
>
>Apples' own documentation is vague and open to misinterpretation without
>some clearer support documents.
>
>I come from a different programming background to most BASIC programmers.
>It took me quite a while until I understood handleEvents properly. So I'd
>like to make sure I understand the Mac OS X events model before I start
>using it.
>
>I know some will think, yeah, yeah, you're programming in BASIC anyway. But
>my feeling is that the underlying event model may make FB work just
>slightly differently to expectations. For example, take the difference
>between, getNextEvent and waitNextEvent. I am especially interested in the
>event queuing mechanism as applied to processing in real time systems, and
>queue threading.
>
>Thanks for any pointers.


HTH

Best
-- 


                   Herbie

          ------------------------

          <http://www.gluender.de>