Skip navigation.
 
mlRe: Default button surrounded by black square for Panther, not Jaguar
FROM : John C. Randolph
DATE : Tue Oct 05 23:04:35 2004

Mario,

This problem comes up from time to time, and it's caused when views at
the same level of the view hierarchy overlap.  The solution is to
ensure that the button is added as a subview of the view that's behind
it.

-jcr

On Jul 27, 2004, at 10:21 AM, Mario Diana wrote:

> Hi,
>
> I originally posted this issue late yesterday, but since I've narrowed
> down the problem a bit, I thought I might repost.
>
> The default button on my application's window at launch time is
> surrounded by a black square when running under Panther (10.3.4).
> Everything is normal under Jaguar (10.2.8). This is repeatable on
> other machines.
>
> A screenshot and summary of the problem is here:
>
>     http://itms-backup.sf.net/nsview-oddity.html
>
> For the record, I am developing and building this application under
> Jaguar.
>
> The NSButton at issue is grouped along with a subclass of NSTextField,
> and this group is a subview of an NSBox. The button is set to be the
> default from InterfaceBuilder (setting it programmatically made no
> difference in the results).
>
> It will be very difficult for me to get hold of Panther or another
> machine running Panther to debug this all by myself. Deliberate
> debugging of this using a beta tester friend via e-mail is going to be
> tedious and protracted. If anyone has any insight that could speed up
> my solving this, it would be a great help.
>
>

Mario,

This problem comes up from time to time, and it's caused when views at
the same level of the view hierarchy overlap.  The solution is to
ensure that the button is added as a subview of the view that's behind
it.

-jcr

On Jul 27, 2004, at 10:21 AM, Mario Diana wrote:

Hi,

I originally posted this issue late yesterday, but since I've narrowed
down the problem a bit, I thought I might repost.

The default button on my application's window at launch time is
surrounded by a black square when running under Panther (10.3.4).
Everything is normal under Jaguar (10.2.8). This is repeatable on other
machines.

A screenshot and summary of the problem is here:

    http://itms-backup.sf.net/nsview-oddity.html

For the record, I am developing and building this application under
Jaguar.

The NSButton at issue is grouped along with a subclass of NSTextField,
and this group is a subview of an NSBox. The button is set to be the
default from InterfaceBuilder (setting it programmatically made no
difference in the results).

It will be very difficult for me to get hold of Panther or another
machine running Panther to debug this all by myself. Deliberate
debugging of this using a beta tester friend via e-mail is going to be
tedious and protracted. If anyone has any insight that could speed up
my solving this, it would be a great help.





John C. Randolph <<email_removed>> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html

Related mailsAuthorDate
mlDefault button surrounded by black square for Panther, not Jaguar Mario Diana Jul 27, 19:21
mlRe: Default button surrounded by black square for Panther, not Jaguar Adam Maxwell Jul 28, 00:07
mlRe: Default button surrounded by black square for Panther, not Jaguar Mario Diana Jul 28, 02:23
mlRe: Default button surrounded by black square for Panther, not Jaguar John C. Randolph Oct 5, 23:04