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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

Thread: Dot Syntax
View Single Post
Old 04-11-2009, 10:02 PM   #3 (permalink)
jacobhb
New Member
 
Join Date: Apr 2009
Posts: 5
Default

Sorry, I left out the @property/@synthesize from the code I linked. I have a
@property (retain) Board *gameBoard;
and
@synthesize gameBoard;

Yeah the only issue is xcode not auto competing. Everything compiles and runs fine. I just find it weird that xcode would not auto complete if I add self. onto one of my member variables.



Quote:
Originally Posted by FlyingDiver View Post
Is it just the editor autocompletion that's bothering you, or is the code actually working differently?

The dot syntax you're using is normally used to invoke the compiler generated setter/getter methods that are created when you use @property/@synthesize. Since you don't have those, the editor is probably somewhat confused. Looks like the compiler doesn't care (unless you're getting errors you haven't mentioned).

joe
jacobhb is offline   Reply With Quote
 

» Advertisements
» Online Users: 732
13 members and 719 guests
ADY, at0m87, Dalia, Don, fgreg2692log, foolshityella, jakerocheleau, mystic.purple, PetarPM, smarkmee, suresk, Touchmint, yufengts
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,632
Threads: 89,149
Posts: 380,345
Top Poster: BrianSlick (7,110)
Welcome to our newest member, foolshityella
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:50 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.