• 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: Designing for multitudinous objects
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Designing for multitudinous objects


  • Subject: Re: Designing for multitudinous objects
  • From: mmalcolm crawford <email@hidden>
  • Date: Thu, 29 Jan 2004 10:35:20 -0800

On Jan 29, 2004, at 8:42 AM, Erez Anzel wrote:

In a nutshell, I could have around 100,000 objects which the user imports/selects/edits/whatever, all in one command. Currently each object broadcasts a notification when it is changed, and each window controller is an observer.

It's quite possible that a redesign may greatly ease the situation. Why do all these objects have to send notifications to the controller? Is there no way that the controller can be notified of an event, and it simply messages the objects directly?

If the "notifications" have to be sent from the objects, and you're running on Mac OS X 10.3, you might consider using key-value observing, which may be more efficient -- and more flexible.
<http://developer.apple.com/documentation/Cocoa/Conceptual/ KeyValueObserving/index.html>

mmalc
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Designing for multitudinous objects
      • From: Erez Anzel <email@hidden>
References: 
 >Designing for multitudinous objects (From: Erez Anzel <email@hidden>)

  • Prev by Date: Re: How to trap app crashes
  • Next by Date: NSTableHeaderView background
  • Previous by thread: Designing for multitudinous objects
  • Next by thread: Re: Designing for multitudinous objects
  • Index(es):
    • Date
    • Thread