Way of knowing who called a singleton - objective C
Posted
by
Cyril
on Stack Overflow
See other posts from Stack Overflow
or by Cyril
Published on 2011-01-04T23:58:32Z
Indexed on
2011/01/05
0:54 UTC
Read the original article
Hit count: 132
objective-c
|singleton
Hello, I am designing a game with several levels. I have a CCLayer defined as a singleton (called MasterScene) where I handle the pause page, transition page, player's score banner,... all the things common to all levels. So in each level, when the user pushes the pause button, a call is made to the singleton to display the CClayer corresponding to the pause page. My problem is that I want to know who called the singleton (which level) t. Is there a way of doing that ? Thanks
© Stack Overflow or respective owner