• 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
NSArrayController and Auto Rearrange Content
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: NSSecureTextField and umlauts
  • Next by Date: Re: Detecting when NSComboBox text changed by list
  • Previous by thread: NSSecureTextField and umlauts
  • Next by thread: Number in NSString to int.
  • Index(es):
    • Date
    • Thread