Skip to content

Instantly share code, notes, and snippets.

@mikeabdullah
Created January 7, 2012 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeabdullah/1575537 to your computer and use it in GitHub Desktop.
Save mikeabdullah/1575537 to your computer and use it in GitHub Desktop.
Adjusting -[NSDocument windowForSheet] to handle multiple sheets at once
- (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