• 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
NSTableView: column selection selects rows?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView: column selection selects rows?


  • Subject: NSTableView: column selection selects rows?
  • From: Alexander Lamb <email@hidden>
  • Date: Thu, 1 Jun 2006 12:12:40 +0200

Hello,

I am implementing the following method in a subclass of NSTableView:

- (void)selectRowIndexes:(NSIndexSet *)indexes byExtendingSelection: (BOOL)extend

The idea is to handle myself the selection / deselection of rows.

Unfortunately, this method also gets called when I select a column (to reorder). My table is connected to an array controller in a CoreData application.

Is there a way to either:

a) know when it is a column being selected
b) prevent rows being selected when I click on a column (actually, the method is called twice for each click on a column)


Thanks,

Alex
--
Alexander Lamb
email@hidden



_______________________________________________
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: NSTableView: column selection selects rows?
      • From: Alexander Lamb <email@hidden>
  • Prev by Date: Re: Bindings/selecting row in tableview
  • Next by Date: kMDItemTextContent for an item's content - no alternative?
  • Previous by thread: Re: Writing NSString to a file
  • Next by thread: Re: NSTableView: column selection selects rows?
  • Index(es):
    • Date
    • Thread