• 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: Clearing Browser Selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Clearing Browser Selection


  • Subject: Re: Clearing Browser Selection
  • From: Lloyd Sargent <email@hidden>
  • Date: Wed, 5 Sep 2001 13:43:43 -0500

For those who missed it (for some reason we had e-mail forwarding problems for the last 24 hours) I did in fact solve this and it was, in fact, my bone-headed forgetfulness to enable the empty selection.

Thanks all who responded!

Cheers,

Lloyd

On Wednesday, September 5, 2001, at 11:42 AM, Erik M. Buck wrote:

Browsers can be configured to allow empty selection or to require that at
least one item is selected. Have you tried enabling empty selection ?

See - (NSMatrix *)matrixInColumn:(int)column

See NSMatrix
setAllowsEmptySelection:

- (void)setAllowsEmptySelection:(BOOL)flag

If flag is YES, then the receiver will allow one or zero cells to be
selected. If flag is NO, then the receiver will allow one and only one cell
(not zero cells) to be selected. This setting has effect only in the
NSRadioModeMatrix selection mode.

See

deselectAllCells

- (void)deselectAllCells

Deselects all cells in the receiver and, if necessary, redisplays the
receiver. If the selection mode is NSRadioModeMatrix and empty selection is
not allowed, this method does nothing.
See Also: - allowsEmptySelection, - mode, - selectAll:


----- Original Message -----
From: "Lloyd Sargent" <email@hidden>
To: "Cocoa Development" <email@hidden>
Sent: Wednesday, September 05, 2001 8:42 AM
Subject: Re: Clearing Browser Selection


Try [packetBrowser setLastColumn:0]. This should at least
unload all the columns except the first one. I'm not sure if
it'll clear the selection all the way. You could also try
[packetBrowser loadColumnZero], and make sure your delegate says
that there are no items in any row except row 0.

Well, this is not exactly what I'm looking for. I would like to clear
ALL of the columns...

I find it irritating that the browser code automatically selects row
zero without going through the delegate. Is this intentional behaviour
or a "bug"?

Cheers,

Lloyd
---
Canna Software Development
"This email was created using 100% recycled electrons"
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


References: 
 >Re: Clearing Browser Selection (From: "Erik M. Buck" <email@hidden>)

  • Prev by Date: Re: address of method in a class instance
  • Next by Date: Re: How to add sheets?
  • Previous by thread: Re: Clearing Browser Selection
  • Next by thread: QT / Cocoa (was Re: Another controversial question)
  • Index(es):
    • Date
    • Thread