mysterious problem with first responder
mysterious problem with first responder
- Subject: mysterious problem with first responder
- From: David Harper <email@hidden>
- Date: Wed, 8 Aug 2007 19:40:18 -0400 (EDT)
Hi,
I'm developing an application with nested subviews, and on my most recent attempt to build a release version of this application (as opposed to a debug version), a strange problem surfaced.
In the release version, one of the custom views I've created, which is added to the window as a subclass of another custom view, will not accept first responder. It is set as the nextKeyView to a regular NSTextField. Everything works completely fine in the debug version.
I painstakingly went through the debug and release targets and modified one build option at a time. It turned out the problem was optimization. As it turned out, ANY optimization, O1, O2, O3, O4, and O5 all broke my application to such an extent to make it unusable.
I've basically ignored optimization settings all my life. Does anybody have any idea what might have caused this?
_______________________________________________
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