Compile Problems: 'syntax error before NSRect'?

Member
Posts: 24
Joined: 2009.03
Post: #1
Hi,

I have an app that compiles and runs fine on the simulator. I'm just about to try testing on an actual device but when I compile using one of the 'device' targets in XCode I am getting tons of errors.

Most of these errors appear to stem from the fact that the core classes can't be found, so I'm getting loads of messages like...

error: syntax error before 'NSRect'
error: syntax error before 'NSPoint'

...where there is no syntax error.

Can anyone help me here? I've tried an explicit import for the foundation classes (even though this should be being added in by default anyway) but no joy.

Thanks in advance...
Quote this message in a reply
Moderator
Posts: 3,573
Joined: 2003.06
Post: #2
Yeah, because there is no NSRect or NSPoint available on iPhone. You need to use CGRect and CGPoint instead.
Quote this message in a reply
Member
Posts: 24
Joined: 2009.03
Post: #3
Thanks - I figured that out eventually through endless googling ; )

For anyone who's interested a good article here
Quote this message in a reply
Post Reply