bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSWorkspace bug


From: Enrico Sersale
Subject: NSWorkspace bug
Date: Thu, 27 Dec 2001 14:14:47 +0200 (EET)

After the new NSWorkspace implementation of the [performFileOperation:...]
and [selectFile:inFileViewerRootedAtPath:] methods, I've changed all the
GWorkspace's code to not inherit from NSWorkspace anymore. Now GWorkspace
is subclass of NSObject.

Then, I've written a little test-app to call these NSWorkspace methods and
to see if the corrispondent methods of GWorkspace are called.

Well, this doesn't seem to work because i get:

NSInvalidArgumentExeption: GSListener does not recognise
selectFile:inFileViewerRootedAtPath

and, then:

NSInvalidArgumentExeption: _FastMallocBuffer does not recognise
decodeValueOfObjCType:at:

#5  0x403abb36 in retDecoder (ctxt=0xbfffe71c) at NSConnection.m:1468
#6  0x4035acac in callframe_build_return (inv=0x83d1b30,
    type=0x8446a58 "C16@0:4@8@12\000"..., out_parameters=0 '\000',
    decoder=0x403ab920 <retDecoder>, ctxt=0xbfffe71c) at callframe.m:669
#7  0x403acbce in -[NSConnection(GNUstepExtensions)
forwardInvocation:forProxy:] (self=0x8224330, _cmd=0x404b06c0,
inv=0x83d1b30, object=0x85e1838)
    at NSConnection.m:1737
#8  0x403d204a in -[NSDistantObject forwardInvocation:] (self=0x85e1838,
    _cmd=0x811e738, anInvocation=0x83d1b30) at NSDistantObject.m:509
#9  0x4044e2ca in GSInvocationCallback (callback_data=0x404d0830,
    args=0xbfffe894) at GSFFCallInvocation.m:863
#10 0x40504ab9 in __vacall_r () at eval.c:41

It seems that NSWorkspace can't call a method of the app delegate if this
is not declared in NSApplication.h.

As a test, If I change, in NSWorkspace's
[selectFile:inFileViewerRootedAtPath:],

return [app selectFile: fullPath inFileViewerRootedAtPath: rootFullpath];

with any other method of NSApplication, ex.

[app application: self openTempFile: @"apath"];
return YES;

and implement this in GWorkspace, all works perfectly...





reply via email to

[Prev in Thread] Current Thread [Next in Thread]