Re: GUI contruction from code
Re: GUI contruction from code
- Subject: Re: GUI contruction from code
- From: "Erik M. Buck" <email@hidden>
- Date: Sun, 17 Feb 2002 16:47:31 -0600
nib files do not contain any magic. Every bit of information that you need
to programmatically create GUIs is in the available documentation.
You will need an instance of NSApplication. See the documentation for how to
write a main() function that creates a top level autorelease pool and an
NSApplication instance.
You will want at least one NSWindow instance.
You will want to add menu items to the main menu (available via -mainMenu in
NSApplication)
You add views to your window's content view using NSView's -addSubview: and
NSWindow's -contentView methods.
Almost everything you will want is a view.
----- Original Message -----
From: "Bernard van Gastel" <email@hidden>
To: <email@hidden>
Sent: Sunday, February 17, 2002 4:02 PM
Subject: GUI contruction from code
>
Hi
>
>
I am working on a project where some data files are read, and a GUI is
>
constructed accordingly. As you guessed : the data files aren't NIB
>
files, so wanted to write an interpreter for the data files and
>
construct the GUI with the intepreter. I can't find any doc on this
>
anywhere on how this can be done using Cocoa. So does anybody know where
>
I can find such documentation or does anybody know how I can do this?
>
>
Bernard
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.