• 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: "email@hidden" <email@hidden>
  • Date: Tue, 25 Jan 2011 20:56:49 -0800

This should be a FAQ. The topic of Cocoa without Interface Builder comes up on the list surprisingly frequently, usually from someone who, like you, is "trying to understand how Cocoa really works".

You may be thinking that graphical UI builders (like Interface Builder) are somehow a crutch and a barrier to understanding. That might be the case for other environments, but Interface Builder is a integral part of Cocoa Application development, not a shortcut for newbies. Which is to say, if you think bypassing Interface Builder is a purer path to app development, you have already missed the point.

But to answer your question, yes, it is possible to create an NSWindow (or any other UI element) programmatically.

_murat

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

> Hello
>
> Is it possible to use NSWindow without NIB file ?
>
> 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.
>
> Is there a note in the documentation that explain ?
_______________________________________________

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: Using NSWindow without NIB (XIB) file ?
  • Next by Date: Image preview with UIWebView
  • Previous by thread: Re: Using NSWindow without NIB (XIB) file ?
  • Next by thread: Re: Using NSWindow without NIB (XIB) file ?
  • Index(es):
    • Date
    • Thread