Small code cleanups.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28976 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2009-11-08 19:26:49 +00:00
parent ec316b13b2
commit 04ee108b47
6 changed files with 128 additions and 104 deletions

View file

@ -1,3 +1,12 @@
2009-11-08 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSActionCell.m,
* Source/NSAffineTransform.m
White space changes and cleanup.
* Headers/AppKit/NSAnimation.h: Change to new MacOSX type definitions.
* Source/NSAnimation.m: Remove externs and white space changes.
* Source/externs.m: Move externs from NSAnimation to here.
2009-11-08 Fred Kiefer <FredKiefer@gmx.de> 2009-11-08 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSApplication.m (-finishLaunching): Only activate the * Source/NSApplication.m (-finishLaunching): Only activate the

View file

@ -33,8 +33,8 @@
#if OS_API_VERSION(MAC_OS_X_VERSION_10_4, GS_API_LATEST) #if OS_API_VERSION(MAC_OS_X_VERSION_10_4, GS_API_LATEST)
#include <Foundation/NSObject.h> #import <Foundation/NSObject.h>
#include <AppKit/AppKitDefines.h> #import <AppKit/AppKitDefines.h>
#include <GNUstepGUI/GSAnimator.h> #include <GNUstepGUI/GSAnimator.h>
@class NSString; @class NSString;
@ -45,22 +45,24 @@
/** These constants describe the curve of an animation, /** These constants describe the curve of an animation,
that is, the relative speed of an animation from start to finish. */ that is, the relative speed of an animation from start to finish. */
typedef enum _NSAnimationCurve enum _NSAnimationCurve
{ {
NSAnimationEaseInOut = 0, // default NSAnimationEaseInOut = 0, // default
NSAnimationEaseIn, NSAnimationEaseIn,
NSAnimationEaseOut, NSAnimationEaseOut,
NSAnimationLinear, NSAnimationLinear,
NSAnimationSpeedInOut // GNUstep only NSAnimationSpeedInOut // GNUstep only
} NSAnimationCurve; };
typedef NSUInteger NSAnimationCurve;
/** These constants indicate the blocking mode of an NSAnimation object when it is running. */ /** These constants indicate the blocking mode of an NSAnimation object when it is running. */
typedef enum _NSAnimationBlockingMode enum _NSAnimationBlockingMode
{ {
NSAnimationBlocking, NSAnimationBlocking,
NSAnimationNonblocking, NSAnimationNonblocking,
NSAnimationNonblockingThreaded NSAnimationNonblockingThreaded
} NSAnimationBlockingMode; };
typedef NSUInteger NSAnimationBlockingMode;
typedef float NSAnimationProgress; typedef float NSAnimationProgress;
@ -97,6 +99,9 @@ APPKIT_EXPORT NSString *NSAnimationProgressMarkNotification;
/** Key used in the [NSNotification-userInfo] disctionary to access the current progress mark. */ /** Key used in the [NSNotification-userInfo] disctionary to access the current progress mark. */
APPKIT_EXPORT NSString *NSAnimationProgressMark; APPKIT_EXPORT NSString *NSAnimationProgressMark;
APPKIT_EXPORT NSString *NSAnimationTriggerOrderIn;
APPKIT_EXPORT NSString *NSAnimationTriggerOrderOut;
/** /**
* Objects of the NSAnimation class manage the timing and progress of * Objects of the NSAnimation class manage the timing and progress of
* animations in the user interface. The class also lets you link together * animations in the user interface. The class also lets you link together

View file

@ -27,9 +27,9 @@
*/ */
#include "config.h" #include "config.h"
#include <Foundation/NSCoder.h> #import <Foundation/NSCoder.h>
#include "AppKit/NSActionCell.h" #import "AppKit/NSActionCell.h"
#include "AppKit/NSControl.h" #import "AppKit/NSControl.h"
@implementation NSActionCell @implementation NSActionCell
@ -145,7 +145,7 @@ static Class controlClass;
/** /**
* Retrieve the value of the receiver * Retrieve the value of the receiver
*/ */
- (id)objectValue - (id) objectValue
{ {
if (_cell.in_editing && _control_view) if (_cell.in_editing && _control_view)
if ([_control_view isKindOfClass: controlClass]) if ([_control_view isKindOfClass: controlClass])
@ -156,7 +156,7 @@ static Class controlClass;
/** /**
* Retrieve the value of the receiver as an NSAttributedString. * Retrieve the value of the receiver as an NSAttributedString.
*/ */
- (NSAttributedString*)attributedStringValue - (NSAttributedString*) attributedStringValue
{ {
if (_cell.in_editing && _control_view) if (_cell.in_editing && _control_view)
if ([_control_view isKindOfClass: controlClass]) if ([_control_view isKindOfClass: controlClass])
@ -167,7 +167,7 @@ static Class controlClass;
/** /**
* Retrieve the value of the receiver as an NSString. * Retrieve the value of the receiver as an NSString.
*/ */
- (NSString *)stringValue - (NSString *) stringValue
{ {
if (_cell.in_editing && _control_view) if (_cell.in_editing && _control_view)
if ([_control_view isKindOfClass: controlClass]) if ([_control_view isKindOfClass: controlClass])
@ -178,7 +178,7 @@ static Class controlClass;
/** /**
* Retrieve the value of the receiver as a double. * Retrieve the value of the receiver as a double.
*/ */
- (double)doubleValue - (double) doubleValue
{ {
if (_cell.in_editing && _control_view) if (_cell.in_editing && _control_view)
if ([_control_view isKindOfClass: controlClass]) if ([_control_view isKindOfClass: controlClass])
@ -189,7 +189,7 @@ static Class controlClass;
/** /**
* Retrieve the value of the receiver as a float. * Retrieve the value of the receiver as a float.
*/ */
- (float)floatValue - (float) floatValue
{ {
if (_cell.in_editing && _control_view) if (_cell.in_editing && _control_view)
if ([_control_view isKindOfClass: controlClass]) if ([_control_view isKindOfClass: controlClass])
@ -200,7 +200,7 @@ static Class controlClass;
/** /**
* Retrieve the value of the receiver as an int. * Retrieve the value of the receiver as an int.
*/ */
- (int)intValue - (int) intValue
{ {
if (_cell.in_editing && _control_view) if (_cell.in_editing && _control_view)
if ([_control_view isKindOfClass: controlClass]) if ([_control_view isKindOfClass: controlClass])
@ -287,7 +287,7 @@ static Class controlClass;
/** /**
* Returns the control view of the receiver. * Returns the control view of the receiver.
*/ */
-(NSView *)controlView -(NSView *) controlView
{ {
return _control_view; return _control_view;
} }
@ -318,11 +318,11 @@ static Class controlClass;
if ([aCoder allowsKeyedCoding]) if ([aCoder allowsKeyedCoding])
{ {
[aCoder encodeInt: [self tag] forKey: @"NSTag"]; [aCoder encodeInt: [self tag] forKey: @"NSTag"];
if([self target] != nil) if ([self target] != nil)
{ {
[aCoder encodeObject: [self target] forKey: @"NSTarget"]; [aCoder encodeObject: [self target] forKey: @"NSTarget"];
} }
if([self action] != NULL) if ([self action] != NULL)
{ {
[aCoder encodeObject: NSStringFromSelector([self action]) forKey: @"NSAction"]; [aCoder encodeObject: NSStringFromSelector([self action]) forKey: @"NSAction"];
} }
@ -341,6 +341,8 @@ static Class controlClass;
- (id) initWithCoder: (NSCoder*)aDecoder - (id) initWithCoder: (NSCoder*)aDecoder
{ {
self = [super initWithCoder: aDecoder]; self = [super initWithCoder: aDecoder];
if (!self)
return nil;
if ([aDecoder allowsKeyedCoding]) if ([aDecoder allowsKeyedCoding])
{ {

View file

@ -33,13 +33,13 @@
#include "config.h" #include "config.h"
#include <math.h> #include <math.h>
#include <Foundation/NSArray.h> #import <Foundation/NSArray.h>
#include <Foundation/NSException.h> #import <Foundation/NSException.h>
#include <Foundation/NSString.h> #import <Foundation/NSString.h>
#include "AppKit/NSAffineTransform.h" #import "AppKit/NSAffineTransform.h"
#include "AppKit/NSBezierPath.h" #import "AppKit/NSBezierPath.h"
#include "AppKit/PSOperators.h" #import "AppKit/PSOperators.h"
/* Private definitions */ /* Private definitions */
#define A matrix.m11 #define A matrix.m11

View file

@ -26,41 +26,32 @@
Boston, MA 02110-1301, USA. Boston, MA 02110-1301, USA.
*/ */
#include <AppKit/NSAnimation.h> #import <Foundation/NSDate.h>
#import <Foundation/NSDebug.h>
#import <Foundation/NSException.h>
#import <Foundation/NSLock.h>
#import <Foundation/NSNotification.h>
#import <Foundation/NSRunLoop.h>
#import <Foundation/NSThread.h>
#import <Foundation/NSValue.h>
#include <GNUstepBase/GSLock.h> #include <GNUstepBase/GSLock.h>
#include <Foundation/NSNotification.h>
#include <Foundation/NSValue.h>
#include <Foundation/NSException.h>
#include <Foundation/NSRunLoop.h>
#include <Foundation/NSThread.h>
#include <Foundation/NSLock.h>
#include <Foundation/NSDate.h>
#include <AppKit/NSApplication.h>
#import <AppKit/NSAnimation.h>
#import <AppKit/NSApplication.h>
// needed by NSViewAnimation // needed by NSViewAnimation
#include <AppKit/NSWindow.h> #import <AppKit/NSView.h>
#include <AppKit/NSView.h> #import <AppKit/NSWindow.h>
#include <Foundation/NSDebug.h> #include <math.h>
NSString* NSAnimationBlockingRunLoopMode = @"NSAnimationBlockingRunLoopMode";
/*===================* /*===================*
* NSAnimation class * * NSAnimation class *
*===================*/ *===================*/
NSString* NSAnimationProgressMarkNotification
= @"NSAnimationProgressMarkNotification";
NSString *NSAnimationProgressMark
= @"NSAnimationProgressMark";
NSString* NSAnimationBlockingRunLoopMode
= @"NSAnimationBlockingRunLoopMode";
#define GSI_ARRAY_NO_RETAIN #define GSI_ARRAY_NO_RETAIN
#define GSI_ARRAY_NO_RELEASE #define GSI_ARRAY_NO_RELEASE
#define GSIArrayItem NSAnimationProgress #define GSIArrayItem NSAnimationProgress
#include <math.h>
#include <GNUstepBase/GSIArray.h> #include <GNUstepBase/GSIArray.h>
// 'reasonable value' ? // 'reasonable value' ?
@ -69,7 +60,7 @@ NSString* NSAnimationBlockingRunLoopMode
static NSArray* _NSAnimationDefaultRunLoopModes; static NSArray* _NSAnimationDefaultRunLoopModes;
static inline void static inline void
_GSBezierComputeCoefficients ( _GSBezierDesc *b ) _GSBezierComputeCoefficients(_GSBezierDesc *b)
{ {
b->a[0] = b->p[0]; b->a[0] = b->p[0];
b->a[1] =-3.0*b->p[0] + 3.0*b->p[1]; b->a[1] =-3.0*b->p[0] + 3.0*b->p[1];
@ -79,49 +70,50 @@ _GSBezierComputeCoefficients ( _GSBezierDesc *b )
} }
static inline float static inline float
_GSBezierEval (_GSBezierDesc *b, float t ) _GSBezierEval(_GSBezierDesc *b, float t)
{ {
if (!b->areCoefficientsComputed) if (!b->areCoefficientsComputed)
_GSBezierComputeCoefficients (b); _GSBezierComputeCoefficients(b);
return b->a[0] + t * (b->a[1] + t * (b->a[2] + t * b->a[3])); return b->a[0] + t * (b->a[1] + t * (b->a[2] + t * b->a[3]));
} }
static inline float static inline float
_GSBezierDerivEval (_GSBezierDesc *b, float t ) _GSBezierDerivEval(_GSBezierDesc *b, float t)
{ {
if (!b->areCoefficientsComputed) if (!b->areCoefficientsComputed)
_GSBezierComputeCoefficients (b); _GSBezierComputeCoefficients(b);
return b->a[1] + t * (2.0 * b->a[2] + t * 3.0 * b->a[3]); return b->a[1] + t * (2.0 * b->a[2] + t * 3.0 * b->a[3]);
} }
static inline void static inline void
_GSRationalBezierComputeBezierDesc (_GSRationalBezierDesc *rb ) _GSRationalBezierComputeBezierDesc(_GSRationalBezierDesc *rb)
{ {
unsigned i; unsigned i;
for (i=0; i<4; i++)
for (i = 0; i < 4; i++)
rb->n.p[i] = (rb->d.p[i] = rb->w[i]) * rb->p[i]; rb->n.p[i] = (rb->d.p[i] = rb->w[i]) * rb->p[i];
_GSBezierComputeCoefficients (&rb->n); _GSBezierComputeCoefficients(&rb->n);
_GSBezierComputeCoefficients (&rb->d); _GSBezierComputeCoefficients(&rb->d);
rb->areBezierDescComputed = YES; rb->areBezierDescComputed = YES;
} }
static inline float static inline float
_GSRationalBezierEval (_GSRationalBezierDesc *rb, float t) _GSRationalBezierEval(_GSRationalBezierDesc *rb, float t)
{ {
if (!rb->areBezierDescComputed) if (!rb->areBezierDescComputed)
_GSRationalBezierComputeBezierDesc (rb); _GSRationalBezierComputeBezierDesc(rb);
return _GSBezierEval(&(rb->n),t) / _GSBezierEval(&(rb->d),t); return _GSBezierEval(&(rb->n), t) / _GSBezierEval(&(rb->d), t);
} }
static inline float static inline float
_GSRationalBezierDerivEval (_GSRationalBezierDesc *rb, float t) _GSRationalBezierDerivEval(_GSRationalBezierDesc *rb, float t)
{ {
float h; float h;
if (!rb->areBezierDescComputed) if (!rb->areBezierDescComputed)
_GSRationalBezierComputeBezierDesc (rb); _GSRationalBezierComputeBezierDesc(rb);
h = _GSBezierEval (&(rb->d),t); h = _GSBezierEval(&(rb->d), t);
return ( _GSBezierDerivEval(&(rb->n),t) * h return (_GSBezierDerivEval(&(rb->n), t) * h
- _GSBezierEval (&(rb->n),t) * _GSBezierDerivEval(&(rb->d),t) ) - _GSBezierEval (&(rb->n), t) * _GSBezierDerivEval(&(rb->d), t))
/ (h*h); / (h*h);
} }
@ -144,7 +136,7 @@ _NSAnimationCurveDesc _gs_animationCurveDesc[] =
* gradients) to GSRBezier data (4 control points), then evaluate it. * gradients) to GSRBezier data (4 control points), then evaluate it.
*/ */
static inline float static inline float
_gs_animationValueForCurve ( _NSAnimationCurveDesc *c, float t, float t0 ) _gs_animationValueForCurve(_NSAnimationCurveDesc *c, float t, float t0)
{ {
if (!c->isRBezierComputed) if (!c->isRBezierComputed)
{ {
@ -172,10 +164,10 @@ _gs_animationValueForCurve ( _NSAnimationCurveDesc *c, float t, float t0 )
@end @end
NSComparisonResult NSComparisonResult
nsanimation_progressMarkSorter ( NSAnimationProgress first,NSAnimationProgress second) nsanimation_progressMarkSorter(NSAnimationProgress first, NSAnimationProgress second)
{ {
float diff = first - second; float diff = first - second;
return (NSComparisonResult)(diff / fabs (diff)); return (NSComparisonResult)(diff / fabs(diff));
} }
/* Thread locking/unlocking support macros. /* Thread locking/unlocking support macros.
@ -216,8 +208,9 @@ nsanimation_progressMarkSorter ( NSAnimationProgress first,NSAnimationProgress s
+ (void) initialize + (void) initialize
{ {
unsigned i; unsigned i;
for (i=0; i<5; i++) // compute Bezier curve parameters...
_gs_animationValueForCurve (&_gs_animationCurveDesc[i],0.0,0.0); for (i = 0; i < 5; i++) // compute Bezier curve parameters...
_gs_animationValueForCurve(&_gs_animationCurveDesc[i], 0.0, 0.0);
_NSAnimationDefaultRunLoopModes _NSAnimationDefaultRunLoopModes
= [[NSArray alloc] initWithObjects: = [[NSArray alloc] initWithObjects:
NSDefaultRunLoopMode, NSDefaultRunLoopMode,
@ -233,7 +226,6 @@ nsanimation_progressMarkSorter ( NSAnimationProgress first,NSAnimationProgress s
if (progress < 0.0) progress = 0.0; if (progress < 0.0) progress = 0.0;
if (progress > 1.0) progress = 1.0; if (progress > 1.0) progress = 1.0;
_NSANIMATION_LOCK; _NSANIMATION_LOCK;
if (GSIArrayCount(_progressMarks) == 0) if (GSIArrayCount(_progressMarks) == 0)
{ // First mark { // First mark
@ -1208,14 +1200,6 @@ nsanimation_progressMarkSorter ( NSAnimationProgress first,NSAnimationProgress s
* NSViewAnimation class * * NSViewAnimation class *
*=======================*/ *=======================*/
NSString *NSViewAnimationTargetKey = @"NSViewAnimationTargetKey";
NSString *NSViewAnimationStartFrameKey = @"NSViewAnimationStartFrameKey";
NSString *NSViewAnimationEndFrameKey = @"NSViewAnimationEndFrameKey";
NSString *NSViewAnimationEffectKey = @"NSViewAnimationEffectKey";
NSString *NSViewAnimationFadeInEffect = @"NSViewAnimationFadeInEffect";
NSString *NSViewAnimationFadeOutEffect = @"NSViewAnimationFadeOutEffect";
@interface _GSViewAnimationBaseDesc : NSObject @interface _GSViewAnimationBaseDesc : NSObject
{ {
id _target; id _target;
@ -1231,7 +1215,7 @@ NSString *NSViewAnimationFadeOutEffect = @"NSViewAnimationFadeOutEffect";
@end @end
@interface _GSViewAnimationDesc : _GSViewAnimationBaseDesc @interface _GSViewAnimationDesc : _GSViewAnimationBaseDesc
{ {
BOOL _shouldHide; BOOL _shouldHide;
BOOL _shouldUnhide; BOOL _shouldUnhide;
} }
@ -1251,17 +1235,18 @@ NSString *NSViewAnimationFadeOutEffect = @"NSViewAnimationFadeOutEffect";
{ {
NSZone* zone; NSZone* zone;
id target; id target;
zone = [self zone]; zone = [self zone];
RELEASE (self); RELEASE (self);
target = [properties objectForKey: NSViewAnimationTargetKey]; target = [properties objectForKey: NSViewAnimationTargetKey];
if (target!=nil) if (target != nil)
{ {
if ([target isKindOfClass: [NSView class]]) if ([target isKindOfClass: [NSView class]])
self = [[_GSViewAnimationDesc allocWithZone: zone] self = [[_GSViewAnimationDesc allocWithZone: zone]
initWithProperties : properties]; initWithProperties: properties];
else if ([target isKindOfClass: [NSWindow class]]) else if ([target isKindOfClass: [NSWindow class]])
self = [(_GSWindowAnimationDesc*)[_GSWindowAnimationDesc allocWithZone: zone] self = [(_GSWindowAnimationDesc*)[_GSWindowAnimationDesc allocWithZone: zone]
initWithProperties : properties]; initWithProperties: properties];
else else
[NSException [NSException
raise: NSInvalidArgumentException raise: NSInvalidArgumentException
@ -1296,11 +1281,12 @@ NSString *NSViewAnimationFadeOutEffect = @"NSViewAnimationFadeOutEffect";
return self; return self;
} }
- (void) setCurrentProgress: (float) progress - (void) setCurrentProgress: (float)progress
{ {
if (progress < 1.0f) if (progress < 1.0f)
{ {
NSRect r; NSRect r;
r.origin.x = _startFrame.origin.x r.origin.x = _startFrame.origin.x
+ progress*( _endFrame.origin.x - _startFrame.origin.x ); + progress*( _endFrame.origin.x - _startFrame.origin.x );
r.origin.y = _startFrame.origin.y r.origin.y = _startFrame.origin.y
@ -1310,7 +1296,7 @@ NSString *NSViewAnimationFadeOutEffect = @"NSViewAnimationFadeOutEffect";
r.size.height = _startFrame.size.height r.size.height = _startFrame.size.height
+ progress*( _endFrame.size.height - _startFrame.size.height ); + progress*( _endFrame.size.height - _startFrame.size.height );
[self setTargetFrame:r]; [self setTargetFrame: r];
if (_effect == NSViewAnimationFadeOutEffect) if (_effect == NSViewAnimationFadeOutEffect)
/* subclassResponsibility */; /* subclassResponsibility */;
@ -1323,8 +1309,10 @@ NSString *NSViewAnimationFadeOutEffect = @"NSViewAnimationFadeOutEffect";
} }
} }
- (void) setTargetFrame: (NSRect) frame; - (void) setTargetFrame: (NSRect)frame
{ [self subclassResponsibility: _cmd]; } {
[self subclassResponsibility: _cmd];
}
@end // implementation _GSViewAnimationDesc @end // implementation _GSViewAnimationDesc
@ -1342,7 +1330,7 @@ NSString *NSViewAnimationFadeOutEffect = @"NSViewAnimationFadeOutEffect";
return self; return self;
} }
- (void) setCurrentProgress: (float) progress - (void) setCurrentProgress: (float)progress
{ {
[super setCurrentProgress: progress]; [super setCurrentProgress: progress];
if (_effect == NSViewAnimationFadeOutEffect) if (_effect == NSViewAnimationFadeOutEffect)
@ -1359,8 +1347,10 @@ NSString *NSViewAnimationFadeOutEffect = @"NSViewAnimationFadeOutEffect";
} }
} }
- (void) setTargetFrame: (NSRect) frame; - (void) setTargetFrame: (NSRect)frame
{ [_target setFrame:frame]; } {
[_target setFrame: frame];
}
@end // implementation _GSViewAnimationDesc @end // implementation _GSViewAnimationDesc
@ -1375,15 +1365,15 @@ NSString *NSViewAnimationFadeOutEffect = @"NSViewAnimationFadeOutEffect";
return self; return self;
} }
- (void) setCurrentProgress: (float) progress - (void) setCurrentProgress: (float)progress
{ {
[super setCurrentProgress: progress]; [super setCurrentProgress: progress];
if (_effect == NSViewAnimationFadeOutEffect) if (_effect == NSViewAnimationFadeOutEffect)
[_target setAlphaValue: _startAlpha*(1.0f-progress)]; [_target setAlphaValue: _startAlpha * (1.0f - progress)];
if (_effect == NSViewAnimationFadeInEffect) if (_effect == NSViewAnimationFadeInEffect)
[_target setAlphaValue: _startAlpha+(1.0f-_startAlpha)*progress]; [_target setAlphaValue: _startAlpha + (1.0f - _startAlpha) * progress];
if (progress>=1.0f) if (progress >= 1.0f)
{ {
if (_effect == NSViewAnimationFadeOutEffect) if (_effect == NSViewAnimationFadeOutEffect)
[_target orderBack: self]; [_target orderBack: self];
@ -1392,8 +1382,10 @@ NSString *NSViewAnimationFadeOutEffect = @"NSViewAnimationFadeOutEffect";
} }
} }
- (void) setTargetFrame: (NSRect) frame; - (void) setTargetFrame: (NSRect) frame
{ [_target setFrame:frame display:YES]; } {
[_target setFrame: frame display: YES];
}
@end // implementation _GSWindowAnimationDesc @end // implementation _GSWindowAnimationDesc

View file

@ -76,6 +76,13 @@ NSString *NSWordTablesWriteException = @"WordTablesWrite";
NSString *GSWindowServerInternalException = @"WindowServerInternal"; NSString *GSWindowServerInternalException = @"WindowServerInternal";
// NSAnimation
NSString* NSAnimationProgressMarkNotification
= @"NSAnimationProgressMarkNotification";
NSString *NSAnimationProgressMark = @"NSAnimationProgressMark";
NSString *NSAnimationTriggerOrderIn = @"NSAnimationTriggerOrderIn";
NSString *NSAnimationTriggerOrderOut = @"NSAnimationTriggerOrderOut";
// Application notifications // Application notifications
NSString *NSApplicationDidBecomeActiveNotification NSString *NSApplicationDidBecomeActiveNotification
= @"ApplicationDidBecomeActive"; = @"ApplicationDidBecomeActive";
@ -384,6 +391,15 @@ NSString *NSViewBoundsDidChangeNotification
NSString *NSViewGlobalFrameDidChangeNotification NSString *NSViewGlobalFrameDidChangeNotification
= @"NSViewGlobalFrameDidChangeNotification"; = @"NSViewGlobalFrameDidChangeNotification";
// NSViewAnimation
NSString *NSViewAnimationTargetKey = @"NSViewAnimationTargetKey";
NSString *NSViewAnimationStartFrameKey = @"NSViewAnimationStartFrameKey";
NSString *NSViewAnimationEndFrameKey = @"NSViewAnimationEndFrameKey";
NSString *NSViewAnimationEffectKey = @"NSViewAnimationEffectKey";
NSString *NSViewAnimationFadeInEffect = @"NSViewAnimationFadeInEffect";
NSString *NSViewAnimationFadeOutEffect = @"NSViewAnimationFadeOutEffect";
// NSMenu notifications // NSMenu notifications
NSString* const NSMenuDidSendActionNotification = @"MenuDidSendAction"; NSString* const NSMenuDidSendActionNotification = @"MenuDidSendAction";
NSString* const NSMenuWillSendActionNotification = @"MenuWillSendAction"; NSString* const NSMenuWillSendActionNotification = @"MenuWillSendAction";