Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
NotificationMon.ƒ/Source/InitMac.c
#include <GestaltEQU.h> |
InitToolBox(short numberOfMasters) |
{ |
int index; |
long sysVersion; |
InitGraf(&thePort); |
InitFonts(); |
InitWindows(); |
InitMenus(); |
InitCursor(); |
TEInit(); |
FlushEvents(everyEvent, 0); |
InitDialogs(nil); |
while(numberOfMasters--) |
MoreMasters(); |
MaxApplZone(); |
Gestalt(gestaltSystemVersion,&sysVersion); |
if(sysVersion < 0x0700) { |
Alert(128,nil); |
ExitToShell(); |
} |
} |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14