I have one class called dog and another class called cat.
Dog has an variable, “name” declared with @property in the .h file.
In the cat class, I have set the name by using the command, myDog.name = “buster”, after creating the variable “myDog” of type dog.
I would like to do additional operations when the name is set by overriding the set method normally created by the @synthesize command.
How can I do that? Thanks for the help!
This has been pretty much answered on SO already – see Objective-C synthesize property name overriding for details. In particular, @Dev Kanchen’s answer which includes example code.