Browse files

Fixes a crash on Lion, where NSWindow does not support weak references.

  • Loading branch information...
1 parent 09ea072 commit d687bb855069aa6f715134af48e8c6b43f3a69c1 @bavarious bavarious committed Mar 13, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 OpenEmu/OEHUDWindow.m
4 OpenEmu/OEHUDWindow.m
@@ -81,8 +81,8 @@ - (void)windowDraggingDidEnd;
// - All other delegate methods are forwarded from superDelegate to localDelegate
// - Upon -mouseUp:, if the window is being dragged then dragging has ended, so send -windowDidMove: to localDelegate
@interface OEHUDWindowDelegateProxy : NSObject <NSWindowDelegate>
-@property(nonatomic, weak) id<NSWindowDelegate> superDelegate;
-@property(nonatomic, weak) id<NSWindowDelegate> localDelegate;
+@property(nonatomic, unsafe_unretained) id<NSWindowDelegate> superDelegate; // TODO: replace unsafe_unretained with weak when we start requiring 10.8
+@property(nonatomic, unsafe_unretained) id<NSWindowDelegate> localDelegate;
@implementation OEHUDWindow

0 comments on commit d687bb8

Please sign in to comment.