• 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
Dynamic UI
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dynamic UI


  • Subject: Dynamic UI
  • From: George Bridgeman <email@hidden>
  • Date: Sun, 30 Nov 2003 17:03:33 +0000

Hi people,

I'm new to Cocoa, so forgive me if this is an obvious question, but I can't seem to find an answer in any of my Cocoa books.

How can I adjust the number/position/size/type of controls on the UI at runtime? For example, if the number of controls that should appear on a window are determined by certain rows in a database, how can I create the controls on the fly? Let's say I wanted to create an NSTextField at position (X,Y) with a size of AxB, can I do this at runtime?

I've seen this done in Windows MFC applications, and the scenario above would be done by creating a new CEdit, storing a pointer to it, and adjusting the properties before it is displayed on the screen. This can be done for all types of control with no real problem. Is there a similar way to do this with Cocoa? As the UI is defined by the NIB file, I'm guessing not.

Thanks in advance,

George.
_______________________________________________
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.

  • Follow-Ups:
    • Re: Dynamic UI
      • From: "M. Uli Kusterer" <email@hidden>
    • Re: Dynamic UI
      • From: Laurent Daudelin <email@hidden>
    • Re: Dynamic UI
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: rounding a float
  • Next by Date: Re: Dynamic UI
  • Previous by thread: Hypothetical NSTreeController and NSOutlineView with bindings
  • Next by thread: Re: Dynamic UI
  • Index(es):
    • Date
    • Thread