objective c - How can I get notified when NSViewController instance is loaded / unloaded -


on ios, there viewdidappear / viewdiddisappear methods. being added yosemite (see https://developer.apple.com/library/prerelease/mac/releasenotes/appkit/rn-appkit/#10_10viewcontroller).

question: how can detect when view appearing / disappearing pre-os x 10.10?

you can use loadview

- (void)loadview {     [super loadview];  } 

i don't know goal if needed it. there viewdidunload , viewwillunload apple deprecated them , warned people being misused.

the cost of releasing objects when view unload not expensive got rid of it.


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -