• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Changing the window a NSWindowController manages
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing the window a NSWindowController manages


  • Subject: Re: Changing the window a NSWindowController manages
  • From: Andrew Hunter <email@hidden>
  • Date: Wed, 19 Oct 2005 16:34:52 +0200

On 10/19/05, Andrew Hunter <email@hidden> wrote:
> Hi,
>

[ ... ]

> I use the reverse of this to switch from full-screen to normal mode.
> The problem I'm getting occurs here, because when I call
> makeKeyAndOrderFront: on the normal window, I get this fairly
> nonsensical exception:
>
> NSWindow: -_oldFirstResponderBeforeBecoming is not a valid message
> outside of a responder's implementation of -becomeFirstResponder.

Whoops, got it. The problem was that the initialFirstResponder of the
'full screen' window was still pointing to a view that was now in the
other window.

The other problem ('normal' window coming back as fullscreen) was
unrelated: the size was being restored from the window frame autosave,
which was last made when the full-screen window was sized to fit the
screen.

Andrew.

--
Andrew Hunter. http://www.logicalshift.demon.co.uk
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Changing the window a NSWindowController manages (From: Andrew Hunter <email@hidden>)

  • Prev by Date: Re: 24-hour default
  • Next by Date: (no subject)
  • Previous by thread: Changing the window a NSWindowController manages
  • Next by thread: NSImageReps for CGImageRefs
  • Index(es):
    • Date
    • Thread