Re: Newbie question re: NSArrayController
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.