• 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 sorting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSArrayController sorting


  • Subject: NSArrayController sorting
  • From: Guy Meyer <email@hidden>
  • Date: Fri, 21 Apr 2006 01:06:49 +0300

Hi

My NSTableView is bound to an NSArrayController which is bound to a core data context.

The table is sorted via NSSortDescriptors attached programatically.

When I insert new entity to the core data context the table is updated, however the new row is not sorted.

The next time I insert a new entity the previous row which was not sorted properly is getting sorted and the new entity is not sorted as previously and so on ...

To sum it up it looks like the NSArrayController method "rearrangeObjects" is called just before the new entity is inserted when it should be called after the entity had been inserted before the UI is getting updated.

Any insight will be appreciated.

Guy
_______________________________________________
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


  • Follow-Ups:
    • Re: NSArrayController sorting
      • From: Greg Herlihy <email@hidden>
  • Prev by Date: Re: Cheap replacement for bezierPathWithOvalInRect fill?
  • Next by Date: [Moderator] EOT Re: Getting the info from the Apple documentation -- Re: New Cocoa w/ CoreData book
  • Previous by thread: how do I get notified when a key is pressed?
  • Next by thread: Re: NSArrayController sorting
  • Index(es):
    • Date
    • Thread