In my mac os x app, I subclass NSApplication and override it’s -sendEvent: method. Apple complains :
The app includes ‘OBJC_IVAR_$_NSApplication._delegate’ from the framework ‘/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit’.
What can I do about that? What am I doing wrong?
You are accessing the application delegate by directly referring to the
_delegateivar, like this:You need to use the
delegateaccessor method, like this: