mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 10:20:48 +00:00
* Source/NSCollectionView.m (-_moveUpAndExpandSelection:):
* Correct the comparision. Bug reported by Gregory John Casamento <greg.casamento@gmail.com> * Headers/AppKit/NSPopover.h: Add missing import. * Source/GSXibLoader.m: Disable NSCustomView hack again. * Headers/AppKit/NSApplication.h: Replace GSAppDelegateProtocol with NSApplicationDelegate. * Source/NSApplication.m: Adjust documentation to this * replacement. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@36553 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
eab097631c
commit
12a29ad4d7
6 changed files with 34 additions and 18 deletions
|
@ -440,13 +440,19 @@ APPKIT_EXPORT NSString *NSEventTrackingRunLoopMode;
|
|||
@end
|
||||
|
||||
/**
|
||||
* This is a formal protocol that duplicates the informal protocol for
|
||||
* [NSApplication] delegates. Your delegate does not need to implement the
|
||||
* formal protocol; it is declared only for documentation purposes. Your
|
||||
* This is now a formal optional protocol.
|
||||
* Your delegate does not need to implement the full formal protocol. Your
|
||||
* delegate should just implement the methods it needs to, which will allow
|
||||
* <code>NSApp</code> to use default implementations in other cases.
|
||||
*/
|
||||
@protocol GSAppDelegateProtocol
|
||||
@protocol NSApplicationDelegate <NSObject>
|
||||
#ifdef __OBJC2__
|
||||
@optional
|
||||
#else
|
||||
@end
|
||||
@interface NSObject (NSApplicationDelegate)
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Sender app (not necessarily this application) requests application to open
|
||||
* file without bringing up its normal UI, for programmatic manipulation.
|
||||
|
@ -623,12 +629,14 @@ APPKIT_EXPORT NSString *NSEventTrackingRunLoopMode;
|
|||
- (BOOL) application: (NSApplication*)sender
|
||||
delegateHandlesKey: (NSString*)key;
|
||||
|
||||
#if OS_API_VERSION(MAC_OS_X_VERSION_10_1, GS_API_LATEST)
|
||||
/**
|
||||
* Method used on OS X to allow an application to override the standard menu
|
||||
* obtained by right-clicking on the application's dock icon. <em>Called
|
||||
* when the application uses Macintosh or Windows95 style menus.</em>
|
||||
*/
|
||||
- (NSMenu *) applicationDockMenu: (NSApplication*)sender;
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Method used on OS X to allow delegate to handle event when user clicks on
|
||||
|
@ -650,13 +658,6 @@ APPKIT_EXPORT NSString *NSEventTrackingRunLoopMode;
|
|||
@end
|
||||
#endif
|
||||
|
||||
/*
|
||||
* NSApplicationDelegate inherits from GSAppDelegateProtocol to
|
||||
* avoid compiler warnings.
|
||||
*/
|
||||
@protocol NSApplicationDelegate <GSAppDelegateProtocol>
|
||||
@end
|
||||
|
||||
/*
|
||||
* Notifications
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue