• 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: NSDocument updateChangeCount when using Bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDocument updateChangeCount when using Bindings


  • Subject: Re: NSDocument updateChangeCount when using Bindings
  • From: Markus Spoettl <email@hidden>
  • Date: Thu, 6 Jan 2011 23:35:30 -0500

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 (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: 
 >NSDocument updateChangeCount when using Bindings (From: Kevin Bracey <email@hidden>)

  • Prev by Date: Thumbs Lists
  • Next by Date: Re: Thumbs Lists
  • Previous by thread: NSDocument updateChangeCount when using Bindings
  • Next by thread: Re: NSDocument updateChangeCount when using Bindings
  • Index(es):
    • Date
    • Thread