Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Mac port: Status Update

Hey,

On 12/10/01 5:54 PM, "Martin Sturzenhecker" <msturzen@xxxxxxx> wrote:

> Hi,
> 
> did you try this in Shell´s constructor?
> 
> 
> 
> NSNotificationCenter.defaultCenter().addObserver
>            (this, nsSelector,
> NSView.ViewFrameDidChangeNotification,this); //nsWindow.contentView());
> 
> 
> This way the app doesn´t exit.

True.  But you also don't get any Notifications, which was kinda the point.
;-)

That fourth parameter tells the Notification Center which object to "listen"
to Notifications for.  Since the current instance doesn't post a
NSView.ViewFrameDidChangeNotification, we never get any Notifications and
thus no crash.

I'm in the process of filing a bug report right now.  Hopefully this will
open a dialog w/ Apple.

-Maurice



Back to the top