Skip to content

Commit 07580d7

Browse files
committed
switched the struct and class generation options
1 parent a33d008 commit 07580d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SwiftyJSONAccelerator/UI/SJEditorViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class SJEditorViewController: NSViewController, NSTextViewDelegate {
123123
if object != nil {
124124

125125
let nsCodingState = self.enableNSCodingSupportCheckbox.state == 1 && (modelTypeSelectorSegment.selectedSegment == 1)
126-
let constructType = self.modelTypeSelectorSegment.selectedSegment == 0 ? ConstructType.ClassType : ConstructType.StructType
126+
let constructType = self.modelTypeSelectorSegment.selectedSegment == 0 ? ConstructType.StructType : ConstructType.ClassType
127127
let libraryType = self.librarySelector.indexOfSelectedItem == 0 ? JSONMappingLibrary.SwiftyJSON : JSONMappingLibrary.ObjectMapper
128128
let configuration = ModelGenerationConfiguration.init(
129129
filePath: filePath!.appending("/"),
@@ -160,7 +160,7 @@ class SJEditorViewController: NSViewController, NSTextViewDelegate {
160160
let notification = NSUserNotification()
161161
notification.title = "SwiftyJSONAccelerator"
162162
if completionState && fileCount > 0 {
163-
notification.subtitle = "Completed - \(fileCount) Generated."
163+
notification.subtitle = "Completed - \(fileCount) Files Generated"
164164
} else {
165165
notification.subtitle = "No files were generated, cannot model arrays inside arrays."
166166
}

0 commit comments

Comments
 (0)