• 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: Boggled By Bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Boggled By Bindings


  • Subject: Re: Boggled By Bindings
  • From: Patrick Machielse <email@hidden>
  • Date: Fri, 01 Oct 2004 13:35:20 +0200

op 01-10-2004 02:46 schreef Scott Stevenson

>
> On Sep 30, 2004, at 4:26 PM, Jacob Lukas wrote:
>
>>> You could probably do the same by just overriding -arrangedObjects
>>> and doing the manual change notification in there.
>>
>> I believe -arrangedObjects is called when another object wants the
>> arranged objects, not when the arranged objects are changed. I could
>> be wrong, though.
>
> Yeah, good point. Maybe overriding "arrangeObjects:" (without the "d")
> would work better in that case.

No, that is not enough because arrangeObjects: isn't always called when the
arrangedObjects change...

For instance, if the array controller's 'remove:' action is triggered, the
controller manipulates the content array and the arrangedObjects array
directly (it does not 'set' the arrangedObjects' array through a call to
arrangeObjects:)

I found this out by experimentation and I believe his may be an
optimisation. I don't think this is documented.

Patrick
---
Hieper Software

w: www.hieper.nl
e: 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

  • Prev by Date: Re: NSTextField w/ NSDateFormatter contains something?
  • Next by Date: Re: Boggled By Bindings
  • Previous by thread: Re: Boggled By Bindings
  • Next by thread: Re: Boggled By Bindings
  • Index(es):
    • Date
    • Thread