• 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: View Swapping Issue.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >View Swapping Issue. (From: Philip Juel Borges <email@hidden>)

  • Prev by Date: View Swapping Issue.
  • Next by Date: How To Unbind
  • Previous by thread: View Swapping Issue.
  • Next by thread: How To Unbind
  • Index(es):
    • Date
    • Thread