First of all, I already able to restore PPC support in Xcode 4 Snow Leopard using this article How do I add PPC/PPC64 support back to Xcode 4.2 under Lion?. But after sometimes, I realize that to make my current application (10.6, Snow Leopard) compatible with Tiger, I must modify some code. Especially about the synthesize & implement keyword. How do you deal with it? I enter Mac OS X programming by using X code 4, not using the previous version of it
And because @property is not supported in 10.4, is the IB Designer in Xcode 4 can still work if I am trying to make it compatible with Tiger?
Or, is it really that I must code using Xcode3 this way?
* O o…
Thanks,
Eko
In objective-C the
@propertyand@synthesizeare neat shortcuts to implementing a getter/setter for a specific variableUnfortunately you will need to stop using these.
You will need something like this
Example.h
Example.m
And you will need to replace the code where you were accessing and setting the variables in question.
You don’t need to do the release,retain methods for int’s, float’s … (any primitive data that is not a pointer to an object)
For clarification