I have read all the docs I can get my hands on and google’d everything I can, however, I am misunderstanding a fundamental aspect of either object-oriented programming, Cocoa, or both. I have a window that is declared in MyDelegate.h:
@property (assign) IBOutlet NSWindow *dataWindow;
And is synthesized in MyDelegate.m:
@synthesize dataWindow = _dataWindow;
How do I access this window from other classes? For example, I want to use a separate class for a drawer the will have _datawindow as its parent.
You can access it through you
MyDelegateclass.Don’t forget to import MyDelegate header to your class