• 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: Programmatically selecting a cell in a NSBrowser
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Programmatically selecting a cell in a NSBrowser
      • From: Romain Champourlier <email@hidden>
References: 
 >Programmatically selecting a cell in a NSBrowser (From: Romain Champourlier <email@hidden>)
 >Re: Programmatically selecting a cell in a NSBrowser (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: Programmatically selecting a cell in a NSBrowser
  • Next by Date: Re: Programmatically selecting a cell in a NSBrowser
  • Previous by thread: Re: Programmatically selecting a cell in a NSBrowser
  • Next by thread: Re: Programmatically selecting a cell in a NSBrowser
  • Index(es):
    • Date
    • Thread