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

Re: NSArrayController not rearranging correctly


  • Subject: Re: NSArrayController not rearranging correctly
  • From: Markus Spoettl <email@hidden>
  • Date: Thu, 19 Jul 2012 08:22:11 +0200

On 7/19/12 2:15 AM, Quincey Morris wrote:
Oddly, the other operators
(e.g. NSGreaterThanOrEqualToPredicateOperatorType) work fine. You might find a
workaround using a combination of predicates using different operators.

I'd be delighted if someone told me it's all my fault. Can anyone point out
the error?

Maybe you're a *bit* at fault by designing your app around the assumption that
there's a single, coalesced KVO notification for any change to the array
controller.  There's really no API contract to that effect. You'd be better off
implementing something to prevent the expensive code from running too often.
(Then you'd be able to work around the apparent array controller bug by calling
'rearrangeObjects' manually.)

That doesn't sound right. The array controller is used by views directly, they bind to arrangedObjects (like in the example). Since when is it recommended to insert an intermediate object between table view and NSArrayController? Makes the whole binding idea rather useless, or am I missing something?

Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________

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

  • Follow-Ups:
    • Re: NSArrayController not rearranging correctly
      • From: Quincey Morris <email@hidden>
    • Re: NSArrayController not rearranging correctly
      • From: Quincey Morris <email@hidden>
References: 
 >NSArrayController not rearranging correctly (From: Markus Spoettl <email@hidden>)
 >Re: NSArrayController not rearranging correctly (From: Markus Spoettl <email@hidden>)
 >Re: NSArrayController not rearranging correctly (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: KVG generic enough?
  • Next by Date: Re: NSArrayController not rearranging correctly
  • Previous by thread: Re: NSArrayController not rearranging correctly
  • Next by thread: Re: NSArrayController not rearranging correctly
  • Index(es):
    • Date
    • Thread