Interface Builder bug with Carbon Tab controls
Interface Builder bug with Carbon Tab controls
- Subject: Interface Builder bug with Carbon Tab controls
- From: Matt Gough <email@hidden>
- Date: Tue, 25 Nov 2003 14:10:03 +0000
Since there isn't an Interface Builder mailing list...
There is a really annoying bug in Interface Builder 2.4 (v349).
(This is for a Carbon window)
Any controls inside a Tab control will be shifted down four pixels
every time the NIB is saved, closed and reopened.
As you can imagine, this makes editing such a nib a real pain :(
Below are the contents of a sample Nib's sub-files since attachments
can't be posted here. The sample NIB is self explanatory in Interface
Builder
Matt Gough
If you want (or if the following gets munged in the mail), you can
download the real NIB from my idisk's public folder (mattg)
classes.nib
{
IBClasses = ();
IBVersion = 1;
}
end of classes.nib
*********************
info.nib
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IBDocumentLocation</key>
<string>290 290 356 240 0 0 1280 1002 </string>
<key>IBFramework Version</key>
<string>349.0</string>
<key>IBOpenObjects</key>
<array>
<integer>166</integer>
</array>
<key>IBSystem Version</key>
<string>7C107</string>
<key>targetFramework</key>
<string>IBCarbonFramework</string>
</dict>
</plist>
end of info.nib
*********************
objects.xib
<?xml version="1.0" standalone="yes"?>
<object class="NSIBObjectData">
<string name="targetFramework">IBCarbonFramework</string>
<object name="rootObject" class="NSCustomObject" id="1">
<string name="customClass">NSApplication</string>
</object>
<array count="11" name="allObjects">
<object class="IBCarbonWindow" id="166">
<string name="windowRect">79 107 445 567 </string>
<string name="title">Window</string>
<object name="rootControl" class="IBCarbonRootControl" id="167">
<string name="bounds">0 0 366 460 </string>
<array count="5" name="subviews">
<object class="IBCarbonTab" id="184">
<string name="bounds">71 14 293 255 </string>
<array count="1" name="subviews">
<object class="IBCarbonUserPane" id="186">
<string name="bounds">99 14 293 255 </string>
<array count="3" name="subviews">
<object class="IBCarbonStaticText" id="187">
<string name="bounds">110 34 126 148 </string>
<string name="title">Don't move</string>
</object>
<object class="IBCarbonButton" id="189">
<string name="bounds">156 81 176 168 </string>
<string name="title">Move me </string>
</object>
<object class="IBCarbonStaticText" id="193">
<string name="bounds">250 34 294 243 </string>
<boolean name="small">TRUE</boolean>
<int name="controlSize">1</int>
<string name="title">Some text near the bottom that
will disappear quickly once you save, close and reopen a few
times.</string>
</object>
</array>
<int name="featureBits">2</int>
</object>
</array>
<boolean name="small">TRUE</boolean>
<int name="controlSize">1</int>
<int name="size">1</int>
<array count="1" name="tabItems">
<dictionary count="4">
<string>contentResID</string>
<string>0</string>
<string>tabEnabled</string>
<string>1</string>
<string>tabName</string>
<string>One</string>
<string>userPane</string>
<reference idRef="186"/>
</dictionary>
</array>
</object>
<object class="IBCarbonStaticText" id="192">
<string name="bounds">15 27 62 447 </string>
<boolean name="small">TRUE</boolean>
<int name="controlSize">1</int>
<string name="title">To see this bug in action, simply move
'Move Me', save the file, close the file and then reopen it.
Every time you do this all the sub-controls of the Tab pane move down
four pixels.</string>
</object>
<object class="IBCarbonSeparator" id="194">
<string name="bounds">124 21 125 434 </string>
</object>
<object class="IBCarbonStaticText" id="195">
<string name="bounds">133 270 234 440 </string>
<boolean name="small">TRUE</boolean>
<int name="controlSize">1</int>
<string name="title">This guide line above shows you that
'Don't move' is slowly creeping down the window (along
with all the other sub-controls of the Tab control). The presence of
the line is not the cause of this bug.</string>
</object>
<object class="IBCarbonStaticText" id="196">
<string name="bounds">319 14 351 440 </string>
<boolean name="small">TRUE</boolean>
<int name="controlSize">1</int>
<string name="title">Addendum. It turns out you don't
even need to move any controls. Simply saving the file and reopening
will cause it</string>
</object>
</array>
</object>
<boolean name="receiveUpdates">FALSE</boolean>
<boolean name="liveResize">TRUE</boolean>
<boolean name="isConstrained">FALSE</boolean>
</object>
<reference idRef="167"/>
<reference idRef="184"/>
<reference idRef="186"/>
<reference idRef="187"/>
<reference idRef="189"/>
<reference idRef="192"/>
<reference idRef="193"/>
<reference idRef="194"/>
<reference idRef="195"/>
<reference idRef="196"/>
</array>
<array count="11" name="allParents">
<reference idRef="1"/>
<reference idRef="166"/>
<reference idRef="167"/>
<reference idRef="184"/>
<reference idRef="186"/>
<reference idRef="186"/>
<reference idRef="167"/>
<reference idRef="186"/>
<reference idRef="167"/>
<reference idRef="167"/>
<reference idRef="167"/>
</array>
<dictionary count="2" name="nameTable">
<string>File's Owner</string>
<reference idRef="1"/>
<string>Window</string>
<reference idRef="166"/>
</dictionary>
<unsigned_int name="nextObjectID">197</unsigned_int>
</object>
end of objects.xib
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.