Re: Enabling menu items?
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