PDA

View Full Version : canBecomeKeyWindow




theallan
Nov 3, 2005, 07:44 AM
Hi all,

I'm trying to follow through the full screen app tutorial on CocoaDevCentral ( http://www.cocoadevcentral.com/articles/000028.php ). But I can't for the life of me make the text in the full screen window editable. There is a note saying that 'canBecomeKeyWindow' needs to be over ridden by creating a sub-class of NSWindow. Which I have done. I've also set the CustomClass (in IB) to be CustomWindow (my sub class) - but its just not working.

I've included a NSLog report in the 'canBecomeKeyWindow' method, but it would appear not to be being called at all, since its not printing to the log. I guess I'm missing something somewhere...

Any help would be much appreciated
Thanks
Allan



logicat2001
Nov 4, 2005, 12:57 PM
Hi Allan,

I was going to follow the same tutorial to try and determine where things went wrong, then I noticed how dated it is. Start here for more discussion, links to current code, and commentary:

http://www.cocoadev.com/index.pl?CoregraphicsFullscreen

Best,
Anton