aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlan Third2018-09-26 22:21:37 +0100
committerAlan Third2018-09-28 20:23:46 +0100
commit9ad0f1d15c06eb07dfbd9bd3e3b8a0d747942152 (patch)
tree29496d17b5081465b8c5cd54c22e317867133ad4 /src
parent7946445962372c4255180af45cb7c857f1b0b5fa (diff)
downloademacs-9ad0f1d15c06eb07dfbd9bd3e3b8a0d747942152.tar.gz
emacs-9ad0f1d15c06eb07dfbd9bd3e3b8a0d747942152.zip
Fix deprecation warning
* src/nsterm.m (ns_term_init): Use writeToFile or writeToURL as required.
Diffstat (limited to 'src')
-rw-r--r--src/nsterm.m16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/nsterm.m b/src/nsterm.m
index 954020dcde9..d92d6c32448 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -5193,7 +5193,21 @@ ns_term_init (Lisp_Object display_name)
5193 alpha: 1.0] 5193 alpha: 1.0]
5194 forKey: [NSString stringWithUTF8String: name]]; 5194 forKey: [NSString stringWithUTF8String: name]];
5195 } 5195 }
5196 [cl writeToFile: nil]; 5196
5197 /* FIXME: Report any errors writing the color file below. */
5198#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101100
5199#if MAC_OS_X_VERSION_MIN_REQUIRED < 101100
5200 if ([cl respondsToSelector:@selector(writeToURL:error:)])
5201#endif
5202 [cl writeToURL:nil error:nil];
5203#if MAC_OS_X_VERSION_MIN_REQUIRED < 101100
5204 else
5205#endif
5206#endif /* MAC_OS_X_VERSION_MAX_ALLOWED >= 101100 */
5207#if MAC_OS_X_VERSION_MIN_REQUIRED < 101100 \
5208 || defined (NS_IMPL_GNUSTEP)
5209 [cl writeToFile: nil];
5210#endif
5197 } 5211 }
5198 } 5212 }
5199 5213