Re: Interface Builder question
Re: Interface Builder question
- Subject: Re: Interface Builder question
- From: Shawn Erickson <email@hidden>
- Date: Mon, 29 Jul 2002 20:56:45 -0700
On Monday, July 29, 2002, at 08:03 PM, Terry Simons wrote:
Is IB required to build an application with Cocoa?
No, but it is a lot easier to use it.
Do I *have* to set my windows up in IB?
Nope.
Can I programmatically define a window, and manually add buttons to it?
Yes.
How to do it... well I haven't tried much myself but the online docs
for AppKit should give ideas.
Controls (for example NSButton) are views so add them to a containing
view as needed and add that to the window. You will need to deal with
target/action connections for the buttons to do things (defined in
NSControl).
NSWindow setContentView
NSView addSubview: & addSubview:positioned:relativeTo:
etc.
-Shawn
_______________________________________________
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.