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

Re: NSArrayController sorting


  • Subject: Re: NSArrayController sorting
  • From: Greg Herlihy <email@hidden>
  • Date: Thu, 20 Apr 2006 15:19:48 -0700
  • Thread-topic: NSArrayController sorting

Are the sort descriptors of the table bound to the sort descriptors of the
NSArrayController?

Greg


On 4/20/06 3:06 PM, "Guy Meyer" <email@hidden> wrote:

> 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


 _______________________________________________
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: Guy Meyer <email@hidden>
References: 
 >NSArrayController sorting (From: Guy Meyer <email@hidden>)

  • Prev by Date: Re: Time creation and storage
  • Next by Date: Re: Weird behavior when adding subview
  • Previous by thread: NSArrayController sorting
  • Next by thread: Re: NSArrayController sorting
  • Index(es):
    • Date
    • Thread