Objective C: Method have knowledge of context within which it was called?
Posted
by Cirrostratus
on Stack Overflow
See other posts from Stack Overflow
or by Cirrostratus
Published on 2010-04-21T02:11:20Z
Indexed on
2010/04/21
2:13 UTC
Read the original article
Hit count: 479
I'd like to have a reusable logging method or function that spits out the name of the method it's called from. Example:
- (void)exampleMethod {
CustomLog(); //Outputs "exampleMethod"
}
© Stack Overflow or respective owner