• 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
Feh. Obj-C syntax question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Feh. Obj-C syntax question


  • Subject: Feh. Obj-C syntax question
  • From: Rick Mann <email@hidden>
  • Date: Wed, 7 Nov 2007 13:53:51 -0800

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


  • Follow-Ups:
    • Re: Feh. Obj-C syntax question
      • From: Chris Hanson <email@hidden>
    • Re: Feh. Obj-C syntax question
      • From: Thomas Davie <email@hidden>
    • Re: Feh. Obj-C syntax question
      • From: Hank Heijink <email@hidden>
  • Prev by Date: Re: Project indexer ignoring SYMROOT in xcconfig file
  • Next by Date: Re: Feh. Obj-C syntax question
  • Previous by thread: Re: troubleshooting unrecognised selector messages
  • Next by thread: Re: Feh. Obj-C syntax question
  • Index(es):
    • Date
    • Thread