• 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
Changing NSMatrix selection behavior without breaking bindings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changing NSMatrix selection behavior without breaking bindings?


  • Subject: Changing NSMatrix selection behavior without breaking bindings?
  • From: "Lawrence Sanbourne" <email@hidden>
  • Date: Tue, 18 Apr 2006 13:35:31 -0500

Hello,

Here's a more succinct rephrasing of a question I asked recently. (It
didn't get any responses the first time around.)

In my app, I need custom selection behavior and drag-and-drop support
for cells in an NSMatrix. (The NSMatrix is bound to an
NSArrayController.) I did this by overriding -mouseDown and calling
selectCellAtRow:column: and setSelectionFrom:to:anchor:highlight:.

The problem is that this isn't updating my controller's
selectedObjects. Apple's "Troubleshooting Cocoa Bindings" document
says this is expected behavior because I should be updating the
controller, not the view. But in my case I need *custom* view
behavior, so I think I'm right in updating the view.

Does anyone know how to fix this? Please help!

Larry
 _______________________________________________
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

  • Prev by Date: Re: Interface Builder Date Localization
  • Next by Date: Re: Interface Builder Date Localization
  • Previous by thread: Re: What happens to my German strings? [SOLVED]
  • Next by thread: Fwd: CFUserNotificationDisplayAlert return value error?
  • Index(es):
    • Date
    • Thread