Permalink
Browse files

the nsView property should be unsafe_unretained

  • Loading branch information...
1 parent def0e1a commit d98197d60567e73d8846d4e94a9dc3946bd68e8f @joshaber joshaber committed Jun 22, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/UIKit/TUINSView.m
  2. +1 −1 lib/UIKit/TUIView.h
View
@@ -44,8 +44,8 @@ - (void)dealloc
[[NSNotificationCenter defaultCenter] removeObserver:self name:NSWindowDidResignKeyNotification object:nil];
[[NSNotificationCenter defaultCenter] removeObserver:self name:NSWindowDidBecomeKeyNotification object:nil];
+ rootView.nsView = nil;
[rootView removeFromSuperview];
- rootView.nsView = nil;
rootView = nil;
_hoverView = nil;
View
@@ -94,7 +94,7 @@ extern CGRect(^TUIViewCenteredLayout)(TUIView*);
NSTimeInterval toolTipDelay;
@public
- TUINSView *_nsView; // keep this updated, fast way of getting .nsView
+ __unsafe_unretained TUINSView *_nsView; // keep this updated, fast way of getting .nsView
struct {
NSInteger lastWidth;

0 comments on commit d98197d

Please sign in to comment.