viewWithTag: behavior adjustment

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19840 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Chad Hardin 2004-08-08 01:25:15 +00:00
parent 8a5264e83f
commit 8f04d6a957
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2004-08-08 01:19 Chad Hardin <cehardin@mac.com>
* Source/NSPageLayout.m: Ensure that the units on the panel
are set. Using -viewWithTag:, I had to make sure I called
the view immediately above the view I was loking for.
2004-08-08 00:43 Chad Hardin <cehardin@mac.com>
* config.make.in: Added CUPS specific make variables.

View file

@ -50,6 +50,7 @@
#include "AppKit/NSPageLayout.h"
#include "AppKit/NSTableView.h"
#include "AppKit/NSTabView.h"
#include "AppKit/NSTabViewItem.h"
#include "AppKit/NSPrinter.h"
#include "GSGuiPrivate.h"
#include "GNUstepGUI/GSPrinting.h"
@ -501,7 +502,7 @@ enum {
for( n = 100; n <= 105; n++ )
{
NSTextField *textField;
textField = [tabView viewWithTag: n];
textField = [[[tabView tabViewItemAtIndex:1] view] viewWithTag: n];
[textField setStringValue: measurementString];
}
//doing the above puts selects the 2nd tab, we don't want that.