WaE: 'NSCountWindows' is deprecated: first deprecated in OS X 10.6
Change-Id: I7163d3821ac0dfc0d471cf31e98f72953c78d878
This commit is contained in:
@@ -165,15 +165,11 @@ static const struct ExceptionalKey
|
||||
|
||||
static AquaSalFrame* getMouseContainerFrame()
|
||||
{
|
||||
NSInteger nWindows = 0;
|
||||
NSCountWindows( &nWindows );
|
||||
NSInteger* pWindows = (NSInteger*)alloca( nWindows * sizeof(NSInteger) );
|
||||
// note: NSWindowList is supposed to be in z-order front to back
|
||||
NSWindowList( nWindows, pWindows );
|
||||
NSArray* aWindows = [NSWindow windowNumbersWithOptions:0];
|
||||
AquaSalFrame* pDispatchFrame = NULL;
|
||||
for(int i = 0; i < nWindows && ! pDispatchFrame; i++ )
|
||||
for(NSUInteger i = 0; i < [aWindows count] && ! pDispatchFrame; i++ )
|
||||
{
|
||||
NSWindow* pWin = [NSApp windowWithWindowNumber: pWindows[i]];
|
||||
NSWindow* pWin = [NSApp windowWithWindowNumber:[[aWindows objectAtIndex:i] integerValue]];
|
||||
if( pWin && [pWin isMemberOfClass: [SalFrameWindow class]] && [(SalFrameWindow*)pWin containsMouse] )
|
||||
pDispatchFrame = [(SalFrameWindow*)pWin getSalFrame];
|
||||
}
|
||||
|
Reference in New Issue
Block a user