Re-wrapping cells in an NSMatrix with bindings
Re-wrapping cells in an NSMatrix with bindings
- Subject: Re-wrapping cells in an NSMatrix with bindings
- From: "Lawrence Sanbourne" <email@hidden>
- Date: Thu, 27 Apr 2006 17:05:27 -0500
Hello,
I'm developing an application with UI similar to iPhoto. I'm using an
NSMatrix subclass to display the photos (in this case, icons). The
matrix is bound to an array controller's arrangedObjects. When the
window is resized (or the view otherwise changes size), the matrix
needs to gain or lose columns, scaling accordingly, and then rewrap
the displayed objects.
I've gotten it to gain and lose columns and scale properly. The
problem is that I'm currently doing the rewrapping by calling
-rearrangeObjects on the array controller, which is causing the
matrix's enclosing scroll view to scroll to the top and the selection
to be restored to the first object.
What would be a better way of doing this that would still play nicely
with bindings?
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