Discussion Forums  >  Uncategorized

Replies: 9    Views: 381

camposo
Aspiring developer
Profile
Posts: 17
Reg: Jun 11, 2011
Boynton Beach, ...
170
07/01/11 09:41 AM (14 years ago)

Why isn't a xib file included in our xcode project? (Newbie question)

Like the title says, is there a specific reason why the xib file are not included?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
07/01/11 10:03 AM (14 years ago)
Hi in FL. Great question! Zero xib files are used the source-code. All the views, screens, and options are created dynamically at run-time. Think of it this way, because there are lots of options in your control panel and tons and tons of ways to configure screens, menus and features it would'nt be possible to pre-create xib files in interface builder for all the different possiblities. Hope this helps.
 
camposo
Aspiring developer
Profile
Posts: 17
Reg: Jun 11, 2011
Boynton Beach, ...
170
like
07/01/11 10:27 AM (14 years ago)
I kinda had an idea that was the whole reason behind it. It would be a great help if both worked together, turning the interface builder into a wysiwyg tool for the already created app. Thanks for the reply
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
07/01/11 12:09 PM (14 years ago)
We totally agree and have considered doing exactly that. We're in the process if finishing up some 'plug in' support that should allow you to create new screens and views in Interface Builder then easily include them in your project. This idea may or may not work like we hope but we're doing what we can to support it. Makes perfect sense.
 
Going-Viral
Apple Fan
Profile
Posts: 120
Reg: Jun 13, 2011
Doncaster
1,200
like
07/02/11 01:27 AM (14 years ago)
This sounds an excellent idea :-)
 
Going-Viral
Apple Fan
Profile
Posts: 120
Reg: Jun 13, 2011
Doncaster
1,200
like
07/02/11 01:47 PM (14 years ago)
You mentioned that the screens are created dynamically. Does that mean that the screens are created on compilation prior to download and inclusion in Xcode, if so is there anyway we can edit directly in Xcode to refine further. Or do you mean that the screens are created dynamically on Xcode compiled apps? Apologies for any dumb questions here :-)
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
07/03/11 01:29 AM (14 years ago)
We do not compile source-code, you do. The project you download includes the source-code so you can edit anything you want. The 'screens are created dynamically' remark was meant to explain that the screens layout, design, and features are not built in advance using Interface Builder. They are assembled using Objective C code at run-time, while the app is running.
 
primedev
Aspiring developer
Profile
Posts: 24
Reg: Jul 16, 2011
Ft. Lauderdale
240
like
07/16/11 01:31 PM (14 years ago)
can we create screens with IB and connect them to buttons and actions from your code?
 
David @ buzztouch
buzztouch Evangelist
Profile
Posts: 6866
Reg: Jan 01, 2010
Monterey, CA
78,840
like
07/16/11 01:41 PM (14 years ago)
@primedev: You could but it gets kind of crazy. I've heard of a few folks doing this but don't have any details. If you're using v1.5 have a look at the docs to see how to use a Custom Plug-in class file to load a screen you create. Again, not easy but doable. Because you have the source code, you can do anything really, it's just a matter of how difficult it is and how much experiences / patience you have ;-)
 
primedev
Aspiring developer
Profile
Posts: 24
Reg: Jul 16, 2011
Ft. Lauderdale
240
like
07/16/11 01:55 PM (14 years ago)
Awesome, Thanks! 1.5 is wonderful!
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.