Re: dot notation doesn’t work as expected for some library classes
Re: dot notation doesn’t work as expected for some library classes
- Subject: Re: dot notation doesn’t work as expected for some library classes
- From: Marc Liyanage <email@hidden>
- Date: Mon, 25 May 2009 09:05:43 +0200
Thanks Gwynne and Mike, that clears it up. I didn’t think about the
missing -string method. When I remove the getter from my custom class
it behaves the same and that was what I wanted to see.
On 25.05.2009, at 00:21, Michael Ash wrote:
And neither should you. Your use of the dot syntax here is incorrect,
because 'string' is not a property of NSMutableString as the ObjC
language defines (however vaguely) it.
Absolutely, I only use the dot notation for accessors. I never used
something like that in real code.
I was only using it to figure out how the compiler does the
transformation and I was looking specifically for a class that has a
(void)setXXX: method that is not really a property accessor.
Thanks again
_________________________________________________________________
Marc Liyanage http://www.entropy.ch
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden