• 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: GUI without IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GUI without IB


  • Subject: Re: GUI without IB
  • From: Shawn Erickson <email@hidden>
  • Date: Mon, 7 Jun 2004 07:23:00 -0700

On Jun 7, 2004, at 7:04 AM, email@hidden wrote:

Hi!
I'd like to write a simple application that uses a configuration file
to create the gui.
Let imagine that the application consists just in an arbitary number of
buttons that is in a .conf file.
I can't find anything on the developer.apple.com or the whole web. Is it
impossible ? Should I use always the Interface Builder? should I change
to Carbon ?
Any help will be appreciated.

Look at the documentation for NSView and the related view programming topics. You can create things programatically you just have to understand how the views and related items work.

In a nut shell you create a window get its content view and add sub-views to it of various types (plane views, controls, etc.) nested as needed. You will need to understand view corridinates, frames, bounds, and how to correctly set the automatic resize flags, etc. The topics linked off of the NSView API docs should get you going on this.

One thing to keep in mind the inheritance hierarchy in AppKit classes so when looking at the API documents always make sure you look at the super class (and up the chain) to insure you know what methods are truly supported.

-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: 
 >GUI without IB (From: email@hidden)

  • Prev by Date: Re: NSDictionary design bug (was: Re: Ugly bug in Foundation, beware!)
  • Next by Date: Re: GUI without IB
  • Previous by thread: GUI without IB
  • Next by thread: Re: GUI without IB
  • Index(es):
    • Date
    • Thread