Changing NSMatrix selection behavior without breaking bindings?
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