• 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: Interface Builder question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Interface Builder question (From: Terry Simons <email@hidden>)

  • Prev by Date: Re: NSView subclass initialFirstResponder questions
  • Next by Date: customized the about box
  • Previous by thread: Re: Interface Builder question
  • Next by thread: Re: Interface Builder question
  • Index(es):
    • Date
    • Thread