<!--
{
  "documentType" : "article",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/nsmanagedobjectcontext-deprecated-symbols",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Deprecated symbols"
}
-->

# Deprecated symbols

Review unsupported symbols and their replacements.

## Topics

### Deprecated type methods

[`class func new() -> Self`](/documentation/CoreData/NSManagedObjectContext/new())

### Deprecated instance methods

[`init(concurrencyType: NSManagedObjectContextConcurrencyType)`](/documentation/CoreData/NSManagedObjectContext/init(concurrencyType:))

Creates a context that uses the specified concurrency type.

[`convenience init()`](/documentation/CoreData/NSManagedObjectContext/init())

[`func lock()`](/documentation/CoreData/NSManagedObjectContext/lock())

Attempts to acquire a lock on the context.

[`func tryLock() -> Bool`](/documentation/CoreData/NSManagedObjectContext/tryLock())

Attempts to acquire a lock.

[`func unlock()`](/documentation/CoreData/NSManagedObjectContext/unlock())

Relinquishes a previously acquired lock.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)