mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2025-02-18 18:49:32 +00:00
- -[NSApplication targetForAction:] will ask the shared document controller after the application delegate, this enabled File -> New and Open ... to enable and work in a document based app.
This commit is contained in:
parent
5d0704eb45
commit
40c4ca01e3
@ -569,6 +569,9 @@ id NSApp=nil;
|
||||
if([[self delegate] respondsToSelector:action])
|
||||
return [self delegate];
|
||||
|
||||
if([[NSDocumentController sharedDocumentController] respondsToSelector:action])
|
||||
return [NSDocumentController sharedDocumentController];
|
||||
|
||||
return nil;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user