Re: NSTextView and -becomeFirstResponder
Re: NSTextView and -becomeFirstResponder
- Subject: Re: NSTextView and -becomeFirstResponder
- From: Kyle Sluder <email@hidden>
- Date: Wed, 22 Feb 2012 13:47:27 -0800
On Sun, Feb 19, 2012 at 9:29 PM, Jim McGowan <email@hidden> wrote:
> However, I'm a bit confused by the docs. -becomeFirstResponder is marked as being deprecated for NSTextView, but not deprecated in its superclass NSResponder. The NSTextView docs for this method reads:
>
> "Informs the receiver that it’s becoming the first responder. (Available in Mac OS X v10.0 through Mac OS X v10.4. Use the NSWindowmethod makeFirstResponder: to make a text view the first responder.)"
I suspect what actually happened is that
-{become,resign}FirstResponder were removed from the header file to
reduce the temptation to call them directly rather than go through
-[NSWindow makeFirstResponder:]. The "deprecation" is just how the doc
generation tools interpreted their removal.
You should file a documentation bug.
--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