سؤال

In my app i have the following setup :

// .h
@interface MyDocument : NSPersistentDocument <NSApplicationDelegate>
{
   ...
}

// .m
@implementation MyDocument

-(void) applicationDidBecomeActive:(NSNotification *)notification
{
   ...
}

The applicationDidBecomeActive never gets called for some reason. Does anyone know I'm missing here?!

هل كانت مفيدة؟

المحلول

Thanks to Carter's comment, I figured out that in the nib file application delegate is not linked to File's Owner (MyDocument). There fore, linking those two fix the problem!

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top