changeset 97206:03666fbbecf2

(EmacsApp -application:openFiles:): GNUStep does not define NSApplicationDelegateReplySuccess. (EmacsView -converstationIdentifier): Use long instead of NSInteger for GNUStep, since it doesn't have NSInteger.
author Chong Yidong <cyd@stupidchicken.com>
date Fri, 01 Aug 2008 16:07:49 +0000
parents 69be58201e63
children 435f2c675641
files src/nsterm.m
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/nsterm.m	Fri Aug 01 16:07:14 2008 +0000
+++ b/src/nsterm.m	Fri Aug 01 16:07:49 2008 +0000
@@ -4132,7 +4132,13 @@
   NSString *file;
   while ((file = [files nextObject]) != nil)
     [ns_pending_files addObject: file];
+
+#ifdef NS_IMPL_GNUSTEP
+  [self replyToOpenOrPrint: 0];
+#else
   [self replyToOpenOrPrint: NSApplicationDelegateReplySuccess];
+#endif /* NS_IMPL_GNUSTEP */
+
 }
 
 /* TODO: these may help w/IO switching btwn terminal and NSApp */
@@ -4639,10 +4645,17 @@
   return rect;
 }
 
+#ifdef NS_IMPL_GNUSTEP
+- (long)conversationIdentifier
+{
+  return (long)self;
+}
+#else
 - (NSInteger)conversationIdentifier
 {
   return (NSInteger)self;
 }
+#endif
 
 /* TODO: below here not yet implemented correctly, but may not be needed */