Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Commit

Permalink
[#449] use weak properties for delegates
Browse files Browse the repository at this point in the history
  • Loading branch information
mackuba committed Mar 29, 2015
1 parent f9393a4 commit 5ab89d0
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Hive/Controllers/HICameraWindowController.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*/
@interface HICameraWindowController : NSWindowController

@property (nonatomic, strong) id<HICameraWindowControllerDelegate> delegate;
@property (nonatomic, weak) id<HICameraWindowControllerDelegate> delegate;

+ (HICameraWindowController *)sharedCameraWindowController;

Expand Down
2 changes: 1 addition & 1 deletion Hive/Controllers/HIContactAutocompleteWindowController.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

@interface HIContactAutocompleteWindowController : NSWindowController <NSTableViewDelegate>

@property (nonatomic, unsafe_unretained) id<HIContactAutocompleteDelegate> delegate;
@property (nonatomic, weak) id<HIContactAutocompleteDelegate> delegate;

- (void)searchWithContact:(HIContact *)contact;
- (void)searchWithQuery:(NSString *)query;
Expand Down
2 changes: 1 addition & 1 deletion Hive/Controllers/HIContactTabBarController.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ @interface HIContactTabBarController () {
NSArray *_tabBarButtons;
}

@property (nonatomic, strong) IBOutlet id<HIProfileTabBarControllerDelegate> tabDelegate;
@property (nonatomic, weak) IBOutlet id<HIProfileTabBarControllerDelegate> tabDelegate;

@end

Expand Down
2 changes: 1 addition & 1 deletion Hive/Controllers/HISidebarController.m
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ @interface HISidebarController () {

@property (nonatomic, weak) IBOutlet NSView *view;
@property (nonatomic, weak) IBOutlet NSButton *sendButton;
@property (nonatomic, unsafe_unretained) IBOutlet id<HISidebarControllerDelegate> delegate;
@property (nonatomic, weak) IBOutlet id<HISidebarControllerDelegate> delegate;

@property (nonatomic, assign) NSInteger selectedTabIndex;

Expand Down
2 changes: 1 addition & 1 deletion Hive/Controllers/HITransactionPopoverViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

@interface HITransactionPopoverViewController : NSViewController

@property (nonatomic, strong) id<HITransactionPopoverDelegate> delegate;
@property (nonatomic, weak) id<HITransactionPopoverDelegate> delegate;

- (instancetype)initWithTransaction:(HITransaction *)transaction;
- (NSPopover *)createPopover;
Expand Down
2 changes: 1 addition & 1 deletion Hive/Controllers/HIWizardViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

@interface HIWizardViewController : NSViewController

@property (nonatomic, strong) id<HIWizardViewControllerDelegate> wizardDelegate;
@property (nonatomic, weak) id<HIWizardViewControllerDelegate> wizardDelegate;
@property (nonatomic, strong, readonly) NSResponder *initialFirstResponder;

- (void)viewWillAppear;
Expand Down
2 changes: 1 addition & 1 deletion Hive/Views/HITitleView.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

@interface HITitleView : NSView

@property (nonatomic, unsafe_unretained) id<HITitleViewDelegate> delegate;
@property (nonatomic, weak) id<HITitleViewDelegate> delegate;

- (void)pushTitle:(NSString *)title;
- (void)popToTitleAtPosition:(NSInteger)position;
Expand Down

0 comments on commit 5ab89d0

Please sign in to comment.