Understanding iOS Compiler Errors - Property access result unused – getters should not be used for side effects
0
0
1
46
266
Oak Leaf Enterprises, Inc
2
1
311
14.0
Normal
0
false
false
false
EN-US
JA
X-NONE
Property access result unused – getters should not be used for side effects
If you try to call a method that takes no arguments using
dot notation (rather than passing a message), you will get this warning. For
example:
self.clear;
To fix this warning, change the code to pass a message
instead:
[self clear];
For explanations of other compiler errors and warnings, check out our new book site: http://www.iOSAppsForEveryone.com
Kevin McNeish
Eight-time .NET MVP Recipient
Apple iOS Author, Trainer
http://www.iOSAppsForEveryone.com