• 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: Enabling menu items?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Enabling menu items?


  • Subject: Re: Enabling menu items?
  • From: Alastair Houghton <email@hidden>
  • Date: Thu, 26 Jul 2007 11:21:05 +0100

On 26 Jul 2007, at 10:16, Kai-Mikael Jää-Aro wrote:

I dug about some more. Apparently, in spite of me having set the window's initialFirstResponder to the EditorView, the window remains first responder, even if I click in the EditorView. This seems to be in direct contradiction of what should be happening according to the Cocoa Event-Handling Guide. I put a

  [[self window] makeFirstResponder: self];

in the -mouseDown method of EditorView and then the view does become first responder.

Anyone have an idea why this is not happening automatically?

Does your EditorView return YES to -acceptsFirstResponder and - becomeFirstResponder? If not, that might explain the behaviour you're seeing.


Kind regards,

Alastair.

--
http://alastairs-place.net


_______________________________________________

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


  • Follow-Ups:
    • Re: Enabling menu items?
      • From: Kai-Mikael Jää-Aro <email@hidden>
References: 
 >Enabling menu items? (From: Kai-Mikael Jää-Aro <email@hidden>)
 >Re: Enabling menu items? (From: António Nunes <email@hidden>)
 >Re: Enabling menu items? (From: Kai-Mikael Jää-Aro <email@hidden>)
 >Re: Enabling menu items? (From: Kai-Mikael Jää-Aro <email@hidden>)

  • Prev by Date: Re: Is pointer syntax logical?
  • Next by Date: Re: Enabling menu items?
  • Previous by thread: Re: Enabling menu items?
  • Next by thread: Re: Enabling menu items?
  • Index(es):
    • Date
    • Thread