Skip navigation.
 
mlFile's owner as target of button-action
FROM : Andreas Eriksson
DATE : Tue Oct 07 20:34:21 2008

I have a nib-file with the File's Owner class set to my own subclass of
NSViewController. The nib-file also contains a custom view with a button whose
target and action is set to a method in File's Owner.

The trouble is that I get EXC_BAD_ACCESS when I click the button and it tries
to call my action method.

I guess I have misunderstood something here. Is there something special about
File's Owner that prevents this from working?

Regards,

Andreas

Related mailsAuthorDate
mlFile's owner as target of button-action Andreas Eriksson Oct 7, 20:34
mlRe: File's owner as target of button-action I. Savant Oct 7, 21:06
mlRe: File's owner as target of button-action Andreas Eriksson Oct 7, 21:09