iPhone Dev - @synthesize keyword? -
In the examples of the book I'm learning iPhone development, the synthesis is mentioned for the keyword's attribute.
For control, I define property in .h file but do not synthesize .m file. I'm accessing the property of the text box Text Attribute In addition to this, I have linked to a text box outlets, and the name of the text box is different from the property name.
And the code runs fine; Is not it necessary to modify the keyword? And when?
From Apple's Docs> Mac Dev Center> Cocoa Core Components> Announced Property:
< Blockquote>In addition to declaring accessor methods, you can instruct the compiler to synthesize their implementation (or notify the compiler that your class will synthesize them at runtime).
Synthesis statement in the implementation block of @class, the details to be told to the compiler to make the implementation that match the specification given in property doc.
For reference:
You can tell the compiler to suppress the warning using the dynamic statement @ that it was assigned to the property The implementation of the methods can not be found.
Comments
Post a Comment