diff options
author | Teddy Wing | 2018-09-05 18:06:41 +0200 |
---|---|---|
committer | Teddy Wing | 2018-09-05 18:09:56 +0200 |
commit | 3748d43501bc81d53a0e912c6db4070643052436 (patch) | |
tree | ab253c373725e353e23cc88476d7649ce8bc048b | |
parent | eae8538ad69274b3c2e3487e5a2561763106a8b7 (diff) | |
download | Copy-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.
-rw-r--r-- | CopyMailto.xcodeproj/xcuserdata/tw.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist | 5 | ||||
-rw-r--r-- | CopyMailto/AppDelegate.h | 4 | ||||
-rw-r--r-- | CopyMailto/AppDelegate.m | 5 | ||||
-rw-r--r-- | CopyMailto/Base.lproj/MainMenu.xib | 5 |
4 files changed, 10 insertions, 9 deletions
diff --git a/CopyMailto.xcodeproj/xcuserdata/tw.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/CopyMailto.xcodeproj/xcuserdata/tw.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist new file mode 100644 index 0000000..fe2b454 --- /dev/null +++ b/CopyMailto.xcodeproj/xcuserdata/tw.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<Bucket + type = "1" + version = "2.0"> +</Bucket> 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"/> |