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.
MyComponent.h
/* |
File: MyComponent.h |
Contains: simple component sample. |
Written by: John Wang |
Copyright: © 1994 by Apple Computer, Inc., all rights reserved. |
Change History (most recent first): |
<1> 03/22/94 JW Created. |
To Do: |
*/ |
#ifdef THINK_C |
#define applec |
#endif |
#define kDEBUGME 0 |
#define kMyComponentSpec 1L |
#define kMyComponentVersion 0L |
typedef struct { |
// Component stuff |
ComponentInstance delegate; // keep track who we are delegating it to. |
ComponentInstance self; // self instance needed by MediaInitialize |
// Characteristics |
WindowPtr backWindow; |
CGrafPtr moviePort; |
short windowKind; |
Boolean fadeStatus; |
Handle handleBarStorage; |
Boolean mcVisible; |
Boolean mcAttached; |
Boolean firstTime; |
} PrivateGlobals; |
/* ------------------------------------------------------------------------- */ |
pascal ComponentResult MyOpen(ComponentInstance self); |
pascal ComponentResult MyClose(Handle storage,ComponentInstance self); |
pascal ComponentResult MyCanDo(short selector); |
pascal ComponentResult MyVersion(void); |
pascal ComponentResult MyRegister(void ); |
pascal ComponentResult MyTarget(Handle storage, ComponentInstance self); |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-10-27