diff options
author | 2010-01-08 04:36:12 +0000 | |
---|---|---|
committer | 2010-01-08 04:36:12 +0000 | |
commit | b2fa9805eb63d5daa1dd8fab1edf0c85fb7ebfc0 (patch) | |
tree | a07aae86ed120807b8f2d5f621e575f4257115c8 /AppKit/GTMWindowSheetController.m | |
parent | 31ce8143b3739153e88bd6847e1fbaf7633f6233 (diff) |
[Author: dmaclach]
Added some basic casting debugging goodness to GTM.
Opinions? added to help catch a bug in QSB.
R=thomasvl
DELTA=55 (55 added, 0 deleted, 0 changed)
Diffstat (limited to 'AppKit/GTMWindowSheetController.m')
-rw-r--r-- | AppKit/GTMWindowSheetController.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/AppKit/GTMWindowSheetController.m b/AppKit/GTMWindowSheetController.m index ae14685..59a866d 100644 --- a/AppKit/GTMWindowSheetController.m +++ b/AppKit/GTMWindowSheetController.m @@ -19,6 +19,7 @@ #import "GTMWindowSheetController.h" #import "GTMDefines.h" +#import "GTMTypeCasting.h" @interface GTMWSCSheetInfo : NSObject { @public @@ -462,7 +463,8 @@ willPositionSheet:(NSWindow*)sheet } - (void)notificationHappened:(NSNotification*)notification { - [self viewDidChangeSize:[notification object]]; + NSView *view = GTM_STATIC_CAST(NSView, [notification object]); + [self viewDidChangeSize:view]; } - (void)viewDidChangeSize:(NSView*)view { |