Skip NSTextField?

I have a static NSTextFieldone that overlays a big error message in my OS X application. I'm trying to get it to allow the user to click the controls under it.

In IB, I turned off "on" and I checked "Fails first responder"

I also did this in code because this does not work:

[largeErrorText setEnabled:NO];
[largeErrorText setRefusesFirstResponder:YES];

However, this makes it difficult to interact with the objects below. Any ideas what else could be?

+5
source share
2 answers

, , , - ( NSTextField) hitTest, . , NSTextField , NSView .

- (NSView*)hitTest:(NSPoint)aPoint
{
    return nil;
}
+19

, , :

enter image description here

NSTextField, , , NSButton

, " ". , . , , , NSTextField "" , . , "" > "" > " ". , , .

0

All Articles