Fix issue with delegate protocol as reported by Ivan.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37101 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2013-09-17 23:00:56 +00:00
parent 42f7c46547
commit 805aa3e3c4
2 changed files with 12 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2013-09-17 16:36-EDT Gregory John Casamento <greg.casamento@gmail.com>
* Headers/AppKit/NSWindow.h: Add declaration to remove "attachedSheet"
from protocol. Add declaration to add delegate methods to NSObject.
Some methods in NSWindow call these on self.
2013-09-17 Ivan Vucica <ivan@vucica.net>
* Source/NSLayoutManager.m:

View file

@ -849,9 +849,6 @@ PACKAGE_SCOPE
willPositionSheet: (NSWindow *)sheet
usingRect: (NSRect)rect;
#endif
#if OS_API_VERSION(MAC_OS_X_VERSION_10_1, GS_API_LATEST)
- (NSWindow *) attachedSheet;
#endif
- (NSSize) windowWillResize: (NSWindow*)sender
toSize: (NSSize)frameSize;
- (id) windowWillReturnFieldEditor: (NSWindow*)sender
@ -876,6 +873,12 @@ willPositionSheet: (NSWindow *)sheet
@end
#endif
@interface NSObject (NSWindowDelegateAdditions) <NSWindowDelegate>
#if OS_API_VERSION(MAC_OS_X_VERSION_10_1, GS_API_LATEST)
- (NSWindow *) attachedSheet;
#endif
@end
/* Notifications */
APPKIT_EXPORT NSString *NSWindowDidBecomeKeyNotification;
APPKIT_EXPORT NSString *NSWindowDidBecomeMainNotification;