Not sure how to do this, and I could not find the answer because of my inability to find words to express what I was looking for. (!)
In Java, I did something like this (I don't remember):
JPanel myButton = new JPanel("Press me"){
public void add(JComponent component){
}
};
But I could not find how to do this in Objective-C. What I found in my search were categories and strange characters {{} ...
So how can I override a method in a newly created object?
(For example, override -(BOOL)isEqual;in the newly created NSString*?)
I'm sorry if the question is a little vague.
EDIT:
Obviously without a subclass :)
EDIT:
You can also post my problem if anyone has a better idea:
CCT- COCOS2D, . , , , - (void); ( CCTransition)
CCTransition :)
EDIT:
- (void) onEnterTransitionDidFinish;... - , , ......
, CCTransition CCNode: D!