Re: Displaying a particular path in an NSBrowser?
Re: Displaying a particular path in an NSBrowser?
- Subject: Re: Displaying a particular path in an NSBrowser?
- From: Sherm Pendley <email@hidden>
- Date: Wed, 12 Feb 2003 07:25:25 -0500
On Wednesday, February 12, 2003, at 03:34 AM, Rich Morin wrote:
the code is in Perl, youall may not be able to help.
I can. ;-)
For your amusement, however, I'll describe it. In my new() method for
MyWindowController.pm, I have the code:
$self->{'Browser_F'}->setAction('browserFSgl:');
Lower down in the file, I have the code:
sub browserFSgl {
Rich, two questions about your code:
1. Are you exporting the correct method signature for your browserFSgl:
method? By default, methods are declared to the ObjC runtime as taking a
single object parameter, and returning an object. The default argument
is OK, so you'd only need to specify the return type, like this:
$OBJC_EXPORT{'browserFSgl:'} = {
'return' => 'v',
};
2. Are you also using setTarget: to tell the browser to what object it
should send the action message?
sherm--
If you listen to a UNIX shell, can you hear the C?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.