🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.mac.programmer.codewarrior
7 messages
7 total messages Started by Michael Schiltz Tue, 02 Apr 1996 05:09
mac INIT loading order
#38
Author: Michael Schiltz
Date: Tue, 02 Apr 1996 05:09
8 lines
662 bytes
how can you control the order in which an INIT loads.  I want to have my
INIT load ASAP.  any ideas?
Thanks in advance,
mike
schiltz@cs.ucdavis.edu

-- 
-Through the modem, past the router, over the firewall.. nothing but Net -
Re: mac INIT loading order
#39
Author: Brian Stern
Date: Tue, 02 Apr 1996 07:13
39 lines
2505 bytes
In article <schiltz-0104962111000001@reqd-010.ucdavis.edu>,
schiltz@cs.ucdavis.edu (Michael Schiltz) wrote:

<how can you control the order in which an INIT loads.  I want to have my
<INIT load ASAP.  any ideas?
<Thanks in advance,
<mike
<schiltz@cs.ucdavis.edu
<
<-- 
<-Through the modem, past the router, over the firewall.. nothing but Net -

Extensions are loaded in a defined order.  Resources of type 'INIT' can be
found in files of type 'INIT' (System Extension), 'cdev' (Control Panel),
'RDEV' (Chooser Device), 'appe' (application extension), and 'scri'
(script system extensions).  In order to be loaded, the INIT resource must
be in one of these file types in one of several locations in the System
Folder.  

Under system 7 INITs are loaded first from the Extensions Folder in
alphabetical order.  INITs present in script system extension files
(filetype 'scri') load before INITs present in system extension files
(filetype 'INIT').  Next, any INITs in the Control Panels folder are
loaded in alphabetical order.  Any INITs present at the root level of the
System Folder are loaded after that.  This order of loading is important
if an extension is dependent on the presence of another extension.  For
example, if an INIT resource in an INIT file named 'SpeakAll' is dependent
on the presence of the 'Speech Manager' extension, it either needs to have
its name changed to something that sorts after 'Speech Manager' or it has
to be located in the Control Panels folder, since extensions in the
Control Panels folder load after extensions in the Extensions Folder. 


You can find more nifty info about inits in the INIT writing FAQ to be
found at the url mentioned below in my sig.

____________________________________________________________________
Brian  Stern  {8-{)}                                 BeBox Hairy Guy                  Stern@metrowerks.com                          BrianS@pbcomputing.com
INIT Writing FAQ etc. at <ftp://ftp.pbcomputing.com//Guests/BrianS/>
Re: mac INIT loading order
#40
Author: Patrick Stadelmann
Date: Tue, 02 Apr 1996 13:33
14 lines
998 bytes
In article <schiltz-0104962111000001@reqd-010.ucdavis.edu>,
schiltz@cs.ucdavis.edu (Michael Schiltz) wrote:

> how can you control the order in which an INIT loads.  I want to have my
> INIT load ASAP.  any ideas?

The loading order is alphabetical, so you can try adding spaces in front
of the name. Another possibility is to change the type of your extension
from 'INIT' to 'scri' (these files load before the standard 'INIT' files)

Patrick

-- 
Patrick Stadelmann <Patrick.Stadelmann@etudiants.unine.ch>
Re: mac INIT loading order
#41
Author: C.K. Haun
Date: Wed, 03 Apr 1996 08:05
29 lines
1905 bytes
In article <Patrick.Stadelmann-0204961533120001@mac41imtt.unine.ch>,
Patrick.Stadelmann@etudiants.unine.ch (Patrick Stadelmann) wrote:

> In article <schiltz-0104962111000001@reqd-010.ucdavis.edu>,
> schiltz@cs.ucdavis.edu (Michael Schiltz) wrote:
> 
> > how can you control the order in which an INIT loads.  I want to have my
> > INIT load ASAP.  any ideas?
> 
> The loading order is alphabetical, so you can try adding spaces in front
> of the name. Another possibility is to change the type of your extension
> from 'INIT' to 'scri' (these files load before the standard 'INIT' files)

Yikes!  Be aware that if you were to do something as foolish as changing
your INIT type to 'scri' then you may not be able to do everything you
want to!
'scri' is not a documented type for 3rd parties to use *because* the
system is not fully functinal at the time that 'scri's load.  What exactly
may or may not exist at that time is dependent on the machine and system
version.  
If you make no toolbox  calls, or stick to things like resource manager
and file manager calls you should be OK, but all bets are off in general
at 'scri' time.
C.K. Haun
Ravenware Software
75300.1001@compuserve.com
                          The Mild Bunch
1996 Royal Star 1300      1991 Voyager 1200       1990 Virago 750
1993 Virago 535           1987 Reflex 225         <rent this space>
Re: mac INIT loading order
#43
Author: Jeremy Roussak
Date: Tue, 09 Apr 1996 17:02
11 lines
1029 bytes
In article <schiltz-0104962111000001@reqd-010.ucdavis.edu>
schiltz@cs.ucdavis.edu (Michael Schiltz) writes:

> how can you control the order in which an INIT loads.  I want to have my
> INIT load ASAP.  any ideas?

Put a null (or two) at the start of the name. INITs load in
alphabetical order. Extensions load first, then control panels, then
items in the System Folder itself (under system 7).

Jeremy
Re: mac INIT loading order
#44
Author: Joe Zobkiw
Date: Wed, 10 Apr 1996 01:33
30 lines
1740 bytes
In article <4ke582$rua@epsilon.qmw.ac.uk>, jeremyr@dcs.qmw.ac.uk (Jeremy
Roussak) wrote:

>In article <schiltz-0104962111000001@reqd-010.ucdavis.edu>
>schiltz@cs.ucdavis.edu (Michael Schiltz) writes:
>
>> how can you control the order in which an INIT loads.  I want to have my
>> INIT load ASAP.  any ideas?
>
>Put a null (or two) at the start of the name. INITs load in
>alphabetical order. Extensions load first, then control panels, then
>items in the System Folder itself (under system 7).

No! I believe there is a problem with AppleShare/Personal File Sharing
with files that contain/start with null characters. I had to change this
behaviour in a control panel I wrote once. Jim Luther (JumpLong@aol.com)
may have a comment on this since I believe he is the one who told me about
it.

Just use spaces. Printable characters are always safe...except periods of
course :)


Joe Zobkiw                                     TripleSoft Inc.
<mailto:zobkiw@triplesoft.com>   PO Box 30774 Raleigh NC 27622
<http://www.triplesoft.com/>          (919) 872-0916 voice/fax
                                 
--- Macintosh Software Development and Internet Publishing ---

Macintosh Programmers -> <http://www.triplesoft.com/fragment/>
Re: mac INIT loading order
#45
Author: Pete Gontier
Date: Wed, 10 Apr 1996 22:32
18 lines
1070 bytes
In article <brians-0204960110360001@slip-46-7.ots.utexas.edu>,
brians@pbcomputing.com (Brian Stern) wrote:

 > INITs present in script system extension files
 > (filetype 'scri') load before ...

...INIT resources in the System file itself, which load before...

 > ...INITs present in ... extension files...

---

  Pete Gontier, Integer Poet, Apple Macintosh Developer Technical Support
 
  work      mail  <mailto:gurgle@apple.com>
  personal  mail  <mailto:gurgle@ccnet.com>
  personal  web   <http://www.ccnet.com/~gurgle>
  work      web   <http://dev.info.apple.com/dts.html>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads