Re: View Swapping Issue.
Re: View Swapping Issue.
- Subject: Re: View Swapping Issue.
- From: Graham Cox <email@hidden>
- Date: Mon, 31 Aug 2009 22:32:04 +1000
On 31/08/2009, at 10:08 PM, Philip Juel Borges wrote:
The code from the IndexViewController.m to shift focus is
[mainWindow makeFirstResponder: webView];
So I need to figure out how I can connect the mainWindow outlet to
the HostWindow in the MainMenu.xib file from the IndexView.xib file.
Or not - you could just do:
[[webView window] makeFirstResponder:webView];
When a view is installed its -window method will return the window
that hosts it. If it's not installed, it will return nil, but in that
case, you wouldn't be making it the first responder...
--Graham
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden