[comp.sys.mac.programmer] What events do CDEVs see????

TJACOBS@cc.utah.edu (06/11/90)

I'm writing a CDEV with ThinkC 4.0 using their *sample* CDEV project. I want
to sense when a disk is inserted and perform some action.

The CDEV runner is grabbing this event so the CDEV is never seeing the 
"diskevt" event. So in trying to run the CDEV straight without using the CDEV
runner myCDEV still doesn't see this event. Is there some reason why CDEVs
don't get certain events. I haven't messed with the SysEvtMask, do control
panel devices get only certain events?

At this point in time I am simply using an

if(theEvent == diskevt) SysBeep(10); 

line of code to see if the CDEV is getting the event.     No Beep!

Any hints or pointers would be appreciated.

Tony Jacobs
Center for Engineering Design
University of Utah

t-jacobs@ced.utah.edu