osx yosemite - Backward compatibility of Xcode OSX -


how use features such viewdidload or appdidbecomeactive in xcode 4.6.1 osx 10.8, available osx 10.10 , above. please suggest alternative ways use these functions.

to expand on ken thomas's comment; code use:

- (void)loadview {     [super loadview];      // if we're running on 10.8 or older…     if (nsappkitversionnumber <= nsappkitversionnumber10_8) {         [self viewdidload]; // call viewdidload (added in 10.9)     } }  // // called loadview pre-10.9; directly otherwise // - (void)viewdidload {     // --- code here --- }   // viewdidload 

Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -