• 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: Custom view, selection consistency with NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom view, selection consistency with NSTableView


  • Subject: Re: Custom view, selection consistency with NSTableView
  • From: Paul Szego <email@hidden>
  • Date: Sun, 17 Apr 2005 17:17:30 +1200


On 17/04/2005, at 3:25 PM, mmalcolm crawford wrote:


On Apr 16, 2005, at 7:56 PM, Paul Szego wrote:


I've a custom view that provides a graphical representation of objects from an NSArrayController. I also have the same data displayed in an NSTableView. I'm trying to implement selection via the custom view, in line with Apple's human interface guidelines.
For selection with mouse clicks most things are possible, but I cannot figure out how to easily implement shift-clicking using the additional model so that it co-operates with the NSTableView.



<http://homepage.mac.com/mmalc/CocoaExamples/controllers.html>

I assume you're referring to the GraphicsBinding example? If so, it's not quite what I'm after. I want to provide a contiguous selection, as my graphical layout does lend itself to the notion of ordering. So if you click on one object, and then shift-click on another it should make all objects in between selected also. The graphics binding example doesn't do this (I assume as the notion of ordering doesn't really apply here due to the layout of the dots). It shows what I'd expect command-click selection to do.


Any other ideas?

Thanks, Paul.

p.s. the simple scenario above isn't the problem - it's the more complex case in the original post.

p.p.s. leaving my bind: and unbind: methods to call the superclass implementation as in this example, combined with undo/redo, made my app crash. Instead I only allow bind: and unbind: to pass on to super if it's not for one of the bindings I'm implementing.

_______________________________________________
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: Custom view, selection consistency with NSTableView
      • From: mmalcolm crawford <email@hidden>
References: 
 >Custom view, selection consistency with NSTableView (From: Paul Szego <email@hidden>)
 >Re: Custom view, selection consistency with NSTableView (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: #define issues
  • Next by Date: Re: Custom view, selection consistency with NSTableView
  • Previous by thread: Re: Custom view, selection consistency with NSTableView
  • Next by thread: Re: Custom view, selection consistency with NSTableView
  • Index(es):
    • Date
    • Thread