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: Rich Morin <email@hidden>
- Date: Wed, 12 Feb 2003 00:34:29 -0800
Thanks for Brock and Scott for the clues. As it happens, I managed to
come to approximately the same conclusions by hacking around. My
browser:willDisplayCell:atRow:column: currently calls only
pathToColumn
setLeaf:
setStringValue:
I also came to the conclusion (after browsing SimpleBrowser :-) that
I needed to set up a target action, as described by Brock. I've tried
to do that, but am getting no response to my clicks. Unfortunately, as
the code is in Perl, youall may not be able to help.
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 {
my ($self, $browser) = @_;
NSLog("browserFSgl");
return($self);
}
If this were doing what I expect, it would print "browserFSgl" on the
log every time I clicked a line in the named NSBrowser. It doesn't,
so I probably have a CamelBones misunderstanding...
-r
P.S. The rest of my browser now seems to be working just fine.
--
email: email@hidden; phone: +1 650-873-7841
http://www.cfcl.com/rdm - my home page, resume, etc.
http://www.cfcl.com/Meta - The FreeBSD Browser, Meta Project, etc.
http://www.ptf.com/dossier - Prime Time Freeware's DOSSIER series
http://www.ptf.com/tdc - Prime Time Freeware's Darwin Collection
_______________________________________________
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.