Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a typhoon life-cycle logger that when turned on reports on the create, inject and dealloc of a component #160

Closed
jasperblues opened this issue Feb 1, 2014 · 3 comments

Comments

@jasperblues
Copy link
Member

If we had Typhoon-aop we could use that. . i guess it will have to be a custom solution.

@alexgarbarev
Copy link
Contributor

dealloc logging can be achieved via NSObject+DeallocNotification category, but category should be extended to provide custom key for notifier (to not conflict with weakElementsPool when using WeakSingleton scope)

@alexgarbarev
Copy link
Contributor

I added ability to set dealloc notifier with custom key. You can it use to solve this issue.
Note that using dealloc notifier creates object, don't use it for all objects in production to prevent performance penalty. (it's ok for weak singleton because anyway we need to wrap weak objects)

@jasperblues
Copy link
Member Author

If you have the time, could you please add a code snippet on the class, this will then get included in the Typhoon API docs at: http://www.typhoonframework.org/docs/latest/api/index.html

The format is:

/** 
* Some text bla bla bla
@code
   //code goes in here
@endcode
*/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants