On Jan 6, 2011, at 9:01 PM, Kevin Bracey wrote: > After hours of searching I have to presume I'm doing something wrong or > missing something obvious, as no one else has this simple problem:-) > OS X 10.6.6 NSDocument Application. > > MyDocument has a > iVar = NSMutableArray *allScenes; > @property( retain ) NSMutableArray *allScenes; > @synthesize allScenes; > > In my nib I have a ArrayController bound to allScenes and it is hooked up to > a Table and and selected Fields, it is adding and editing my Scene Objects > great. > > I have these Saving and Loading from a Package using NSKeyArchiver, working > great. > > How do I get the [MyDocument updateChangeCount:NSChangeDone]; to be called > when I add or delete a allScenes object or edit one of there properties?
You could implement undo/redo which is something that will automatically trigger document change flags for you. If you have methods for adding/removing an objects from the array, you could add undo/redo actions there. Regards Markus -- __________________________________________ Markus Spoettl _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com