[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two gui changes

From: Wolfgang Lux
Subject: Re: Two gui changes
Date: Thu, 15 Nov 2007 08:42:40 +0100

Andreas Höschler wrote:

This NSAssert killed a presentation today! :-( My application died with an uncaught exception while trying to show a message with NSRunAlterPanel. What is this NSAssert good for?

Quoted from Apple's documentation of -convertRect:toView:

The view that is the target of the conversion operation. If aView is nil, this method instead converts from window base coordinates. Otherwise, both aView and the receiver must belong to the same NSWindow object.

The last sentence should explain the assertion. So if this assertion crashed your program, it looks like there is a bug in your program. BTW, are you sure that NSRunAlertPanel did cause the problem? I would expect that the alert panel was shown by the gui's handler for uncaught exceptions.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]