Re: Programmatically selecting a cell in a NSBrowser
Re: Programmatically selecting a cell in a NSBrowser
- Subject: Re: Programmatically selecting a cell in a NSBrowser
- From: Andy Lee <email@hidden>
- Date: Sat, 15 Oct 2005 09:09:23 -0400
Sorry, I sent that with slightly garbled comments. Here it is,
cleaned up:
- (IBAction)myBrowserAction:(id)sender
{
// Skip this part if there is a multiple selection (if your
browser doesn't
// allow multiple selections, this is not an issue).
if (![[sender selectedCell] isLeaf])
{
// Do either [sender setPath:] or [sender
selectRow:inColumn:].
}
// Continue responding to the user action.
}
But again, this is deviant behavior for NSBrowsers.
--Andy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden