Mailing Lists: Apple Mailing Lists

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

Re: A newbie question




On Oct 28, 2006, at 7:59 PM, Carl Anderson wrote:

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?

It isn't.  Why do you ask?

Is your question about the use of the development environment, or creating applications in C for the Carbon framework?

Chris
 _______________________________________________
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

References: 
 >A newbie question (From: Carl Anderson <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.