I have a custom NSActionCell subclass, and I want to use setTarget: message to set it’s target to File’s Owner. Is there a way to get a pointer to File’s Owner, or to do something to that effect?
Share
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.
The file’s owner should be an instance of one of your own classes. Connect an outlet of the FO to the cell instance, and send the
setTarget:message from the FO (probably inawakeFromNib).I’m not clear on why you want to send a
setTarget:message in code, though. Why not just set the cell’s target in IB?