Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A newbie question



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



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.