• 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 -addObjects and undo
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSArrayController -addObjects and undo


  • Subject: NSArrayController -addObjects and undo
  • From: "email@hidden" <email@hidden>
  • Date: Mon, 9 Nov 2009 20:58:27 +0000

My Entry objects are an NSManagedObject subclass.

I create an NSArray of N Entries and add them to my array controller like so.
[self.arrayController addObjects:newEntries];


I am observing [self.arrayController arrangedObjects] and receive a single observation following the above call.

However, when I undo this operation I get N observations of [self.arrayController arrangedObjects].

Is this expected behaviour or am I screwing up on my KVO somewhere?
I have not changed the default undo manager grouping behaviour.

Running OS X 10.6

Regards

Jonathan Mitchell

Developer
http://www.mugginsoft.com






_______________________________________________

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


  • Follow-Ups:
    • Re: NSArrayController -addObjects and undo - [improved but still confused]
      • From: "email@hidden" <email@hidden>
  • Prev by Date: Re: iPhone: NSOperation and UITableVIews
  • Next by Date: [iPhone] EditableDetailView sample code
  • Previous by thread: Re: Trouble with initial position of NSScrollView
  • Next by thread: Re: NSArrayController -addObjects and undo - [improved but still confused]
  • Index(es):
    • Date
    • Thread