[comp.sys.mac] init's vs. cdev's

jindrich@suna3.cs.uiuc.edu (03/11/90)

I have a basic question that I cannot find a documented answer to:

What is the difference between an init and a cdev, or is there no fine
line drawn between them?

The differences that I can think of are memory usage and control panel
access.  Am I right? Are there others?

I have a feeling that I am going to get a lot of mail, but I have been
wondering too long about this.

Thanks,
Bill Jindrich (jindrich@s.cs.uiuc.edu)

Jim.Spencer@p5.f22.n282.z1.FIDONET.ORG (Jim Spencer) (03/12/90)

 >What is the difference between an init and a cdev, or is there no fine
 >line drawn between them?
 >
 >The differences that I can think of are memory usage and control panel
 >access.  Am I right? Are there others?
 >
 >I have a feeling that I am going to get a lot of mail, but I have been
 >wondering too long about this.

An INIT is a code resource which is executed on startup.  A cdev is a control panel device that is executed when you select the Control Panel DA and then click on the particular cdev's icon.  The reason for your confusing them is that a cdev _FILE_ can contain an INIT which will be executed on startup but it is the INIT not the cdev which is executed at that time.  While many cdev's contain INITs, many do not.

--  
Jim Spencer - via FidoNet node 1:282/33
UUCP: ...!uunet!imagery!22.5!Jim.Spencer
ARPA: Jim.Spencer@p5.f22.n282.z1.FIDONET.ORG

Jerry.Bono@p23.f22.n282.z1.FIDONET.ORG (Jerry Bono) (03/12/90)

Cdev's are files that are control panel devices. They may or may not contain inits, which are resources that load into ram. 

--  
Jerry Bono - via FidoNet node 1:282/33
UUCP: ...!uunet!imagery!22.23!Jerry.Bono
ARPA: Jerry.Bono@p23.f22.n282.z1.FIDONET.ORG