Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Tools & Utilities

Reply
 
LinkBack Thread Tools Display Modes
Old 01-30-2012, 08:28 PM   #1 (permalink)
Learner
 
Hyde's Avatar
 
Join Date: Jan 2012
Posts: 28
Hyde is on a distinguished road
Default Find code for a view controller

Hi,

I'm reading a book that shows how to design an application by Erica Sadun. I'm following what the author says but it seems that at some point I can't reproduce a step correctly.

The author drag&dropped a view controller and assigned the custom class "Hello_WorldViewController" to it. Later on she says to use the assistant editor, and that the code for this custom class will appear when the view controller is clicked in the Interface Builder. When I do this, I get "No Assistant Results".

She said that Xcode built it automatically but I had to manually create the class, which may work but I guess there's a cleaner way to do this. I searched around but couldn't find anything...

Any help? Thanks a lot! I've been confused with this since the beginning...

Last edited by Hyde; 01-31-2012 at 06:47 AM.
Hyde is offline   Reply With Quote
Old 01-31-2012, 07:51 PM   #2 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,005
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by Hyde View Post
Hi,

I'm reading a book that shows how to design an application by Erica Sadun. I'm following what the author says but it seems that at some point I can't reproduce a step correctly.

The author drag&dropped a view controller and assigned the custom class "Hello_WorldViewController" to it. Later on she says to use the assistant editor, and that the code for this custom class will appear when the view controller is clicked in the Interface Builder. When I do this, I get "No Assistant Results".

She said that Xcode built it automatically but I had to manually create the class, which may work but I guess there's a cleaner way to do this. I searched around but couldn't find anything...

Any help? Thanks a lot! I've been confused with this since the beginning...
Which book are you reading? She has a new version of her iOS cookbook series, "iOS 5 Developer's Cookbook." It's updated to cover Xcode 4.2, and is really, really good.

I'm guessing that you're using an older edition that is based on Xcode 3.x. Apple turned Xcode completely on it's head with Xcode 4, and anything written for Xcode 3 will not be very useful.
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C is offline   Reply With Quote
Old 02-03-2012, 11:51 PM   #3 (permalink)
Learner
 
Hyde's Avatar
 
Join Date: Jan 2012
Posts: 28
Hyde is on a distinguished road
Default

Quote:
Originally Posted by Duncan C View Post
Which book are you reading? She has a new version of her iOS cookbook series, "iOS 5 Developer's Cookbook." It's updated to cover Xcode 4.2, and is really, really good.

I'm guessing that you're using an older edition that is based on Xcode 3.x. Apple turned Xcode completely on it's head with Xcode 4, and anything written for Xcode 3 will not be very useful.
First of all, thank you very much for your reply. I'm sorry for the delay in my reply, I thought nobody had wanted to help me.

Actually, I have the latest version. She says to add the custom class in the right bar and later on to access the code using the Assistant. I read it a few times to make sure I hadn't missed a step.

Could you explain me briefly how to create the code automatically for a custom class?
Hyde is offline   Reply With Quote
Old 02-04-2012, 12:30 PM   #4 (permalink)
Cocoa Junkie
 
Duncan C's Avatar
 
Join Date: Dec 2008
Location: Northern Virginia
Posts: 6,005
Duncan C has a spectacular aura about
Default

Quote:
Originally Posted by Hyde View Post
First of all, thank you very much for your reply. I'm sorry for the delay in my reply, I thought nobody had wanted to help me.

Actually, I have the latest version. She says to add the custom class in the right bar and later on to access the code using the Assistant. I read it a few times to make sure I hadn't missed a step.

Could you explain me briefly how to create the code automatically for a custom class?
I'm not quite clear on what you're trying to do.

What version of Erica's book are you using (exact title) and what version of Xcode are you using?

I have the iOS 5 developer's cookbook, and the first edition of Erica's book? If you have the iOS 5 cookbook, give me specific page numbers and recipes, and maybe I can help. If not, post whole passages of the instructions, and what you can't figure out.
__________________
Regards,

Duncan C
WareTo

Check out our apps in the Apple App store


Check out this password generator app that shows various techniques including using a data container singleton object to share data between objects in your project.

See this tutorial on using UIView animations and layer animations:

See this thread on generating random, non-repeating text

Check out a very cool Macintosh Kaleidoscopes app called ScopeWorks that we released to the Mac App store.
Duncan C is offline   Reply With Quote
Old 02-05-2012, 04:12 PM   #5 (permalink)
Learner
 
Hyde's Avatar
 
Join Date: Jan 2012
Posts: 28
Hyde is on a distinguished road
Default

Quote:
Originally Posted by Duncan C View Post
I'm not quite clear on what you're trying to do.

What version of Erica's book are you using (exact title) and what version of Xcode are you using?

I have the iOS 5 developer's cookbook, and the first edition of Erica's book? If you have the iOS 5 cookbook, give me specific page numbers and recipes, and maybe I can help. If not, post whole passages of the instructions, and what you can't figure out.
I have the "The iOS 5 Developer's Cookbook: Core Concepts and Essential Recipes for iOS Programmers (3rd Edition)" and I use Xcode 4.2.1.

I decided to start from scratch and I still have a problem right at the beginning. On page 210, in the last chapter, she updates the top row's view controllers' class to Hello_WordViewController. Then on the first paragraph of page 211 she implies that the view view controller already had the custom class Hello_WorldViewController. It's not true in my case, the default class for the initial view controller is ViewController.

Thanks a lot for your help.
Hyde is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting 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



» Advertisements
» Online Users: 463
14 members and 449 guests
7twenty7, David-T, Dj_kades, Elad, HemiMG, iAppDeveloper, jeroenkeij, LunarMoon, Mijator, Pauluz85, QuantumDoja, sacha1996, smithdale87, usernametaken
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,679
Threads: 94,129
Posts: 402,928
Top Poster: BrianSlick (7,990)
Welcome to our newest member, xzoonxoom
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:19 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0