OK、これが私の状況です...
私のアプリデリゲートは次のように宣言されています:
@interface AppDelegate : NSObject <NSApplicationDelegate>
@property (assign) IBOutlet NSWindow *window;
@property (assign) ppDocumentManager* documentManager;
今、私がアクセスしようとしている別の場所からdocumentManager
、次のように:
AppDelegate* de = (AppDelegate*)[[NSApplication sharedApplication] delegate];
ppDocumentManager* docs = [de documentManager];
また、ファイルの先頭に@class AppDelegate;
、コンパイラが何のAppDelegate
略かを認識できるように追加しました。
そして、それはうまくいきます。
ただし、警告が表示され続けます。
Instance method '-documentManager' not found (return type defaults to 'id')
すべての警告をなくすにはどうすればよいですか?