Skip to content

Commit 5120a22

Browse files
committed
Make the delegate unretained in MGScopeBar.
1 parent 570754c commit 5120a22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

MGScopeBar/MGScopeBar.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
@interface MGScopeBar : NSView {
1313
@private
14-
IBOutlet id <MGScopeBarDelegate, NSObject> delegate; // weak ref.
14+
__unsafe_unretained id <MGScopeBarDelegate, NSObject> delegate; // weak ref.
1515
NSMutableArray *_separatorPositions; // x-coords of separators, indexed by their group-number.
1616
NSMutableArray *_groups; // groups of items.
1717
NSView *_accessoryView; // weak ref since it's a subview.
@@ -24,7 +24,7 @@
2424
BOOL _smartResizeEnabled; // whether to do our clever collapsing/expanding of buttons when resizing (Smart Resizing).
2525
}
2626

27-
@property(strong,nonatomic) id delegate; // should implement the MGScopeBarDelegate protocol.
27+
@property(unsafe_unretained,nonatomic) IBOutlet id delegate; // should implement the MGScopeBarDelegate protocol.
2828

2929
- (void)reloadData; // causes the scope-bar to reload all groups/items from its delegate.
3030
- (void)sizeToFit; // only resizes vertically to optimum height; does not affect width.

0 commit comments

Comments
 (0)