It sounds like you are using Cocoa. In that case what is MacWindow.h? You don't need to import anything like that in order to display a window. NSWindow is part of the cocoa framework and that is usually included automatically when you generate the source files. (#import <Cocoa/Cocoa.h>

Also, why are you playing with main.m. Usually you never have to do anything in the main function, in Cocoa. I can think of some examples where you'd have to but if you are new then I'd doubt that you'd need to. Here is everything that I usually have inside of main.m:
Code:
#import <AppKit/AppKit.h>
int main(int argc, const char *argv[]) {
return NSApplicationMain(argc, argv);
}
That's it. Everything else is handled by different classes that I write. Also, in Cocoa, quickdraw is gone so of course you won't find quickdraw.h. Read Apple's documentation on NSView if you want to draw 2D in a window or NSOpenGlView if you want to draw 3d stuff in a window. Apple's Cocoa documentation can be found at
http://developer.apple.com/techpubs/...coaTopics.html
From your post it looks like you read a Carbon tutorial and mistook it for Cocoa. If you are new to programming I'd suggest that you learn Cocoa because it's easier and will probably replace carbon in a few years.
For a sample program written in Objective C/Cocoa, take a look at
http://developer.apple.com/samplecod...leCocoaApp.htm and the corresponding technote at
http://developer.apple.com/technotes/tn/tn2005.html