Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Dynamic GUI

Dynamic GUI
Thread Tools
Fresh-Faced Recruit
Join Date: Oct 2002
Location: Southern California
Status: Offline
Reply With Quote
Jul 11, 2003, 12:03 PM
 
Hello,

I am interested in starting a project in objective-c on OSX. However, I was curious as to the ability to dynamicly add componets to the GUI from code.

I guess the whole NIB step gets me lost on this. Is it possible in code up a form and spec a table plus a bunch of text fields should exisit there from code?

Thanks for any info.
     
Mac Enthusiast
Join Date: Jul 2002
Status: Offline
Reply With Quote
Jul 11, 2003, 12:17 PM
 
Yes, you can instantiate any sort of view you want, configure it, and add in to another view (like a window's contentview) programatically.
For small one shot projects this is fine.

On the other hand if you want to make an GUI which is easily localizable (translatable and resizable) then you are better off using nibs. You can layout your dynamic portions in separate views in the nib and swap them programatically at runtime.
Go peek through nibs in Apple's apps for ideas.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 02:09 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2