• 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: NSTable: Notification on selection of already selected row.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTable: Notification on selection of already selected row.


  • Subject: Re: NSTable: Notification on selection of already selected row.
  • From: Eric Forget <email@hidden>
  • Date: Wed, 01 Dec 2004 15:24:46 -0500

Hi Danny,

There is a few possibilities. It depends on what you are trying to do.

1) From your delegate implement either:

- (BOOL)tableView:(NSTableView *)aTableView shouldSelectRow:(int)rowIndex

- (void)tableViewSelectionIsChanging:(NSNotification *)aNotification


2) In a NSTableView subclass, override:

- (void)mouseDown:(NSEvent *)theEvent

And call [self rowAtPoint:aPoint] to obtain the clicked row. Do not forget
to call [super mouseDown: theEvent].


3) Maybe another solution, which is best suited for your need, if we just
know what you are trying to do.

Éric

>
> Just a quickie...
>
> Anyone know how I can get notified (or anything) when a row gets
> clicked in an NSTable (or NSOutlineView) - wait for it - when it's
> already selected!  The class seems to adopt the attitude: "Well hell
> I'm already selected so what does he need to know for."
>
> ... and before you start, yes I do have a good reason to need this and
> I really don't think it's counter to Apples UI guidelines ;-)
>
> All the best, and many thanks in advance,
>
> Danny
>
>
> BTW, a solution without resorting to mouse coords would be nice.


___________________________________________________________________

 Eric Forget                       Cafederic
 email@hidden             <http://www.cafederic.com/>



 _______________________________________________
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: NSTable: Notification on selection of already selected row.
      • From: "Douglas A. Welton" <email@hidden>
References: 
 >NSTable: Notification on selection of already selected row. (From: Danny Frey <email@hidden>)

  • Prev by Date: Re: mouseDown & mouseDragged - Cannot select multiple cells
  • Next by Date: Re: Totally confused: NSObject not init'ing
  • Previous by thread: Re: NSTable: Notification on selection of already selected row.
  • Next by thread: Re: NSTable: Notification on selection of already selected row.
  • Index(es):
    • Date
    • Thread