• 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: NSBrowser clearing (pt.2)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSBrowser clearing (pt.2)


  • Subject: Re: NSBrowser clearing (pt.2)
  • From: Eric Ridge <email@hidden>
  • Date: Mon, 21 Jan 2002 18:04:50 -0500

Hi everybody,

I'm sorry for bothering you about this question of mine, but I can't go
on...As you know, I was just trying to clear the selection an user does
into an NSBrowser, in other words I was trying to un-highlight every
single cell.
Here is what I do:

I haven't yet used NSBrowser, but I use NSTableView and NSOutlineView a lot (too much!), so I suspect it's very similiar.

Try:
for (i=0; i<numColumns; i++) {
[browser selectRow:-1 inColumn:i]
}

With NSTable.OutlineView, selecting row -1 deselects everything.

eric


for(index=0;index<count;index++)
{
cell=[array_of_source_cells objectAtIndex:index];
[cell reset]; // "cell" is a previously defined id
}

But nothing is deselected... why ? What is the mistake I'm stuck into?
Mahy thanks to everyone of you for your neverending kindness to newbies
like me.

--
Riccardo Santato
www.riccardosantato.com
_______________________________________________
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.


  • Follow-Ups:
    • Calling BSD from Cocoa and/or CFM?
      • From: Zack Morris <email@hidden>
References: 
 >NSBrowser clearing (pt.2) (From: Riccardo Santato <email@hidden>)

  • Prev by Date: Re: Initializing an Array
  • Next by Date: Is dataWithContentsOfURL: thread-safe?
  • Previous by thread: NSBrowser clearing (pt.2)
  • Next by thread: Calling BSD from Cocoa and/or CFM?
  • Index(es):
    • Date
    • Thread