• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using NSWindow without NIB (XIB) file ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using NSWindow without NIB (XIB) file ?


  • Subject: Re: Using NSWindow without NIB (XIB) file ?
  • From: Sherm Pendley <email@hidden>
  • Date: Tue, 25 Jan 2011 23:01:47 -0500

On Tue, Jan 25, 2011 at 5:48 AM, David Remacle <email@hidden> 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 (email@hidden)

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:

This email sent to email@hidden

References: 
 >Using NSWindow without NIB (XIB) file ? (From: email@hidden (David Remacle))

  • Prev by Date: Re: WebKit WebArchive Create but no Load?
  • Next by Date: Re: Using NSWindow without NIB (XIB) file ?
  • Previous by thread: Using NSWindow without NIB (XIB) file ?
  • Next by thread: Re: Using NSWindow without NIB (XIB) file ?
  • Index(es):
    • Date
    • Thread