• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
A newbie question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A newbie question


  • Subject: A newbie question
  • From: Carl Anderson <email@hidden>
  • Date: Sat, 28 Oct 2006 22:59:54 -0400

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: A newbie question
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: Re: enum syntax coloring
  • Next by Date: C++ PLEASE HELP
  • Previous by thread: Re: OutOfMemoryError in my Java app
  • Next by thread: Re: A newbie question
  • Index(es):
    • Date
    • Thread