what is a nib file?? mac os x 10.3.9
hello all,
I was wondering why one needs a nib file to write opengl for macs. In the lessons at NeHe there isn't really any reference to them but at ZeroByZero (http://zerobyzero.ca/~ktatters/) heavy empathsis is on nib files and creating them. If someone could please explain this to an utterly confused newbie it would be greatly appreciated.
Jackie
I develop on a Mac, but unfortunately I probably don't have any really good answers for you. I looked at the site you referenced, which is for Cocoa and Objective C, whereas I'm currently using Carbon and C++. I don't know exactly how commercial games are ported to OS X, but I'm guessing Objective C is not involved (could be wrong though).
So you certainly can write Mac apps without using Cocoa. As for .nib files, you probably already know that they contain information about user interface objects. Can't tell you much more than that though, as I haven't had occasion to use them myself.
So you certainly can write Mac apps without using Cocoa. As for .nib files, you probably already know that they contain information about user interface objects. Can't tell you much more than that though, as I haven't had occasion to use them myself.
Quote:Original post by Jackie Silva
hello all,
I was wondering why one needs a nib file to write opengl for macs. In the lessons at NeHe there isn't really any reference to them but at ZeroByZero (http://zerobyzero.ca/~ktatters/) heavy empathsis is on nib files and creating them. If someone could please explain this to an utterly confused newbie it would be greatly appreciated.
Jackie
NIB files are resource files. It's where the buttons, window layouts, menu structures and all that OS X-friendly gubbins lives. Even if your application uses OpenGL, OS X does require _some_ entries in the NIB file for the application just so that it knows what kind of window(s) to create, what the menubar will hold and so on. Most IDEs, including XCode, will generate a 'boilerplate' NIB file for you behind the scenes, even if you don't intend to implement a standard OS X application UI.
Windows has an equivalent system, although the data itself is more commonly stored in the executeable these days. (Even DLLs can hold resource data, such as icons, bitmaps, etc.)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement