• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Displaying a particular path in an NSBrowser?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Displaying a particular path in an NSBrowser? (From: Rich Morin <email@hidden>)

  • Prev by Date: [ANN] Article on visualization with Cocoa and VTK
  • Next by Date: pdf forms without Adobe Acrobat -also posted on macosxdev
  • Previous by thread: Re: Displaying a particular path in an NSBrowser?
  • Next by thread: Re: Displaying a particular path in an NSBrowser?
  • Index(es):
    • Date
    • Thread