Revision: 26200
          http://sourceforge.net/p/bibdesk/svn/26200
Author:   hofman
Date:     2021-06-10 16:33:52 +0000 (Thu, 10 Jun 2021)
Log Message:
-----------
Connect delegate and set formatter in IB

Modified Paths:
--------------
    trunk/bibdesk/BDSKBackgroundView.h
    trunk/bibdesk/BDSKComplexStringEditor.m
    trunk/bibdesk/ComplexStringEditor.xib

Modified: trunk/bibdesk/BDSKBackgroundView.h
===================================================================
--- trunk/bibdesk/BDSKBackgroundView.h  2021-06-10 16:29:10 UTC (rev 26199)
+++ trunk/bibdesk/BDSKBackgroundView.h  2021-06-10 16:33:52 UTC (rev 26200)
@@ -45,8 +45,8 @@
     id<BDSKBackgroundViewDelegate> delegate;
 }
 
+@property (nonatomic, assign) IBOutlet id<BDSKBackgroundViewDelegate> delegate;
 @property (nonatomic) BOOL showFocusRing;
-@property (nonatomic, assign) id<BDSKBackgroundViewDelegate> delegate;
 
 @end
 

Modified: trunk/bibdesk/BDSKComplexStringEditor.m
===================================================================
--- trunk/bibdesk/BDSKComplexStringEditor.m     2021-06-10 16:29:10 UTC (rev 
26199)
+++ trunk/bibdesk/BDSKComplexStringEditor.m     2021-06-10 16:33:52 UTC (rev 
26200)
@@ -191,12 +191,6 @@
 
 @implementation BDSKComplexStringEditor (Private)
 
-- (void)windowDidLoad {
-    // BDSKComplexStringFormatter needs macroResolver only for editing
-    [expandedValueTextField setFormatter:[[[BDSKComplexStringFormatter alloc] 
init] autorelease]];
-    [backgroundView setDelegate:self];
-}
-
 - (BOOL)getEnclosingView:(NSView **)view scrollingView:(NSView **)contentView {
     *view = [editor superview];
     *contentView = [[*view enclosingScrollView] contentView];

Modified: trunk/bibdesk/ComplexStringEditor.xib
===================================================================
--- trunk/bibdesk/ComplexStringEditor.xib       2021-06-10 16:29:10 UTC (rev 
26199)
+++ trunk/bibdesk/ComplexStringEditor.xib       2021-06-10 16:33:52 UTC (rev 
26200)
@@ -33,6 +33,7 @@
                             <textField verticalHuggingPriority="750" 
horizontalCompressionResistancePriority="250" 
translatesAutoresizingMaskIntoConstraints="NO" id="58" 
customClass="BDSKScrollableTextField">
                                 <rect key="frame" x="5" y="12" width="263" 
height="16"/>
                                 <textFieldCell key="cell" scrollable="YES" 
lineBreakMode="clipping" sendsActionOnEndEditing="YES" alignment="left" id="69" 
customClass="BDSKScrollableTextFieldCell">
+                                    <customFormatter key="formatter" 
id="jbu-ln-LZW" customClass="BDSKComplexStringFormatter"/>
                                     <font key="font" metaFont="system"/>
                                     <color key="textColor" 
name="controlTextColor" catalog="System" colorSpace="catalog"/>
                                     <color key="backgroundColor" 
name="controlColor" catalog="System" colorSpace="catalog"/>
@@ -45,6 +46,9 @@
                             <constraint firstAttribute="bottom" 
secondItem="58" secondAttribute="bottom" constant="12" id="WnT-hy-dFX"/>
                             <constraint firstItem="58" firstAttribute="top" 
secondItem="54" secondAttribute="top" constant="6" id="flN-8i-hUc"/>
                         </constraints>
+                        <connections>
+                            <outlet property="delegate" destination="-2" 
id="z4G-YI-sF7"/>
+                        </connections>
                     </customView>
                 </subviews>
                 <constraints>

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to