]> git.eshelyaron.com Git - emacs.git/commitdiff
(EmacsApp -application:openFiles:): GNUStep does not
authorChong Yidong <cyd@stupidchicken.com>
Fri, 1 Aug 2008 16:07:49 +0000 (16:07 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Fri, 1 Aug 2008 16:07:49 +0000 (16:07 +0000)
define NSApplicationDelegateReplySuccess.
(EmacsView -converstationIdentifier): Use long instead of
NSInteger for GNUStep, since it doesn't have NSInteger.

src/nsterm.m

index a67a8e0c3b6472a446ec1d580d116596c511c79f..61fe21ba389fe9bbaaf4a0c2014e74369c2354d4 100644 (file)
@@ -4132,7 +4132,13 @@ fprintf (stderr, "res = %d\n", EQ (res, Qt)); /* FIXME */
   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 @@ if (NS_KEYLOG) NSLog (@"firstRectForCharRange request");
   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 */