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

Programmatically selecting a cell in a NSBrowser


  • Subject: Programmatically selecting a cell in a NSBrowser
  • From: Romain Champourlier <email@hidden>
  • Date: Sat, 15 Oct 2005 13:28:42 +0200

Hello,

I have a question about the NSBrowser class. I currently manage to fill it with data (through the use of the delegates' methods browser:numberOfRowsInColumn: and browser:willDisplayCell:atRow:column:). This works well, I'm fine.

Now I would like to make something more... My will is the following :
when the user click on a non-leaf cell, I would like the browser to automatically select a given row in the coming column. This row would be programmatically determined depending on the context. My problem is that I currently found no way to perform this selection...


The NSBrowser's method selectRow:inColumn: is relying on the delegate's browser:selectRow:inColumn method that I have to implement ! But I do not know how to perform the selection... I also tried to select the cell with the NSControl's selectCell: method and even with the NSMatrix's one, but nothing worked...

Do someone have a clear solution for my problem ?

Thanks a lot in advance.
_______________________________________________
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: Andy Lee <email@hidden>
  • Prev by Date: Re: Scheduling an application function/event
  • Next by Date: NSBezierPath clockwise?
  • Previous by thread: Re: [newbe] How to print window (no document based applocation)
  • Next by thread: Re: Programmatically selecting a cell in a NSBrowser
  • Index(es):
    • Date
    • Thread