Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to completely delete entity description in the Core Data Model editor in Xcode 4.4.1

How to completely delete entity description in the Core Data Model editor in Xcode 4.4.1 ? There is only "Add entity" button exist in the user interface.

like image 299
user261706 Avatar asked Aug 14 '12 10:08

user261706


People also ask

What is abstract entity in core data?

Specify that an entity is abstract if you will not create any instances of that entity. You typically make an entity abstract if you have a number of entities that all represent specializations of (inherit from) a common entity that should not itself be instantiated.

What is entity in core data in Swift?

An entity is represented by an instance of the NSEntityDescription class. This class provides access to a wide range of properties, such as its name, the data model it is defined in, and the name of the class the entity is represented by.

What is entity in iOS?

An element of a RealityKit scene to which you attach components that provide appearance and behavior characteristics for the entity. iOS 13.0+ iPadOS 13.0+ macOS 10.15+ Mac Catalyst 13.0+

How do I create a core data model?

Add a Core Data Model to an Existing ProjectChoose File > New > File and select the iOS platform tab. Scroll down to the Core Data section, select Data Model, and click Next. Name your model file, select its group and targets, and click Create.


2 Answers

  1. Highlight the Entity that you want to delete.
  2. Press the backspace (delete) key.
like image 135
Abizern Avatar answered Sep 21 '22 15:09

Abizern


In case it crashes when you try to delete it. Try this:

  1. right click on the .xcdatamodel file
  2. click "show in finder"
  3. right click and "show package contents"
  4. open file "contents" which is XML and delete the entity you don't want any more.
like image 34
Tung Fam Avatar answered Sep 19 '22 15:09

Tung Fam