Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Just a single didBecomeMain/didResignMain event being fired



You will probably have to subclass NSWindow such that -canBecomeMainWindow returns YES. The default for NSBorderless windows seems to return NO.

-Ken

On Saturday, December 28, 2002, at 03:09 PM, Thilo Ettelt wrote:

Hey folks!

I have a problem with a NSBorderless (custom shaped) window. In my controller, which is the window's delegate, i've put an NSLog between the brackets of '-windowDidResignMain' and '-windowDidBecomeMain'. But the NSLogs are doing their job just once - when the window has been openend and when i switched to a different window. When I switch back: no more windowDidBecomeMain event. And then again: no windowDidResignMain event.

What's wrong there?


- Thilo
_______________________________________________
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.


Kenneth Dyke, email@hidden (personal), email@hidden (work)
Sr. Mad Scientist, MacOS X OpenGL Group, Apple Computer, Inc.
C++ is to C as Lung Cancer is to Lung
_______________________________________________
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.

References: 
 >Just a single didBecomeMain/didResignMain event being fired (From: Thilo Ettelt <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.