Re: self.myTextField.stringValue = @"" fails
Re: self.myTextField.stringValue = @"" fails
- Subject: Re: self.myTextField.stringValue = @"" fails
- From: Roland King <email@hidden>
- Date: Wed, 09 May 2012 12:06:32 +0800
On May 9, 2012, at 2:41 AM, Leandro Hoffman wrote:
> Rather than use: self.myTextField.stringValue = @"";
>
> Couldn't you use: self.myTextField.setStringValue = @""; ?
>
> --
> Leandro Hoffman
No. That's meaningless.
self.myTextField.stringValue = @"";
is just syntactic sugar for
[ self.myTextField setStringValue:@"" ];
is that what you meant? Doesn't matter which you write, you'll get the same actual call either way, it will call setStringValue:
but xxx.setStringValue=@"" means nothing and wouldn't compile.
_______________________________________________
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