I can see that would work; but I am wondering whether a simpler and more elegant mechanism exists, something just like NSUserInterfaceValidations and NSValidatedUserInterfaceItem. But thank you all the same.
On Wed, Aug 6, 2008 at 6:37 PM, Negm-Awad Amin <[EMAIL PROTECTED]> wrote: > Did you try a subclass of NSWindow and overriding -setFirstResponder:? > > Amin > Am Di,05.08.2008 um 15:36 schrieb an0: > >> I know how to do this for NSValidatedUserInterfaceItem by implementing >> `- (BOOL)validateUserInterfaceItem:(id < NSValidatedUserInterfaceItem >>> >>> )anItem'; however, NSSegmentedControl and NSButton do not conform to >> >> NSValidatedUserInterfaceItem protocol, then how can I switch the >> enable status of these controls as an IMMEDIATE response to the focus >> transfer? >> Thanks in advance. >> _______________________________________________ >> >> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) >> >> 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/negm-awad%40cocoading.de >> >> This email sent to [EMAIL PROTECTED] > > Amin Negm-Awad > [EMAIL PROTECTED] > > > > > _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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]