Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSArrayController and Auto Rearrange Content



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.