Hi All,

I'm re-learning Cocoa (been on Windows/Java for the last 5-6 years) using "Cocoa Programming For Mac OS X" third edition. I'm at chapter 19 (keyboard events) and I've noticed that my custom view (BigLetterView for those who know the book) overridden - (BOOL)acceptsFirstResponder is sometime called multiple times:

- 2 times at launch (before becoming firstResponder),
- 2 times after pressing tab for the first time (before resigning),
- 4 times when tabbing in

The author has a remark about it saying:

"Yes, acceptsFirstResponder gets called more times than you might expect each time the view is selected"

but doesn't say why...

Just for my own curiosity, why??

Thanks,

Andre Masse

PS: Glad to see some familiar names from MacZoop times. Hi to Graham Cox and Uli Kusterer! I see you're both as helpfull now than you were then :-)
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to