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.
Mac Framework/MacMain.c
/* |
File: MovieShell.c |
Contains: Simple Mac shell for testing QuickTime. |
Written by: DTS |
Copyright: © 1994-1995 by Apple Computer, Inc., all rights reserved. |
Change History (most recent first): |
<1> 12/20/94 khs first file |
*/ |
// INCLUDES |
#include <stdio.h> |
#include <sioux.h> |
#include "DTSQTUtilities.h" |
#include "MacFramework.h" |
// ______________________________________________________________________ |
// MAIN |
void main(void) |
{ |
OSErr anErr; |
// This is for controlling the sioux window under Metrowerks (5.0 forward) |
#ifdef USESIOUX |
SIOUXSettings.initializeTB = false; |
SIOUXSettings.setupmenus = false; |
SIOUXSettings.standalone = false; |
SIOUXSettings.asktosaveonclose = true; |
#endif // USESIOUX |
InitStack(30000); |
InitMacEnvironment(10L); // 10 * MoreMasters |
InitMenubar(); |
if( !QTUIsQuickTimeInstalled() ) |
ExitToShell(); |
#if powerc |
if( !QTUIsQuickTimeCFMInstalled() ) |
ExitToShell(); // I could disable features as well. |
#endif |
anErr = EnterMovies(); DebugAssert(anErr == noErr); |
if(anErr != noErr) |
ExitToShell(); |
MainEventLoop(); |
} |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14