• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Feh. Obj-C syntax question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Feh. Obj-C syntax question


  • Subject: Re: Feh. Obj-C syntax question
  • From: Hank Heijink <email@hidden>
  • Date: Wed, 7 Nov 2007 17:05:28 -0500

Did you enable objective-C-exceptions? I believe (1) that it's needed and (2) that it's not on by default. Check in the project info (Project > Edit Project Settings). It's in the gcc 4.0 - Language section.

On Nov 7, 2007, at 4:53 PM, Rick Mann wrote:

So, I'm dipping my toes into the Cocoa, and so far I'm not liking the experience. I'm trying to follow the app tutorial, and in so doing use the @property feature of Obj-C 2.0.

However, as soon as I add "@property(readwrite) " in front of a member variable declaration, i get a cryptic error message:

error: syntax error before 'AT_NAME' token

And it's located on the #import line of the implementation file.

Any clues? Google didn't turn up much. If I don't use @property, the code compiles without complaint.

--
Rick

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


Hank Heijink email@hidden



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Feh. Obj-C syntax question
      • From: Rick Mann <email@hidden>
References: 
 >Feh. Obj-C syntax question (From: Rick Mann <email@hidden>)

  • Prev by Date: Feh. Obj-C syntax question
  • Next by Date: Re: Feh. Obj-C syntax question
  • Previous by thread: Feh. Obj-C syntax question
  • Next by thread: Re: Feh. Obj-C syntax question
  • Index(es):
    • Date
    • Thread