* Headers/AppKit/NSPopover.h: correct delegate method

for popoverShouldClose:
	* Headers/AppKit/NSWindow.h: add convertRectToScreen: and
	convertRectFromScreen: methods.
	* Source/NSPopover.m: Correct delegate method for popoverShouldClose:.
	Changes to align popover window with rect it is being placed relative
	to.
	* Source/NSWindow.m: implementation of convertRectToScreen: and
	convertRectFromScreen: methods.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36577 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2013-04-24 09:25:56 +00:00
parent 7bd5a864cd
commit f14cc1f3bc
5 changed files with 133 additions and 7 deletions

View file

@ -333,6 +333,19 @@ PACKAGE_SCOPE
*/
- (NSPoint) convertScreenToBase: (NSPoint)aPoint;
/**
* Converts aRect from the coordinate system of the screen
* to the coordinate system of the window.
*/
- (NSRect) convertRectFromScreen: (NSRect)aRect;
/**
* Converts aRect from the window coordinate system to a rect in
* the screen coordinate system.
*/
- (NSRect) convertRectToScreen: (NSRect)aRect;
/**
* Returns the frame of the receiver ... the rectangular area that the window
* (including any border, title, and other decorations) occupies on screen.