NSArrayController and Auto Rearrange Content
NSArrayController and Auto Rearrange Content
- Subject: NSArrayController and Auto Rearrange Content
- From: Ashley Clark <email@hidden>
- Date: Fri, 31 Oct 2008 15:17:21 -0500
I have a subclass of NSTableView that I use that allows the use of the
return key during a field edit to move to the next row and begin
editing. This works fine _unless_ the field I'm editing happens to be
one that NSArrayController is observing and thus causes a
rearrangeObjects call. When this happens my table view loses focus and
its' textDidEndEditing: method is never called.
This happens even if the field in question is no longer the primary
sort criteria. Turning off the auto rearrange content support of
NSArrayController fixes it and calls my subclasses textDidEndEditing:
method.
Has anyone else seen this and found a way to keep the focus on the
table view after its' contents are rearranged like this?
Ashley
_______________________________________________
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