Re: Changing the window a NSWindowController manages
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