Skip to content

Commit 3923209

Browse files
committed
"Validates immediately" for ip address and hostname
1 parent 31179d7 commit 3923209

File tree

5 files changed

+43
-37
lines changed

5 files changed

+43
-37
lines changed

Base.lproj/MainMenu.xib

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="15705" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
2+
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="16097" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
33
<dependencies>
44
<deployment identifier="macosx"/>
5-
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="15705"/>
5+
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="16097"/>
66
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
77
</dependencies>
88
<objects>
@@ -147,7 +147,7 @@
147147
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
148148
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
149149
<rect key="contentRect" x="275" y="822" width="668" height="368"/>
150-
<rect key="screenRect" x="0.0" y="0.0" width="2560" height="1417"/>
150+
<rect key="screenRect" x="0.0" y="0.0" width="1440" height="877"/>
151151
<value key="minSize" type="size" width="668" height="368"/>
152152
<view key="contentView" id="372">
153153
<rect key="frame" x="0.0" y="0.0" width="668" height="368"/>
@@ -156,7 +156,7 @@
156156
<box fixedFrame="YES" borderType="line" titlePosition="noTitle" translatesAutoresizingMaskIntoConstraints="NO" id="632">
157157
<rect key="frame" x="17" y="64" width="634" height="284"/>
158158
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
159-
<view key="contentView" ambiguous="YES" id="FwS-kJ-ofc">
159+
<view key="contentView" id="FwS-kJ-ofc">
160160
<rect key="frame" x="3" y="3" width="628" height="278"/>
161161
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
162162
<subviews>
@@ -206,11 +206,11 @@
206206
<scrollView fixedFrame="YES" autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" translatesAutoresizingMaskIntoConstraints="NO" id="yWO-jD-aii">
207207
<rect key="frame" x="18" y="34" width="593" height="230"/>
208208
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
209-
<clipView key="contentView" ambiguous="YES" id="Bmc-XI-Ybu">
209+
<clipView key="contentView" id="Bmc-XI-Ybu">
210210
<rect key="frame" x="1" y="0.0" width="591" height="229"/>
211211
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
212212
<subviews>
213-
<tableView verticalHuggingPriority="750" ambiguous="YES" allowsExpansionToolTips="YES" alternatingRowBackgroundColors="YES" columnSelection="YES" multipleSelection="NO" autosaveColumns="NO" headerView="Hez-H4-bvH" id="FgI-XJ-gor">
213+
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" alternatingRowBackgroundColors="YES" columnSelection="YES" multipleSelection="NO" autosaveColumns="NO" headerView="Hez-H4-bvH" id="FgI-XJ-gor">
214214
<rect key="frame" x="0.0" y="0.0" width="591" height="204"/>
215215
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
216216
<size key="intercellSpacing" width="3" height="2"/>
@@ -219,7 +219,6 @@
219219
<tableColumns>
220220
<tableColumn width="49" minWidth="40" maxWidth="1000" id="OZc-d4-idN">
221221
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" title="Use">
222-
<font key="font" metaFont="smallSystem"/>
223222
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
224223
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
225224
</tableHeaderCell>
@@ -239,7 +238,6 @@
239238
</tableColumn>
240239
<tableColumn width="213" minWidth="40" maxWidth="1000" id="llA-ny-U2n">
241240
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" title="IP Address">
242-
<font key="font" metaFont="smallSystem"/>
243241
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
244242
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
245243
</tableHeaderCell>
@@ -250,13 +248,16 @@
250248
</textFieldCell>
251249
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
252250
<connections>
253-
<binding destination="572" name="value" keyPath="arrangedObjects.address" id="Smp-tC-3HS"/>
254251
<binding destination="715" name="enabled" keyPath="authenticated" id="aCp-mj-vJv"/>
252+
<binding destination="572" name="value" keyPath="arrangedObjects.address" id="8zC-SE-WcV">
253+
<dictionary key="options">
254+
<bool key="NSValidatesImmediately" value="YES"/>
255+
</dictionary>
256+
</binding>
255257
</connections>
256258
</tableColumn>
257259
<tableColumn width="320" minWidth="10" maxWidth="1000" id="DPq-b8-uEm">
258260
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="Hostname">
259-
<font key="font" metaFont="smallSystem"/>
260261
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
261262
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
262263
</tableHeaderCell>
@@ -267,8 +268,12 @@
267268
</textFieldCell>
268269
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
269270
<connections>
270-
<binding destination="572" name="value" keyPath="arrangedObjects.hostnames" id="ow6-tU-bhH"/>
271271
<binding destination="715" name="enabled" keyPath="authenticated" id="1F6-JH-GZI"/>
272+
<binding destination="572" name="value" keyPath="arrangedObjects.hostnames" id="DkW-Oz-Ukx">
273+
<dictionary key="options">
274+
<bool key="NSValidatesImmediately" value="YES"/>
275+
</dictionary>
276+
</binding>
272277
</connections>
273278
</tableColumn>
274279
</tableColumns>
@@ -280,7 +285,7 @@
280285
</subviews>
281286
</clipView>
282287
<scroller key="horizontalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" horizontal="YES" id="QaE-Fa-w9m">
283-
<rect key="frame" x="1" y="207" width="591" height="16"/>
288+
<rect key="frame" x="1" y="196" width="581" height="16"/>
284289
<autoresizingMask key="autoresizingMask"/>
285290
</scroller>
286291
<scroller key="verticalScroller" hidden="YES" wantsLayer="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="NO" id="FOT-ni-igH">

Hosts-Info.plist

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5-
<key>NSRequiresAquaSystemAppearance</key>
6-
<string>false</string>
75
<key>CFBundleDevelopmentRegion</key>
86
<string>English</string>
97
<key>CFBundleExecutable</key>

Hosts.xcodeproj/project.pbxproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@
652652
CODE_SIGN_IDENTITY = "Mac Developer";
653653
CODE_SIGN_STYLE = Automatic;
654654
COPY_PHASE_STRIP = NO;
655-
CURRENT_PROJECT_VERSION = 6;
655+
CURRENT_PROJECT_VERSION = 7;
656656
DEBUG_INFORMATION_FORMAT = dwarf;
657657
DEPLOYMENT_POSTPROCESSING = NO;
658658
DEVELOPMENT_TEAM = PZV4XW8XL7;
@@ -668,7 +668,7 @@
668668
HEADER_SEARCH_PATHS = $SRCROOT;
669669
INFOPLIST_FILE = "Hosts-Info.plist";
670670
MACOSX_DEPLOYMENT_TARGET = 10.8;
671-
MARKETING_VERSION = 1.4.3;
671+
MARKETING_VERSION = 1.4.4;
672672
OTHER_LDFLAGS = "";
673673
PRODUCT_BUNDLE_IDENTIFIER = "de.dirk-froehling.hosts";
674674
PRODUCT_NAME = Hosts;
@@ -683,7 +683,7 @@
683683
CLANG_ENABLE_OBJC_WEAK = YES;
684684
CODE_SIGN_IDENTITY = "Mac Developer";
685685
CODE_SIGN_STYLE = Automatic;
686-
CURRENT_PROJECT_VERSION = 6;
686+
CURRENT_PROJECT_VERSION = 7;
687687
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
688688
DEPLOYMENT_POSTPROCESSING = NO;
689689
DEVELOPMENT_TEAM = PZV4XW8XL7;
@@ -693,7 +693,7 @@
693693
HEADER_SEARCH_PATHS = $SRCROOT;
694694
INFOPLIST_FILE = "Hosts-Info.plist";
695695
MACOSX_DEPLOYMENT_TARGET = 10.8;
696-
MARKETING_VERSION = 1.4.3;
696+
MARKETING_VERSION = 1.4.4;
697697
ONLY_ACTIVE_ARCH = YES;
698698
OTHER_LDFLAGS = "";
699699
PRODUCT_BUNDLE_IDENTIFIER = "de.dirk-froehling.hosts";
@@ -827,7 +827,7 @@
827827
CLANG_ENABLE_OBJC_WEAK = YES;
828828
CODE_SIGN_IDENTITY = "Mac Developer";
829829
COPY_PHASE_STRIP = NO;
830-
CURRENT_PROJECT_VERSION = 6;
830+
CURRENT_PROJECT_VERSION = 7;
831831
DEBUG_INFORMATION_FORMAT = dwarf;
832832
DEVELOPMENT_TEAM = PZV4XW8XL7;
833833
GCC_DYNAMIC_NO_PIC = NO;
@@ -845,7 +845,7 @@
845845
INFOPLIST_FILE = "HostsPrefpane/HostsPrefpane-Info.plist";
846846
INSTALL_PATH = "$(HOME)/Library/PreferencePanes";
847847
MACOSX_DEPLOYMENT_TARGET = 10.8;
848-
MARKETING_VERSION = 1.4.3;
848+
MARKETING_VERSION = 1.4.4;
849849
PRODUCT_BUNDLE_IDENTIFIER = "de.dirk-froehling.hosts";
850850
PRODUCT_NAME = Hosts;
851851
PROVISIONING_PROFILE = "";
@@ -861,7 +861,7 @@
861861
CLANG_ENABLE_OBJC_WEAK = YES;
862862
CODE_SIGN_IDENTITY = "Mac Developer";
863863
COPY_PHASE_STRIP = YES;
864-
CURRENT_PROJECT_VERSION = 6;
864+
CURRENT_PROJECT_VERSION = 7;
865865
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
866866
DEVELOPMENT_TEAM = W8E6G8GZYW;
867867
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
@@ -873,7 +873,7 @@
873873
INFOPLIST_FILE = "HostsPrefpane/HostsPrefpane-Info.plist";
874874
INSTALL_PATH = "$(HOME)/Library/PreferencePanes";
875875
MACOSX_DEPLOYMENT_TARGET = 10.8;
876-
MARKETING_VERSION = 1.4.3;
876+
MARKETING_VERSION = 1.4.4;
877877
ONLY_ACTIVE_ARCH = YES;
878878
PRODUCT_BUNDLE_IDENTIFIER = "de.dirk-froehling.hosts";
879879
PRODUCT_NAME = Hosts;

0 commit comments

Comments
 (0)