I put several controls (button,textfield,…) in a NSBox. is it possible to disable NSBox that user can’t access controls (means can’t click on button or write in textfield)?
how about nsview ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Or, if you have a custom NSBox, you can override NSView’s -hitTest: (conditionally)
To stop the window from sending events to all your subviews.
To provide visual feedback, conditionally drawing some sort of overlay in the custom NSBox’s -drawRect method would work.