• 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
clang 1.5 and property syntax?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

clang 1.5 and property syntax?


  • Subject: clang 1.5 and property syntax?
  • From: Rick Mann <email@hidden>
  • Date: Wed, 1 Sep 2010 17:23:28 -0700

Hi. I've noticed that clang 1.5 seems to trip on some property syntax use when no @property was declared. According to the language reference:

"Objective-C provides a dot (.) operator that offers a compact and convenient syntax you can use as an alternative to square bracket notation ([]s) to invoke accessor methods. It is particularly useful when you want to access or modify a property that is a property of another object (that is a property of another object, and so on)."

For example, the following two lines are semantically equivalent, and work with gcc (and clang 2.0, I think):

	[mNoSelectionView setHidden: true];
	mNoSelectionView.hidden = true;

But clang 1.5 reports: error: property 'hidden' not found on object of type 'NSView *'

Is this a bug in clang?

TIA,
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: clang 1.5 and property syntax?
      • From: Bill Bumgarner <email@hidden>
  • Prev by Date: Re: Using Xcode with OSX Server?
  • Next by Date: Re: Creating mixed target iOS and Mac project
  • Previous by thread: Re: Using Xcode with OSX Server?
  • Next by thread: Re: clang 1.5 and property syntax?
  • Index(es):
    • Date
    • Thread