Re: printing and the responder chain
Re: printing and the responder chain
- Subject: Re: printing and the responder chain
- From: Torsten Curdt <email@hidden>
- Date: Tue, 04 Oct 2011 13:31:56 +0200
> In order for your custom view to become first responder, it must also return
> YES from -acceptsFirstResponder
head ... desk
Off course! I bet that was it ...but as you said: to avoid surprises I
better move the action off the first responder.
Thanks, Graham!
cheers,
Torten
> but mouse events in the outline view can
> change that to be first responder, so to avoid unexpected surprises with
> Print, I suggest you set the view to be the menu item's direct target.
> NSView has a default implementation of print (inherited by NSOutlineView).
> Also, to set the custom view to be the initial first responder, you can
> connect the window's initialFirstResponder outlet to it, to save having to
> do that in -awakeFromNib, but that still requires that the view
> acceptsFirstResponder to function.
> --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