Revision: 26129
          http://sourceforge.net/p/bibdesk/svn/26129
Author:   hofman
Date:     2021-06-03 21:45:59 +0000 (Thu, 03 Jun 2021)
Log Message:
-----------
Set tool tip in IB

Modified Paths:
--------------
    trunk/bibdesk/BDSKTemplateDocument.m
    trunk/bibdesk/Base.lproj/TemplateDocument.xib
    trunk/bibdesk/de.lproj/Localizable.strings
    trunk/bibdesk/de.lproj/TemplateDocument.strings
    trunk/bibdesk/en.lproj/Localizable.strings
    trunk/bibdesk/en.lproj/TemplateDocument.strings
    trunk/bibdesk/fr.lproj/Localizable.strings
    trunk/bibdesk/fr.lproj/TemplateDocument.strings

Modified: trunk/bibdesk/BDSKTemplateDocument.m
===================================================================
--- trunk/bibdesk/BDSKTemplateDocument.m        2021-06-03 21:24:18 UTC (rev 
26128)
+++ trunk/bibdesk/BDSKTemplateDocument.m        2021-06-03 21:45:59 UTC (rev 
26129)
@@ -1116,12 +1116,6 @@
     [self setSelectedToken:nil];
 }
 
-- (NSString *)tableView:(NSTableView *)tableView toolTipForCell:(NSCell *)cell 
rect:(NSRectPointer)rect tableColumn:(NSTableColumn *)tableColumn 
row:(NSInteger)row mouseLocation:(NSPoint)mouseLocation {
-    if ([[tableColumn identifier] isEqualToString:@"included"])
-        return NSLocalizedString(@"Check to include an item template for this 
type", @"Tool tip message");
-    return @"";
-}
-
 - (NSInteger)numberOfRowsInTableView:(NSTableView *)tv{ return 0; }
 
 - (id)tableView:(NSTableView *)tv objectValueForTableColumn:(NSTableColumn 
*)tableColumn row:(NSInteger)row { return nil; }

Modified: trunk/bibdesk/Base.lproj/TemplateDocument.xib
===================================================================
--- trunk/bibdesk/Base.lproj/TemplateDocument.xib       2021-06-03 21:24:18 UTC 
(rev 26128)
+++ trunk/bibdesk/Base.lproj/TemplateDocument.xib       2021-06-03 21:45:59 UTC 
(rev 26129)
@@ -419,7 +419,7 @@
                         </view>
                     </box>
                     <textField verticalHuggingPriority="750" 
translatesAutoresizingMaskIntoConstraints="NO" id="1542">
-                        <rect key="frame" x="18" y="320" width="52" 
height="204"/>
+                        <rect key="frame" x="18" y="432" width="72" 
height="92"/>
                         <textFieldCell key="cell" controlSize="small" 
scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" 
alignment="right" title="Default type:" id="1901">
                             <font key="font" metaFont="smallSystem"/>
                             <color key="textColor" name="controlTextColor" 
catalog="System" colorSpace="catalog"/>
@@ -427,7 +427,7 @@
                         </textFieldCell>
                     </textField>
                     <popUpButton horizontalHuggingPriority="750" 
verticalHuggingPriority="751" translatesAutoresizingMaskIntoConstraints="NO" 
id="1537">
-                        <rect key="frame" x="32" y="292" width="40" 
height="22"/>
+                        <rect key="frame" x="32" y="404" width="60" 
height="22"/>
                         <popUpButtonCell key="cell" type="push" 
bezelStyle="rounded" alignment="left" controlSize="small" 
lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" 
inset="2" arrowPosition="arrowAtCenter" preferredEdge="maxY" 
selectedItem="1541" id="1900">
                             <behavior key="behavior" lightByBackground="YES" 
lightByGray="YES"/>
                             <font key="font" metaFont="smallSystem"/>
@@ -444,13 +444,13 @@
                         </connections>
                     </popUpButton>
                     <scrollView autohidesScrollers="YES" 
horizontalLineScroll="26" horizontalPageScroll="10" verticalLineScroll="26" 
verticalPageScroll="10" usesPredominantAxisScrolling="NO" 
translatesAutoresizingMaskIntoConstraints="NO" id="ZVm-ex-Jeo">
-                        <rect key="frame" x="20" y="211" width="48" 
height="77"/>
+                        <rect key="frame" x="20" y="211" width="68" 
height="189"/>
                         <clipView key="contentView" id="D7r-8N-QXM">
-                            <rect key="frame" x="1" y="1" width="46" 
height="75"/>
+                            <rect key="frame" x="1" y="1" width="66" 
height="187"/>
                             <autoresizingMask key="autoresizingMask" 
widthSizable="YES" heightSizable="YES"/>
                             <subviews>
                                 <tableView verticalHuggingPriority="750" 
allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" 
alternatingRowBackgroundColors="YES" columnReordering="NO" 
multipleSelection="NO" emptySelection="NO" autosaveColumns="NO" typeSelect="NO" 
rowHeight="24" rowSizeStyle="small" headerView="W7l-ga-thB" viewBased="YES" 
id="6Be-c7-qbI" customClass="BDSKTableView">
-                                    <rect key="frame" x="0.0" y="0.0" 
width="71" height="47"/>
+                                    <rect key="frame" x="0.0" y="0.0" 
width="71" height="159"/>
                                     <autoresizingMask key="autoresizingMask" 
widthSizable="YES" heightSizable="YES"/>
                                     <size key="intercellSpacing" width="3" 
height="2"/>
                                     <color key="backgroundColor" 
name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
@@ -471,7 +471,7 @@
                                                     <rect key="frame" x="1" 
y="1" width="21" height="24"/>
                                                     <autoresizingMask 
key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                                                     <subviews>
-                                                        <button 
verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" 
id="RS4-i7-mBX">
+                                                        <button toolTip="Check 
to include an item template for this type" verticalHuggingPriority="750" 
translatesAutoresizingMaskIntoConstraints="NO" id="RS4-i7-mBX">
                                                             <rect key="frame" 
x="-1" y="4" width="23" height="16"/>
                                                             <buttonCell 
key="cell" type="check" bezelStyle="regularSquare" imagePosition="only" 
controlSize="small" scrollable="YES" lineBreakMode="clipping" inset="2" 
id="5Oa-0S-l3m">
                                                                 <behavior 
key="behavior" changeContents="YES" doesNotDimImage="YES" 
lightByContents="YES"/>
@@ -543,8 +543,8 @@
                                 </tableView>
                             </subviews>
                         </clipView>
-                        <scroller key="horizontalScroller" wantsLayer="YES" 
verticalHuggingPriority="750" doubleValue="0.12" horizontal="YES" 
id="qw6-WF-LwA">
-                            <rect key="frame" x="1" y="60" width="46" 
height="16"/>
+                        <scroller key="horizontalScroller" wantsLayer="YES" 
verticalHuggingPriority="750" doubleValue="1" horizontal="YES" id="qw6-WF-LwA">
+                            <rect key="frame" x="1" y="172" width="66" 
height="16"/>
                             <autoresizingMask key="autoresizingMask"/>
                         </scroller>
                         <scroller key="verticalScroller" hidden="YES" 
wantsLayer="YES" verticalHuggingPriority="750" doubleValue="1" horizontal="NO" 
id="vni-Rr-d7f">
@@ -557,13 +557,13 @@
                         </tableHeaderView>
                     </scrollView>
                     <box verticalCompressionResistancePriority="250" 
title="Item Template" translatesAutoresizingMaskIntoConstraints="NO" id="1556">
-                        <rect key="frame" x="53" y="337" width="764" 
height="60"/>
+                        <rect key="frame" x="93" y="337" width="724" 
height="60"/>
                         <view key="contentView" id="vaM-Fl-fT2">
-                            <rect key="frame" x="3" y="3" width="758" 
height="42"/>
+                            <rect key="frame" x="3" y="3" width="718" 
height="42"/>
                             <autoresizingMask key="autoresizingMask" 
widthSizable="YES" heightSizable="YES"/>
                             <subviews>
                                 <tokenField 
horizontalCompressionResistancePriority="250" 
verticalCompressionResistancePriority="250" 
translatesAutoresizingMaskIntoConstraints="NO" id="1558" 
customClass="BDSKTokenField">
-                                    <rect key="frame" x="12" y="10" 
width="734" height="22"/>
+                                    <rect key="frame" x="12" y="10" 
width="694" height="22"/>
                                     <constraints>
                                         <constraint firstAttribute="height" 
relation="greaterThanOrEqual" constant="22" id="bkY-kv-FEE"/>
                                         <constraint firstAttribute="height" 
priority="499" constant="56" id="bn0-3P-xsm"/>
@@ -592,13 +592,13 @@
                         </view>
                     </box>
                     <box title="Options for field" 
translatesAutoresizingMaskIntoConstraints="NO" id="1559">
-                        <rect key="frame" x="53" y="207" width="764" 
height="126"/>
+                        <rect key="frame" x="93" y="207" width="724" 
height="126"/>
                         <view key="contentView" id="TSn-hs-oy2">
-                            <rect key="frame" x="3" y="3" width="758" 
height="108"/>
+                            <rect key="frame" x="3" y="3" width="718" 
height="108"/>
                             <autoresizingMask key="autoresizingMask" 
widthSizable="YES" heightSizable="YES"/>
                             <subviews>
                                 <customView 
translatesAutoresizingMaskIntoConstraints="NO" id="cLa-yx-uut">
-                                    <rect key="frame" x="4" y="6" width="750" 
height="96"/>
+                                    <rect key="frame" x="4" y="6" width="710" 
height="96"/>
                                     <constraints>
                                         <constraint firstAttribute="height" 
constant="96" id="ZSn-Gp-DmP"/>
                                     </constraints>
@@ -620,15 +620,15 @@
                         </connections>
                     </box>
                     <box title="Available Fields" 
translatesAutoresizingMaskIntoConstraints="NO" id="1547">
-                        <rect key="frame" x="53" y="401" width="764" 
height="123"/>
+                        <rect key="frame" x="93" y="401" width="724" 
height="123"/>
                         <view key="contentView" id="fnr-QQ-bwY">
-                            <rect key="frame" x="3" y="3" width="758" 
height="105"/>
+                            <rect key="frame" x="3" y="3" width="718" 
height="105"/>
                             <autoresizingMask key="autoresizingMask" 
widthSizable="YES" heightSizable="YES"/>
                             <subviews>
                                 <scrollView borderType="none" 
autohidesScrollers="YES" horizontalLineScroll="10" horizontalPageScroll="10" 
verticalLineScroll="10" verticalPageScroll="10" hasVerticalScroller="NO" 
usesPredominantAxisScrolling="NO" 
translatesAutoresizingMaskIntoConstraints="NO" id="1549">
-                                    <rect key="frame" x="12" y="0.0" 
width="734" height="95"/>
+                                    <rect key="frame" x="12" y="0.0" 
width="694" height="95"/>
                                     <clipView key="contentView" 
autoresizesSubviews="NO" drawsBackground="NO" copiesOnScroll="NO" 
id="uAv-0P-sO3">
-                                        <rect key="frame" x="0.0" y="0.0" 
width="734" height="95"/>
+                                        <rect key="frame" x="0.0" y="0.0" 
width="694" height="95"/>
                                         <autoresizingMask 
key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                                         <subviews>
                                             <customView 
translatesAutoresizingMaskIntoConstraints="NO" id="1550" 
customClass="BDSKFlippedView">
@@ -774,7 +774,7 @@
                         </connections>
                     </customView>
                     <customView placeholderIntrinsicWidth="9" 
placeholderIntrinsicHeight="9" translatesAutoresizingMaskIntoConstraints="NO" 
id="hQX-jZ-Y2Y" customClass="BDSKResizeView">
-                        <rect key="frame" x="56" y="332" width="758" 
height="9"/>
+                        <rect key="frame" x="96" y="332" width="718" 
height="9"/>
                         <connections>
                             <outlet property="constraint" 
destination="bn0-3P-xsm" id="BGv-oq-fab"/>
                         </connections>

Modified: trunk/bibdesk/de.lproj/Localizable.strings
===================================================================
(Binary files differ)

Modified: trunk/bibdesk/de.lproj/TemplateDocument.strings
===================================================================
(Binary files differ)

Modified: trunk/bibdesk/en.lproj/Localizable.strings
===================================================================
(Binary files differ)

Modified: trunk/bibdesk/en.lproj/TemplateDocument.strings
===================================================================
(Binary files differ)

Modified: trunk/bibdesk/fr.lproj/Localizable.strings
===================================================================
(Binary files differ)

Modified: trunk/bibdesk/fr.lproj/TemplateDocument.strings
===================================================================
(Binary files differ)

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