|Oct 29, 2007, 11:37 AM||#1|
Simple scenario, single document interface program. Not MDI.
IB 2, you create the class Contoller by subclassing NSObject in the Classes tab.
IB 3. There is no classes tab, so you can't create the controller class that way anymore. How are you supposed to do this now?
|Oct 29, 2007, 02:41 PM||#3|
Analog to the built in tutorial
I am a total n00b and ran into a similar issue to the OP. Apple issued the "Xcode Quick Tour Guide" with Xcode 3.0 but, seemingly, uses Interface builder 2.0. I'm trying to mindlessly follow the tutorial to create a hello world app but quickly hit a wall. It won't let me drag the object icon and change its type.
They say to:
1. Open MainMenu.nib in Interface Builder
2. Create the HelloView class:
a. In the MainMenu.nib window, click Classes.
b. in the tree view, select NSObject > NSResponder > NSView.
c. Choose Classes > Subclass NSView.
d. Change MyView to HelloView and press Return.
e. choose Classes > Create Files for HelloView.etc.
1. is their an updated tutorial somewhere that uses InterfaceBuilder 3 or can someone with the tutorial take a look and show me how to implement this program with the new InterfaceBuilder. I would really appreciate any help as I was really excited about trying out Xcode and I'd hate to stop now before I got started.
|Oct 29, 2007, 02:57 PM||#4|
1. In the Library window (Tools > Library), select Library > Cocoa, then scroll to Custom View (second to last row).
2. Drag the icon for Custom View into your nib, alongside File's Owner, First Responder, Application and MainMenu.
3. Select your view, go to the Identity Inspector (Tools > Identity Inspector), and change the Class from NSView to HelloView.
4. Choose File > Write Class Files...
|Oct 29, 2007, 03:44 PM||#5|
Building in Xcode issue
OK, that was very helpful I think the key there is where to add the new custom type (alongside the File's Owner, First Responder etc.). Now I added a Custom View to the window and changed it's type to HelloView. I added these files to my Xcode project (is there another way to do this than going into finder and pulling the HelloView.h and .m files over?) but when I opened the files the .m file it was empty and the project would not compile. Sorry if this is trivial.
|Oct 30, 2007, 05:44 AM||#6|
Got it working.
Completely different to previous versions of IB.
Next month I am going to be slapping down $500 to get ADC select then find every single piece of information there is on Leopard development.
It does make sense now, but it is confusing. I had to create the ConverterController class and Converter class in XCode, basically empty. Then drag both header files along to IB3 so when I added the two NSObjects, I could select the type they were. That is going to cause a lot of headaches with developers used to XCode 2.
|Oct 30, 2007, 08:58 AM||#7|
|Apr 19, 2008, 04:34 PM||#8|
Sorry for replying on such an old/dead thread, but I'm having real trouble with this.
I've been following this tutorial:
I've got to section 12, "Add Header to NIB"
I follow the suggestions you guys have made, about making a new Custom View and dragging across the .h file
I can't tell if anything has happened after dragging the file across, as nothing seems to change.
If I change the "Class" section of my new Custom View to the class AppController, it makes the error sound and goes back to being blank.
I would really appreciate any help, I've been writing mac apps for almost 2 hours now, I'm such a noob xD
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Help! 3rd party apps crash after downgrade from iOS 5 to 4.3.3||summero||iPhone Tips, Help and Troubleshooting||3||Jun 13, 2011 02:40 AM|
|iOS 4.3.3 for iPod touch 4th generation||caspersoong||iPod touch||5||May 9, 2011 12:23 PM|
|iOS 4.3.3 out soon [BGR]||dethmaShine||iPhone||4||May 2, 2011 01:34 PM|
|Interface Builder Sync Problem (Xcode/IB 3.2 & Snow Leopard 10.6.2)||Darkroom||iPhone/iPad Programming||8||Jun 1, 2010 04:57 PM|
|Updated books for Xcode/IB 3||grimreaper1377||Mac Programming||4||Nov 2, 2008 07:52 PM|
All times are GMT -5. The time now is 02:19 PM.