clang 1.5 and property syntax?
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