On Tue, Jan 25, 2011 at 5:48 AM, David Remacle <lis...@clampin.com> wrote: > > Is it possible to use NSWindow without NIB file ?
Yes. Interface Builder uses documented, public methods to create interface elements before serializing them to a NIB file. You can use the same methods in your app. Honestly though, I wouldn't; most of the time, creating and loading a NIB is far, far simpler. > I can compile terminal application without using Xcode (by using gcc > -framework Foundation files -o progname) but how do that with a gui > application with Nib file ? > > It's just for understand how xcode compile the application with nib file > and obtain an .app file. I assume you're accustomed to Windows, where code and resources are both compiled into a single .exe file. In both Mac OS X and iOS, that's not the case. App bundles are actually directories, and .nib files are simply copied into the Contents/Resources/ subdirectory within the bundle. For an in-depth look at what goes into .app and other bundle types, have a look at: <http://developer.apple.com/library/mac/#documentation/CoreFoundation/Conceptual/CFBundles/Introduction/Introduction.html> If you *really* want to, you can use gcc & a make file to create a .app bundle. Doing so might be an interesting learning exercise, but it's not something I'd suggest doing on an everyday basis - it's really the hard way of doing things. sherm-- -- Cocoa programming in Perl: http://camelbones.sourceforge.net _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com