• 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: NSTableView questions (take 2)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView questions (take 2)


  • Subject: Re: NSTableView questions (take 2)
  • From: Matthew Weinstein <email@hidden>
  • Date: Tue, 2 Feb 2010 11:03:13 -0800

Problem somewhat solved. Landed up subclassing nstableview and overriding mouseDown:
Works well (at least on my machine).


On Feb 2, 2010, at 9:08 AM, Corbin Dunn wrote:

Table b should be set to setAllowsMultipleSelection:NO. However, despite that, you can programmatically change the selection yourself with -setSelectedRowIndexes:byExtendingSelection: when the selection in Table A changes.

--corbin

I have 2 tables that basically have a many to many relationship. If I click on table A I want multiple values of table B to be selected; but I click on table B I want to make sure I can't select multiple values

On Feb 2, 2010, at 8:53 AM, Corbin Dunn wrote:


On Feb 2, 2010, at 8:32 AM, Matthew Weinstein wrote:

Still trying to find a way to turn off setAllowsMultipleSelection just as the table becomes the responder. Is there some way of anticipating this, a "willbecomefirstresponder" kind of a notification?

What are you really trying to do? Or, in other words, what is the goal with doing this?


--corbin



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSTableView questions (take 2) (From: Matthew Weinstein <email@hidden>)
 >Re: NSTableView questions (take 2) (From: Corbin Dunn <email@hidden>)
 >Re: NSTableView questions (take 2) (From: Corbin Dunn <email@hidden>)

  • Prev by Date: Custom Field Editor Problem
  • Next by Date: Re: Arbitrary Attributes affect text layout
  • Previous by thread: Re: NSTableView questions (take 2)
  • Next by thread: Opening dual NSStreams synchronously
  • Index(es):
    • Date
    • Thread