• 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: "Live" support for aggregate functions (@min, @max, etc)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "Live" support for aggregate functions (@min, @max, etc)


  • Subject: Re: "Live" support for aggregate functions (@min, @max, etc)
  • From: "Shawn Erickson" <email@hidden>
  • Date: Fri, 25 May 2007 11:05:00 -0700

On 5/25/07, Timothy Wood <email@hidden> wrote:

I had occasion to use an @min aggregate function, but it seems to be only half implemented. In particular, I have an NSArrayController set up with an input content set and then a binding of email@hidden to a minimumMyKey on itself (so that I can do something fun in -setMinimumMyKey:).

   This works great as long as all I do is add and remove objects
from the input content set. But, if any of my objects *edit* their
value for "myKey" such that they become or resign minimum status,
nothing happens.  It seems that the controller isn't observing myKey
on its arrangedObjects, inexplicably.  And, of course my objects are
KVO compliant for the key in question.

   Please tell me this works and I'm just configuring it wrong :)
Failing that, I guess I'll have to implement it correctly myself.

I think you are hitting a issue related to my sorting / filter issue [1]... NSArrayControllers do "the right thing" for add and remove but not if the objects they are currently "arranging" change.

-Shawn

[1] <http://lists.apple.com/archives/cocoa-dev/2007/May/msg00908.html>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: "Live" support for aggregate functions (@min, @max, etc)
      • From: Timothy Wood <email@hidden>
References: 
 >"Live" support for aggregate functions (@min, @max, etc) (From: Timothy Wood <email@hidden>)

  • Prev by Date: "Orphaned" words not reported by NSString -boundingRectWithSize...
  • Next by Date: Re: "Orphaned" words not reported by NSString -boundingRectWithSize...
  • Previous by thread: "Live" support for aggregate functions (@min, @max, etc)
  • Next by thread: Re: "Live" support for aggregate functions (@min, @max, etc)
  • Index(es):
    • Date
    • Thread