On Jan 25, 2011, at 4:48 AM, David Remacle wrote:

> Is it possible to use NSWindow without NIB file ?

It is definitely possible to create NSWindow objects in code, without using a 
NIB.  However, the rest of your email suggests you're trying to build an entire 
application without either NIBs or Xcode's smarts for putting together an 
application bundle.  That is possible, but not well supported and not 
recommended.


> 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.

An application bundle (.app) is not a file, it's a directory with a specific 
internal structure.  The Finder usually presents it to the user as a single 
item (like a file), but it's a directory.

GCC does not know anything about building application bundles.  If you want to 
create one without using Xcode, you'll have to do it yourself.  It's not 
terribly hard.  You can start with a simple application built by Xcode and 
hollow it out, and then fill in the relevant pieces yourself.  Or you can just 
create everything from scratch.

Even if you build your application bundle manually, it should usually contain 
at least a MainMenu NIB.  It is possible to create an application without one, 
but there's very little reason to do that.  Your MainMenu NIB can be minimal.  
If you really want to go this route, try doing a web search for "nibless".


> Is there a note in the documentation that explain ?

The documentation does not explain the specific steps to use, because it's not 
a supported technique.  It does document the internal directory structure of an 
application bundle, though.
http://developer.apple.com/library/ios/#documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html

Regards,
Ken

_______________________________________________

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

Reply via email to