Hi,
I wonder if there is a way to simply find out if a specific NSTextField is active or in Focus.
Probably one can use the firstResponder... like this but I get warning
NSResponder may not respond to delegate...
Are there any other means of getting this done ?
I will appreciate a tip.
Thank you in advance.
/petron
I wonder if there is a way to simply find out if a specific NSTextField is active or in Focus.
Probably one can use the firstResponder... like this but I get warning
NSResponder may not respond to delegate...
Code:
NSTextField *aFiled = [thisWindow firstResponder] delegate]
if (aField == muTextField) {
NSLog(@"muTextField is in focus");
} else {
NSLog(@"muTextField is not in focus");
}
Are there any other means of getting this done ?
I will appreciate a tip.
Thank you in advance.
/petron