Skip to content

Commit

Permalink
Update to latest Swift syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelhanneken committed Oct 9, 2018
1 parent abcaa75 commit d3ed159
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 11 deletions.
8 changes: 3 additions & 5 deletions Iconizer.xcodeproj/project.pbxproj
Expand Up @@ -256,7 +256,7 @@
TargetAttributes = {
8E3F8F641B23488F0096E9EC = {
CreatedOnToolsVersion = 6.3.2;
LastSwiftMigration = 0900;
LastSwiftMigration = 1000;
SystemCapabilities = {
com.apple.Sandbox = {
enabled = 0;
Expand Down Expand Up @@ -486,8 +486,7 @@
OTHER_LDFLAGS = "-Wl,-rpath,@loader_path/../Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = io.raphaelhanneken.iconizer;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
};
name = Debug;
};
Expand All @@ -508,8 +507,7 @@
PRODUCT_BUNDLE_IDENTIFIER = io.raphaelhanneken.iconizer;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 4.2;
};
name = Release;
};
Expand Down
2 changes: 1 addition & 1 deletion Iconizer/Controller/AppIconViewController.swift
Expand Up @@ -57,7 +57,7 @@ class AppIconViewController: NSViewController, IconizerViewControllerProtocol {

/// The name of the corresponding nib file.
override var nibName: NSNib.Name {
return NSNib.Name("AppIconView")
return "AppIconView"
}

// MARK: View Controller
Expand Down
2 changes: 1 addition & 1 deletion Iconizer/Controller/ImageSetViewController.swift
Expand Up @@ -18,7 +18,7 @@ class ImageSetViewController: NSViewController, IconizerViewControllerProtocol {

/// The name of the corresponding nib file.
override var nibName: NSNib.Name {
return NSNib.Name("ImageSetView")
return "ImageSetView"
}

// MARK: Iconizer View Controller
Expand Down
2 changes: 1 addition & 1 deletion Iconizer/Controller/LaunchImageViewController.swift
Expand Up @@ -42,7 +42,7 @@ class LaunchImageViewController: NSViewController, IconizerViewControllerProtoco

/// The name of the corresponding nib file.
override var nibName: NSNib.Name {
return NSNib.Name("LaunchImageView")
return "LaunchImageView"
}

// MARK: View Controller
Expand Down
2 changes: 1 addition & 1 deletion Iconizer/Controller/MainWindowController.swift
Expand Up @@ -20,7 +20,7 @@ class MainWindowController: NSWindowController, NSWindowDelegate {

// Override the windowNibName property.
override var windowNibName: NSNib.Name {
return NSNib.Name("MainWindow")
return "MainWindow"
}

// MARK: Window delegate
Expand Down
4 changes: 2 additions & 2 deletions Iconizer/Info.plist
Expand Up @@ -15,11 +15,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>2.6.0</string>
<string>2.7.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>271</string>
<string>277</string>
<key>LSApplicationCategoryType</key>
<string>public.app-category.developer-tools</string>
<key>LSMinimumSystemVersion</key>
Expand Down

0 comments on commit d3ed159

Please sign in to comment.