mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2025-01-31 17:24:08 +00:00
- Issue #58, Rolf Jansen's implementation of NSDocument using-[NSWindowController shouldCloseDocument]
This commit is contained in:
parent
e74537fe1e
commit
871e8e19d6
@ -924,11 +924,11 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
||||
NSWindowController *controller=[_windowControllers objectAtIndex:count];
|
||||
|
||||
if([controller isWindowLoaded] && window==[controller window]){
|
||||
if([controller shouldCloseDocument]){
|
||||
}
|
||||
|
||||
[_windowControllers removeObjectAtIndex:count];
|
||||
return;
|
||||
BOOL closeMe = [controller shouldCloseDocument];
|
||||
[_windowControllers removeObjectAtIndex:count];
|
||||
if (closeMe)
|
||||
[self close];
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user