<?xml version="1.0" encoding="UTF-8" standalone="no"?> <document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="4514" systemVersion="13B42" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES"> <dependencies> <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="4514"/> </dependencies> <objects> <customObject id="-2" userLabel="File's Owner" customClass="PLSLoginController"> <connections> <outlet property="header" destination="vcb-8g-Yr6" id="jBw-FP-jJj"/> <outlet property="password" destination="R42-Zp-EZW" id="VwJ-QM-uub"/> <outlet property="window" destination="1" id="Tq9-qi-Efg"/> </connections> </customObject> <customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/> <customObject id="-3" userLabel="Application"/> <window title="Pulse Login" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" releasedWhenClosed="NO" wantsToBeColor="NO" visibleAtLaunch="NO" frameAutosaveName="LoginWindow" animationBehavior="default" id="1"> <windowStyleMask key="styleMask" titled="YES" closable="YES"/> <rect key="contentRect" x="1039" y="670" width="514" height="118"/> <rect key="screenRect" x="0.0" y="0.0" width="2560" height="1418"/> <value key="minSize" type="size" width="514" height="118"/> <value key="maxSize" type="size" width="514" height="118"/> <view key="contentView" id="2"> <rect key="frame" x="0.0" y="0.0" width="514" height="118"/> <autoresizingMask key="autoresizingMask"/> <subviews> <textField horizontalHuggingPriority="251" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="vcb-8g-Yr6"> <rect key="frame" x="19" y="81" width="477" height="17"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Enter password for perforce:1666" id="Fan-0K-M64"> <font key="font" metaFont="system"/> <color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/> </textFieldCell> </textField> <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="KFw-V2-PcY"> <rect key="frame" x="417" y="13" width="82" height="32"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <buttonCell key="cell" type="push" title="Login" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="AXj-wO-rnp"> <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/> <font key="font" metaFont="system"/> </buttonCell> <connections> <action selector="login:" target="-2" id="lur-7Q-0yj"/> </connections> </button> <button verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="Lea-a2-7Gb"> <rect key="frame" x="335" y="13" width="82" height="32"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <buttonCell key="cell" type="push" title="Cancel" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="Ddc-Da-mY4"> <behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/> <font key="font" metaFont="system"/> <string key="keyEquivalent" base64-UTF8="YES"> Gw </string> </buttonCell> <connections> <action selector="cancel:" target="-2" id="KBk-W2-S4H"/> </connections> </button> <secureTextField verticalHuggingPriority="750" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="R42-Zp-EZW"> <rect key="frame" x="21" y="48" width="473" height="22"/> <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/> <secureTextFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" selectable="YES" editable="YES" sendsActionOnEndEditing="YES" borderStyle="bezel" drawsBackground="YES" usesSingleLineMode="YES" id="BaC-fx-MhX"> <font key="font" metaFont="system"/> <color key="textColor" name="textColor" catalog="System" colorSpace="catalog"/> <color key="backgroundColor" name="textBackgroundColor" catalog="System" colorSpace="catalog"/> <connections> <action selector="performClick:" target="KFw-V2-PcY" id="B2k-Qn-bGg"/> </connections> </secureTextFieldCell> </secureTextField> </subviews> <constraints> <constraint firstAttribute="bottom" secondItem="KFw-V2-PcY" secondAttribute="bottom" constant="20" id="Edy-Kb-YMj"/> <constraint firstItem="Lea-a2-7Gb" firstAttribute="baseline" secondItem="KFw-V2-PcY" secondAttribute="baseline" id="FiH-di-pJT"/> <constraint firstAttribute="trailing" secondItem="vcb-8g-Yr6" secondAttribute="trailing" constant="20" id="MFe-mC-cNr"/> <constraint firstItem="KFw-V2-PcY" firstAttribute="leading" secondItem="Lea-a2-7Gb" secondAttribute="trailing" constant="12" symbolic="YES" id="SZw-6O-hdU"/> <constraint firstItem="vcb-8g-Yr6" firstAttribute="top" secondItem="2" secondAttribute="top" constant="20" id="hvL-xw-7Gw"/> <constraint firstItem="vcb-8g-Yr6" firstAttribute="leading" secondItem="2" secondAttribute="leading" constant="21" id="kcV-F9-56o"/> <constraint firstAttribute="trailing" secondItem="KFw-V2-PcY" secondAttribute="trailing" constant="21" id="sHk-1h-pzT"/> <constraint firstAttribute="trailing" secondItem="Lea-a2-7Gb" secondAttribute="trailing" constant="103" id="wJU-Qh-2kJ"/> </constraints> </view> </window> </objects> </document>
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 8590 | Matt Attaway |
Add crude login capabilities This is the first step toward getting the login behavior I want. Right now anytime a Peforce command gets a login error the Overseer ion charge notifies its delegate, which is currently the AppDelegate. The AppDelegate then kicks off the requisite login dialog which gets the password and does the login. There’s no error handling or feedback and the dialog pops up even when it is a background process that hit the error. The next step is to implement the Login menu item and the ‘need login’ tool tip and status icon. User visible (and possibly user annoying) change |