salframeview.mm (2fb76c82) salframeview.mm (01367266)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 447 unchanged lines hidden (view full) ---

456 return mpFrame;
457}
458
459-(void)resetCursorRects
460{
461 if( mpFrame && AquaSalFrame::isAlive( mpFrame ) )
462 {
463 // FIXME: does this leak the returned NSCursor of getCurrentCursor ?
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 447 unchanged lines hidden (view full) ---

456 return mpFrame;
457}
458
459-(void)resetCursorRects
460{
461 if( mpFrame && AquaSalFrame::isAlive( mpFrame ) )
462 {
463 // FIXME: does this leak the returned NSCursor of getCurrentCursor ?
464 const NSRect aRect = NSMakeRect( 0, 0, mpFrame->maGeometry.nWidth, mpFrame->maGeometry.nHeight);
464 const NSRect aRect = { NSZeroPoint, NSMakeSize( mpFrame->maGeometry.nWidth, mpFrame->maGeometry.nHeight) };
465 [self addCursorRect: aRect cursor: mpFrame->getCurrentCursor()];
466 }
467}
468
469-(BOOL)acceptsFirstResponder
470{
471 return YES;
472}

--- 1305 unchanged lines hidden ---
465 [self addCursorRect: aRect cursor: mpFrame->getCurrentCursor()];
466 }
467}
468
469-(BOOL)acceptsFirstResponder
470{
471 return YES;
472}

--- 1305 unchanged lines hidden ---