• 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
NSArrayController observing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSArrayController observing


  • Subject: NSArrayController observing
  • From: Kurt Marek <email@hidden>
  • Date: Fri, 5 Dec 2003 20:01:06 -0800

I have an NSArrayController (blocksArrayController) with it's content
set to selection.blocksArray on another NSArrayController
(itemArrayController). The NSColumns in blocksTableView are bound to
blocksArrayController. The problem is the table doesn't update when I
use addObject on blocksArray:

[blocksArray addObject:newBlock];

itemArrayController is being observed by it's own NSTableView which
immediately shows the newly added 'newBlock'. If I change the selection
of itemArrayController (through it bound NSTableView) and then select
the newly added item again, I can eventually get the blocksTableView to
display correctly for the newly added 'newBlock'.

Any ideas?

Kurt
_______________________________________________
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: NSArrayController observing
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Writing my own input method
  • Next by Date: Re: NSArrayController observing
  • Previous by thread: Re: Writing my own input method
  • Next by thread: Re: NSArrayController observing
  • Index(es):
    • Date
    • Thread