hello, everybody.
i have a nswindow and it contains myview. the myview has a myviewcontroller.
1.
within the myviewcontroller.m,
...
[[myview window] makeFirstResponder: myview];
then whether the myview' s acceptsFirstResponder: method returns YES or NO, myview will become the first responder.
according to apple's documentation, it should not be the first responder, when acceptsFirstResponder: method returns NO.
2.
if i set override the acceptsFirstResponder: and make it return YES. the myview becomes the first responder automatically. i even don't need to send makeFirstResponder: or set it in the IB.
why would it have have the chance to became the first responder?
could someone explain these? it's very confusion.
i have a nswindow and it contains myview. the myview has a myviewcontroller.
1.
within the myviewcontroller.m,
...
[[myview window] makeFirstResponder: myview];
then whether the myview' s acceptsFirstResponder: method returns YES or NO, myview will become the first responder.
according to apple's documentation, it should not be the first responder, when acceptsFirstResponder: method returns NO.
2.
if i set override the acceptsFirstResponder: and make it return YES. the myview becomes the first responder automatically. i even don't need to send makeFirstResponder: or set it in the IB.
why would it have have the chance to became the first responder?
could someone explain these? it's very confusion.