• 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
Safety of re-entering -[NSWindow makeFirstResponder:]?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: NSOperationQueue and for-loop
  • Next by Date: Re: NSOperationQueue and for-loop
  • Previous by thread: Re: NSOperationQueue and for-loop
  • Next by thread: Suggestions for handling old document files with file paths in a sandbox environment
  • Index(es):
    • Date
    • Thread