Dynamic UI
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.