Default button background black for dual G5, not single G4
Default button background black for dual G5, not single G4
- Subject: Default button background black for dual G5, not single G4
- From: Mario Diana <email@hidden>
- Date: Mon, 26 Jul 2004 20:28:49 -0400
Hello,
I came across a strange problem where my application "works on my
machine," but not on the machine of one of my beta testers:
specifically, the subviews of the main window don't display properly at
launch time.
I'm running an iMac G4 (Jaguar 10.2.8). My friend is running a dual G5
(Panther 10.3.4).
The app has one window with two buttons. At launch, one is the default
button (the other becomes one later). I do this programmatically during
-awakeFromNib. (Actually, -awakeFromNib calls another method which then
calls a third, which handles making the button the default.)
Two strange things happen. First, the background of the default button
is black on the G5 machine. The button is actually surrounded by a
black square. Second, the button in question, along with a text field,
is enclosed by an NSBox. I have set the box to show the black lines
around its perimeter (the first choice in IB). On the G5 machine,
however, the NSBox appears inset (the second choice in IB).
If this is hard to picture, I have set up a Web page with screen shots
and a brief summary:
http://itms-backup.sf.net/nsview-oddity.html
The method that sets the default button looks like this:
- (void) toggleDefaultButtonOnMainWindow:(NSButton
*)newDefaultButton
{
// Either one or the other button is the default
NSButtonCell *buttonCell = [newDefaultButton cell];
[mainWindow setDefaultButtonCell:buttonCell];
}
The method that calls the above ends with these two lines:
[[mainWindow contentView] display];
[[mainWindow contentView] setNeedsDisplay:NO];
As I said, this method is called during -awakeFromNib.
I'm guessing this problem has something to do with multiple processors,
but I can't be sure. Anybody have any idea what may be going on, and
more importantly how I may fix it? Thanks!
Perplexed in Poughquag,
Mario
=======================================================
Mario Diana Mobile: 845-380-8428
50 Forest Drive Home: 845-221-3989
Poughquag, NY 12570 Email: email@hidden
=======================================================
Programmer - Web development, Java, XML, LAMP, Mac OS X
=======================================================
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.