PDA

View Full Version : Mac Game Programming


Nick
2004.07.08, 02:34 PM
Has anyone read this book? It's another book on my list that I got a hold of really cheap (don't worry, I have the CD for this one). My problem is this: I can't get past Chapter 4 when the code enters for creating a window. I'm not sure where to insert this code or the reference for the window. I keep looking at the sample code and program but my code looks the same, however my program doesn't create a window. Can anyone tell me what I may be doing wrong?

Josh
2004.07.08, 04:20 PM
If you posted your code, we'd have a much better chance at helping you. ;)

Nick
2004.07.08, 04:34 PM
I've found the root of my problem. I need to create a resource file and add a window resource to it. Then I just put three lines of code in and it should work. Unfortunately I do not know how to make resource files and add the window resource. If anyone can help, it'd be appreciated.

Steven
2004.07.08, 05:08 PM
If you're talking about a resource fork, then you need something like ResEdit. But resource forks are outdated now...

arekkusu
2004.07.08, 05:52 PM
You can still use a DLOG/DITL resource (saved in the data fork of an .rsrc resource file) but nibs are the "preferred" resource format in OS X now.

Carlos Camacho
2004.07.08, 09:09 PM
If you need some help with the book, look no further than the author, Mark.

http://www.idevgames.com/forum/member.php?u=162

szymczyk
2004.07.09, 12:20 AM
The original poster, Nick, emailed me with his question, and I answered it for him so nobody else needs to reply to this thread.

AnotherJake
2004.07.09, 01:14 AM
The original poster, Nick, emailed me with his question, and I answered it for him so nobody else needs to reply to this thread.
Is there a link where you prefer we might refer other similar future questions?

Also, do you have any plans for a new edition?

szymczyk
2004.07.09, 03:01 AM
Is there a link where you prefer we might refer other similar future questions?

I have a page devoted to the book at my website (www.blackapplesw.com). You can email me questions from there, or you can email me using my iDevGames screen name.

Also, do you have any plans for a new edition?

There's no chance of a second edition from my publisher. The book hasn't sold well enough. Right now I'm working on a book about the Xcode tools so it would be several months before I could work on another game development book.