I have a static NSTextField
that overlays a large error message in my OS X app. I\'m trying to get it to allow the user to click controls beneath it.
In
The only way I have found to make an object transparent to the click is to subclass that object (in your case the NSTextField) and override the hitTest method returning nil. This way that NSTextField will not respond to the click so the NSView below will respond to the click.
- (NSView*)hitTest:(NSPoint)aPoint
{
return nil;
}