aboutsummaryrefslogtreecommitdiffstats
path: root/CopyMailto
diff options
context:
space:
mode:
authorTeddy Wing2018-09-05 18:06:41 +0200
committerTeddy Wing2018-09-05 18:09:56 +0200
commit3748d43501bc81d53a0e912c6db4070643052436 (patch)
treeab253c373725e353e23cc88476d7649ce8bc048b /CopyMailto
parenteae8538ad69274b3c2e3487e5a2561763106a8b7 (diff)
downloadCopy-Mailto-3748d43501bc81d53a0e912c6db4070643052436.tar.bz2
AppDelegate: Change `window` property to instance variable
Got this error: Cannot synthesize weak property because the current deployment target does not support weak references Get rid of the property and replace it with an instance variable to get rid of the error.
Diffstat (limited to 'CopyMailto')
-rw-r--r--CopyMailto/AppDelegate.h4
-rw-r--r--CopyMailto/AppDelegate.m5
-rw-r--r--CopyMailto/Base.lproj/MainMenu.xib5
3 files changed, 5 insertions, 9 deletions
diff --git a/CopyMailto/AppDelegate.h b/CopyMailto/AppDelegate.h
index df7aec0..b46e3ff 100644
--- a/CopyMailto/AppDelegate.h
+++ b/CopyMailto/AppDelegate.h
@@ -8,7 +8,9 @@
#import <Cocoa/Cocoa.h>
-@interface AppDelegate : NSObject <NSApplicationDelegate>
+@interface AppDelegate : NSObject <NSApplicationDelegate> {
+ IBOutlet NSWindow *_window;
+}
- (void)handleURLEvent:(NSAppleEventDescriptor *)event
withReplyEvent: (NSAppleEventDescriptor *)replyEvent;
diff --git a/CopyMailto/AppDelegate.m b/CopyMailto/AppDelegate.m
index 281d151..2cf4fce 100644
--- a/CopyMailto/AppDelegate.m
+++ b/CopyMailto/AppDelegate.m
@@ -8,11 +8,6 @@
#import "AppDelegate.h"
-@interface AppDelegate ()
-
-@property (weak) IBOutlet NSWindow *window;
-@end
-
@implementation AppDelegate
- (void)applicationWillFinishLaunching:(NSNotification *)aNotification {
diff --git a/CopyMailto/Base.lproj/MainMenu.xib b/CopyMailto/Base.lproj/MainMenu.xib
index 41ae9e8..22f396a 100644
--- a/CopyMailto/Base.lproj/MainMenu.xib
+++ b/CopyMailto/Base.lproj/MainMenu.xib
@@ -2,7 +2,6 @@
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="13771" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" customObjectInstantitationMethod="direct">
<dependencies>
<deployment identifier="macosx"/>
- <development version="8000" identifier="xcode"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="13771"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
@@ -13,10 +12,10 @@
</connections>
</customObject>
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
- <customObject id="-3" userLabel="Application"/>
+ <customObject id="-3" userLabel="Application" customClass="NSObject"/>
<customObject id="Voe-Tx-rLC" customClass="AppDelegate">
<connections>
- <outlet property="window" destination="QvC-M9-y7g" id="gIp-Ho-8D9"/>
+ <outlet property="_window" destination="QvC-M9-y7g" id="Hng-bF-TGq"/>
</connections>
</customObject>
<customObject id="YLy-65-1bz" customClass="NSFontManager"/>