Created
February 18, 2011 18:39
-
-
Save bpaf/834168 to your computer and use it in GitHub Desktop.
doesn't check for visibility before centering
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
- (void)runModalSession:(CPModalSession)aModalSession | |
{ | |
aModalSession._previous = _currentSession; | |
_currentSession = aModalSession; | |
var theWindow = aModalSession._window; | |
[theWindow center]; | |
[theWindow makeKeyWindow]; | |
[theWindow orderFront:self]; | |
// [theWindow._bridge _obscureWindowsBelowModalWindow]; | |
[CPApp setCallback:_CPRunModalLoop forNextEventMatchingMask:CPAnyEventMask untilDate:nil inMode:0 dequeue:NO]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment