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 Tutorials > Tutorial Discussion

Reply
 
LinkBack Thread Tools Display Modes
Old 05-12-2009, 08:47 PM   #1 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 30
brimes is on a distinguished road
Default Help with compiler error on tutorial - please

This is from Your First iPhone Application

I'm on page 24 and would swear that my code matches the book ...

Please see attached code.

Appreciate any help.

Thanks
Attached Images
File Type: jpg compile.jpg (77.1 KB, 4 views)
brimes is offline   Reply With Quote
Old 05-13-2009, 02:56 AM   #2 (permalink)
Registered Member
iPhone Dev SDK Supporter
 
smasher's Avatar
 
Join Date: Jul 2008
Location: San Mateo, CA (San Fran)
Posts: 3,858
smasher will become famous soon enough
Default

In the two lines that give errors, you have MyViewController where you should have myViewController (lower case m).

MyViewController is a class you've created (classes usually start with ipper case letters, by tradition.)

myViewController is an "instance" of that class - it's the variable/property, and it's what you should be using in @synthesize and [myViewController view]
__________________

Free Games!
smasher is offline   Reply With Quote
Old 05-13-2009, 07:05 PM   #3 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 30
brimes is on a distinguished road
Default

Thank you, Smasher!

I think I made the first case error in the .h file. Then as I typed in the .m file, intellisense (or whatever its called) filled in code as I typed.

I'm going to have to be careful. VB/VBA that is my forte is not case sensitive. A learning experience for sure.

Brooks

Quote:
Originally Posted by smasher View Post
In the two lines that give errors, you have MyViewController where you should have myViewController (lower case m).

MyViewController is a class you've created (classes usually start with ipper case letters, by tradition.)

myViewController is an "instance" of that class - it's the variable/property, and it's what you should be using in @synthesize and [myViewController view]
brimes 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
» Stats
Members: 175,696
Threads: 94,138
Posts: 402,957
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jasper_muc
Powered by vBadvanced CMPS v3.1.0

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