Safety of re-entering -[NSWindow makeFirstResponder:]?
Safety of re-entering -[NSWindow makeFirstResponder:]?
- Subject: Safety of re-entering -[NSWindow makeFirstResponder:]?
- From: Kyle Sluder <email@hidden>
- Date: Tue, 02 Oct 2012 15:42:47 -0700
Hey all,
Is it safe to re-enter -[NSWindow makeFirstResponder:]? Specifically, I
am thinking of overriding -becomeFirstResponder to call [window
makeFirstResponder:someOtherView].
The answer to this question seems intuitively yes, since that's how one
would expect a view makes use of the field editor (perhaps with an
intervening call to -editWithFrame:inView::::]). But whenever dealing
with hairy issues like reentrancy I always prefer if the acceptable
behaviors and limitations are documented explicitly.
Would it be possible to extract an explicit guarantee that this pattern
is supported?
--Kyle Sluder
_______________________________________________
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