• 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: Newbie question re: NSArrayController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie question re: NSArrayController


  • Subject: Re: Newbie question re: NSArrayController
  • From: Allan Odgaard <email@hidden>
  • Date: Mon, 19 Apr 2004 08:01:19 +0200

On 19. Apr 2004, at 6:53, Glenn Zelniker wrote:

[...] But how can I actually get to the array controller and override its delete method?

I would instead suggest that you bind the contentArray of the array controller to a key in your NSDocument subclass. That way all changes done by the array controller can be easily monitored by your class by either implementing the "to-many" (also called "mutable array primitives") accessor methods or adding yourself as observer of the (mutable) array potentially provided as ivar.

See <http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ ObjC_classic/Protocols/NSKeyValueCoding.html#//apple_ref/doc/uid/ 20000471/BABJFEAE> for details.






** Cocoa FAQ: <http://www.alastairs-place.net/cocoa/faq.txt> **
_______________________________________________
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.


References: 
 >Newbie question re: NSArrayController (From: Glenn Zelniker <email@hidden>)

  • Prev by Date: NSSearchField alternative for 10.2.x?
  • Next by Date: Re: Newbie question re: NSArrayController
  • Previous by thread: Re: Newbie question re: NSArrayController
  • Next by thread: Re: Newbie question re: NSArrayController
  • Index(es):
    • Date
    • Thread