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.
Source/SlimMain.c
/* |
9-30-92 ¥ Brigham Stevens |
-------------------------- |
main program for Slim. |
Slaps up a window and some menus. |
Change Drawing.c to effect window contents. |
*/ |
#include "EventLoop.h" |
#include "MenuDispatch.h" |
WindowPtr MainView; |
main(void) |
{ |
InitToolBox(4); |
UnloadSeg(InitToolBox); |
BuildMenuBars(); |
MainView = GetNewWindow(128,nil,(void*)-1L); |
SetPort(MainView); |
/* Run until Quit is selected */ |
while(!Done) { |
MainEvent(); |
if(!FrontWindow()) |
MainView = nil; |
} |
} |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14