Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.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, 09: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
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,336
Threads: 39,130
Posts: 171,565
Top Poster: smasher (2,577)
Welcome to our newest member, nub98
Powered by vBadvanced CMPS v3.1.0

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