i've seen code where this is written:

-=-=-=-
@property (nonatomic, retain) UIImageView *image;
...
@synthisize image;
...
[image release];    //in dealloc method
-=-=-=-

aren't setters/getters methods used only for objects that need to have
their value changed?  assuming the UIImageView in the above code
always maintains the same image throughout the program, are setter and
getters still required?  perhaps the above code was written so the
user could swap images within the same UIImageView, or animate the
view?  humm... would you even need to have setter and getters for
animation?
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to