From 4a9a9a25bc90535e03c9507514a1f9d9b0cfc5bb Mon Sep 17 00:00:00 2001 From: yunhan0 Date: Sat, 24 Mar 2018 15:43:06 +1100 Subject: [PATCH] abstract number only text editor --- JacktripGui.xcodeproj/project.pbxproj | 4 ++ JacktripGui/Base.lproj/Main.storyboard | 56 +++++++++---------- .../Controller/JacktripViewController.swift | 7 --- JacktripGui/View/BlankWindow.swift | 4 +- JacktripGui/View/NumberOnlyTextField.swift | 16 ++++++ 5 files changed, 49 insertions(+), 38 deletions(-) create mode 100644 JacktripGui/View/NumberOnlyTextField.swift diff --git a/JacktripGui.xcodeproj/project.pbxproj b/JacktripGui.xcodeproj/project.pbxproj index 28753a0..5fcb281 100644 --- a/JacktripGui.xcodeproj/project.pbxproj +++ b/JacktripGui.xcodeproj/project.pbxproj @@ -15,6 +15,7 @@ 37742275205A3BD800793886 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 37742274205A3BD800793886 /* Assets.xcassets */; }; 37742278205A3BD800793886 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 37742276205A3BD800793886 /* Main.storyboard */; }; 37C78C532066003100390FD7 /* ServerTableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37C78C522066003100390FD7 /* ServerTableView.swift */; }; + 37C78C5520660DB900390FD7 /* NumberOnlyTextField.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37C78C5420660DB900390FD7 /* NumberOnlyTextField.swift */; }; 37DB0BF42063745C0062376D /* NumberOnlyFormatter.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37DB0BF32063745C0062376D /* NumberOnlyFormatter.swift */; }; 37DB0BF82064AECC0062376D /* BlankWindow.swift in Sources */ = {isa = PBXBuildFile; fileRef = 37DB0BF72064AECC0062376D /* BlankWindow.swift */; }; /* End PBXBuildFile section */ @@ -31,6 +32,7 @@ 37742279205A3BD800793886 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 3774227A205A3BD800793886 /* JacktripGui.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = JacktripGui.entitlements; sourceTree = ""; }; 37C78C522066003100390FD7 /* ServerTableView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ServerTableView.swift; sourceTree = ""; }; + 37C78C5420660DB900390FD7 /* NumberOnlyTextField.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NumberOnlyTextField.swift; sourceTree = ""; }; 37DB0BF32063745C0062376D /* NumberOnlyFormatter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NumberOnlyFormatter.swift; sourceTree = ""; }; 37DB0BF72064AECC0062376D /* BlankWindow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BlankWindow.swift; sourceTree = ""; }; /* End PBXFileReference section */ @@ -51,6 +53,7 @@ children = ( 37DB0BF72064AECC0062376D /* BlankWindow.swift */, 370B4A662061D9E200DD0ABE /* ProcessTrigger.swift */, + 37C78C5420660DB900390FD7 /* NumberOnlyTextField.swift */, 37DB0BF32063745C0062376D /* NumberOnlyFormatter.swift */, 37C78C522066003100390FD7 /* ServerTableView.swift */, ); @@ -185,6 +188,7 @@ buildActionMask = 2147483647; files = ( 37742271205A3BD800793886 /* AppDelegate.swift in Sources */, + 37C78C5520660DB900390FD7 /* NumberOnlyTextField.swift in Sources */, 370B4A632060B9B300DD0ABE /* GlobalConstants.swift in Sources */, 37C78C532066003100390FD7 /* ServerTableView.swift in Sources */, 370B4A672061D9E200DD0ABE /* ProcessTrigger.swift in Sources */, diff --git a/JacktripGui/Base.lproj/Main.storyboard b/JacktripGui/Base.lproj/Main.storyboard index 7d1f341..408d25e 100644 --- a/JacktripGui/Base.lproj/Main.storyboard +++ b/JacktripGui/Base.lproj/Main.storyboard @@ -708,14 +708,14 @@ - + - + - + @@ -733,8 +733,8 @@ - - + + @@ -742,7 +742,7 @@