• 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: NSManagedObjectContext's undoManager is nil on macOS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSManagedObjectContext's undoManager is nil on macOS


  • Subject: Re: NSManagedObjectContext's undoManager is nil on macOS
  • From: Jeff Nadeau <email@hidden>
  • Date: Thu, 06 Sep 2018 12:56:32 -0700

This behavior changed in 10.12  for applications linked against that SDK or
later. It’s listed in the “Behavioral changes” section of the Core Data release
notes for that year:
https://developer.apple.com/library/archive/releasenotes/General/WhatNewCoreData2016/ReleaseNotes.html#//apple_ref/doc/uid/TP40017342-CH1-DontLinkElementID_10

<https://developer.apple.com/library/archive/releasenotes/General/WhatNewCoreData2016/ReleaseNotes.html#//apple_ref/doc/uid/TP40017342-CH1-DontLinkElementID_10>

There's a documentation bug to correct the information on the
NSManagedObjectContext class doc. I’ll give it a little bump.

Going forward, you can set the undoManager property with your own NSUndoManager
after you’ve initialized the context.

- Jeff

> On Sep 5, 2018, at 7:33 PM, Dave Fernandes <email@hidden> wrote:
>
> The docs say:
> "In macOS, a context provides an undo manager by default; on iOS, the undo
> manager is nil by default.”
>
> However, I am finding on macOS 10.13.6, the undoManager is always nil when
> creating a MOC. Is this new behavior expected for High Sierra, or is it a bug?
> _______________________________________________
>
> 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

_______________________________________________

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: NSManagedObjectContext's undoManager is nil on macOS
      • From: Rick Mann <email@hidden>
    • Re: NSManagedObjectContext's undoManager is nil on macOS
      • From: Dave Fernandes <email@hidden>
References: 
 >NSManagedObjectContext's undoManager is nil on macOS (From: Dave Fernandes <email@hidden>)

  • Prev by Date: Re: How to clear macOS app bundle cache
  • Next by Date: Re: NSManagedObjectContext's undoManager is nil on macOS
  • Previous by thread: NSManagedObjectContext's undoManager is nil on macOS
  • Next by thread: Re: NSManagedObjectContext's undoManager is nil on macOS
  • Index(es):
    • Date
    • Thread