Skip to content

Commit 1a8c9d2

Browse files
committed
README clarification
1 parent 2d040d2 commit 1a8c9d2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ cdqi Developers
7676

7777
This searches all subdirectories recursively until it finds a managed object model called `Developers.xcdatamodeld`. It then examines the _current version_ of this model and generates proxy classes for each `NSManagedObject`. By default, these proxy classes are placed in the same directory as the managed object model, side by side. `cdqi` has many options to change this behavior if desired, but in most cases the default is what you want. For more options, execute `cdqi --help`.
7878

79+
Note that when working with autogenerated Core Data classes, you should create your proxies with the `--public` flag, otherwise you will get compilation errors.
80+
7981
### Type Safety
8082

8183
CDQI supports type safety in filter expressions. In the expression `$0.languages.name`, the `name` attribute has been defined as a string in the Core Data model, so it can only be compared to strings. The following will not compile:
@@ -163,3 +165,4 @@ var projectQuery = managedObjectContext.from(Project.self)
163165
projectQuery = projectQuery.filter(any(project.languages.name == "Swift"))
164166
projectQuery = projectQuery.order(project.name)
165167
swiftProjectNames = projectQuery.array(project.name)
168+
```

0 commit comments

Comments
 (0)