Created
January 7, 2012 18:14
-
-
Save mikeabdullah/1575537 to your computer and use it in GitHub Desktop.
Adjusting -[NSDocument windowForSheet] to handle multiple sheets at once
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (NSWindow *)windowForSheet; | |
{ | |
NSWindow *result = [super windowForSheet]; | |
NSWindow *sheet; | |
while ((sheet = [result attachedSheet])) | |
{ | |
result = sheet; | |
} | |
return result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment