| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
| In Project Builder, to start a new program, the following lines needed to be added to the main.c file #include "(program name).h" After OSStatus err; EventTypeSpec eventSpec = { kEventClassWindow, kEventWindowDrawContent }; and after DisposeNibReference(nibRef);) InstallWindowEventHandler( window, NewEventHandlerUPP((Program Name)), 1, &eventSpec, (void *) window, NULL ); From here I would write a new file called (Program Name).h which would have this line OSStatus (Program Name)( EventHandlerCallRef, EventRef, void* ); And from there I would write my code starting with a file named (Program Name).c How is XCode different? Thanks Carl |
_______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/xcode-users/email@hidden This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.