Re: Default button background black for dual G5, not single G4
Re: Default button background black for dual G5, not single G4
- Subject: Re: Default button background black for dual G5, not single G4
- From: Ricky Sharp <email@hidden>
- Date: Mon, 26 Jul 2004 19:59:17 -0500
On Jul 26, 2004, at 7:28 PM, Mario Diana wrote:
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.
It also appears that there's a focus ring around the button.
I have a dual 2GHz G5 with 10.3.4 and just created a textured (metal)
window in IB. I put a default button inside an NSBox and all is well.
I also turned on full keyboard access and got the focus ring to show
up; all composited over the metal background as one would expect.
Perhaps its your code that is setting the button as the default? Do
you have any custom drawing going on that is modifying the drawing
context somewhere?
If this was a Carbon app, I'd suspect that you didn't have compositing
mode turned on.
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).
This is the correct behavior. Panther (10.3) offers a new appearance
for NSBox.
___________________________________________________________
Ricky A. Sharp
mailto:email@hidden
Instant Interactive(tm)
http://www.instantinteractive.com
_______________________________________________
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.