• 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: Jacob Lukas <email@hidden>
  • Date: Thu, 30 Sep 2004 23:18:08 -0700

On Sep 30, 2004, at 8:05 PM, Scott Stevenson wrote:
On Sep 30, 2004, at 6:09 PM, Jacob Lukas wrote:
Yeah, good point. Maybe overriding "arrangeObjects:" (without the "d") would work better in that case.

I think you'd have to override a lot of functions:
- addObject:
- addObjects:
- insertObject:atArrangedObjectIndex:
- insertObjects:atArrangedObjectIndexes:
- removeObjectAtArrangedObjectIndex:
- removeObjectsAtArrangedObjectIndexes:
- removeObject:
– removeObjects:

I'm sure some of them use each other, but you'd have to test and see. I think it would be easier to do it the way I first proposed.

Yes, I believe you're right.

However, easiet of all is to simply turn on auto notifications for arrangedObjects (which you have to do anyway) and make the custom key dependent on arrangedObjects.

If you read the original message, that is what was first attempted. It doesn't work. It may be a bug, or it may be documented somewhere, but the way I proposed does work and is not that much harder.

Jacob

<x-tad-smaller>PowerMac G4 Digital Audio 466MHz, ATI Radeon 9000 128MB VRAM, 896MB RAM, Mac OS 10.3.5... yes I know, it's time to get a new computer
</x-tad-smaller>
 _______________________________________________
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

References: 
 >Boggled By Bindings (From: Patrick Machielse <email@hidden>)
 >Re: Boggled By Bindings (From: Jacob Lukas <email@hidden>)
 >Re: Boggled By Bindings (From: Scott Stevenson <email@hidden>)
 >Re: Boggled By Bindings (From: Jacob Lukas <email@hidden>)
 >Re: Boggled By Bindings (From: Scott Stevenson <email@hidden>)
 >Re: Boggled By Bindings (From: Jacob Lukas <email@hidden>)
 >Re: Boggled By Bindings (From: Scott Stevenson <email@hidden>)

  • Prev by Date: Re: Boggled By Bindings
  • Previous by thread: Re: Boggled By Bindings
  • Next by thread: Re: Boggled By Bindings
  • Index(es):
    • Date
    • Thread