• 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: NSTableView / NSArrayController Drawing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTableView / NSArrayController Drawing


  • Subject: Re: NSTableView / NSArrayController Drawing
  • From: Ken Thomases <email@hidden>
  • Date: Fri, 27 Jun 2008 19:21:26 -0500

On Jun 27, 2008, at 12:16 PM, Murray Bookchin wrote:

Thanks for your reply Ken,

You're welcome.

The way I'm modifying the content array is:
[myArrayController addObject:someDictionary];

And that is certainly using KVC, probably through - mutableArrayValueForKey:, to pass the modification on to your model. Therefore, everything I said in my previous message holds. And the solution to your performance problem is the same.


However, I suspect you're calling the above ([myArrayController addObject:someDictionary]) in a way that is ill-advised. If you're writing the implementation for a coordinating controller (search the docs for what that term means), then that controller should direct the model to change itself. The resultant model change notifications will then cause updates to any observers, including your mediating controller (myArrayController) and the views bound to it. Your coordinating controller should not effect model changes by calling one of the mediating controllers.

Cheers,
Ken
_______________________________________________

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


References: 
 >NSTableView / NSArrayController Drawing (From: "Murray Bookchin" <email@hidden>)
 >Re: NSTableView / NSArrayController Drawing (From: Ken Thomases <email@hidden>)
 >Re: NSTableView / NSArrayController Drawing (From: "Murray Bookchin" <email@hidden>)

  • Prev by Date: Re: Losing some event
  • Next by Date: Re: Working with Notifications and NSFileHandle
  • Previous by thread: Re: NSTableView / NSArrayController Drawing
  • Next by thread: noob questions regarding KVC accessors for a mutable array property
  • Index(es):
    • Date
    • Thread