Skip to content

Commit 93acb33

Browse files
committed
Formatting fixes etc. for 1.0.
1 parent feeb2df commit 93acb33

File tree

4 files changed

+7
-15
lines changed

4 files changed

+7
-15
lines changed

Example/NotesExample-iOS/NoteEditingViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ extension NoteEditingViewController: UIPickerViewDelegate {
166166
let pickerItems: [String]
167167

168168
init(authorBox: Box<Author>) {
169-
self.authors = authorBox.all.sorted(by: { $0.name < $1.name })
169+
self.authors = authorBox.all().sorted(by: { $0.name < $1.name })
170170
self.pickerItems = authors
171171
.map { $0.name }
172172
.prepending("(None)")

Example/NotesExample-macOS/AppDelegate.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ class AppDelegate: NSObject, NSApplicationDelegate {
3737
logger.append("\(noteBox.all().readableDescription)\n")
3838

3939
logger.append("Reading notes containing 'writing':")
40-
let allWritingNotes = noteBox.query { Note.text.contains("writing") }.build().find()
40+
let allWritingNotes = noteBox.query { Note.text.contains("writing") }.build().all()
4141
logger.append("\(allWritingNotes.readableDescription)\n")
4242

4343
logger.append("Reading notes containing 'writing' by Peter Brett:")
44-
let peterBrettsWritingNotes = noteBox.query { Note.text.contains("writing") && Note.author == peterBrett.id }.build().find()
44+
let peterBrettsWritingNotes = noteBox.query { Note.text.contains("writing") && Note.author == peterBrett.id }.build().all()
4545
logger.append("\(peterBrettsWritingNotes.readableDescription)\n")
4646

4747
logger.append("Looking into Peter Brett's current object state again ...")

Example/NotesExample.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

Lines changed: 0 additions & 8 deletions
This file was deleted.

Example/model-NotesExample-macOS.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"_note1" : "KEEP THIS FILE! Check it into a version control system (VCS) like git.",
3-
"_note2" : "ObjectBox manages crucial IDs for your object model. See docs for details.",
4-
"_note3" : "If you have VCS merge conflicts, you must resolve them according to ObjectBox docs.",
5-
"entities" : [
2+
"_note1": "KEEP THIS FILE! Check it into a version control system (VCS) like git.",
3+
"_note2": "ObjectBox manages crucial IDs for your object model. See docs for details.",
4+
"_note3": "If you have VCS merge conflicts, you must resolve them according to ObjectBox docs.",
5+
"entities": [
66
{
77
"id": "1:712683617673955584",
88
"lastPropertyId": "2:5025387500910526208",

0 commit comments

Comments
 (0)