canBecomeKeyWindow

Discussion in 'Mac Programming' started by theallan, Nov 3, 2005.

  1. macrumors newbie

    Joined:
    Nov 3, 2005
    #1
    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
     
  2. macrumors regular

    Joined:
    Apr 16, 2003
    Location:
    Minneapolis, MN
    #2

Share This Page