Re: File's owner as target of button-action

2008-10-07 Thread Andreas Eriksson
>> I guess I have misunderstood something here. Is there something special
>> about
>> File's Owner that prevents this from working?
>
>  There's not enough information here to answer your question. You should
> post:
>
> 1 - How you instantiate your custom NSViewController class and load the nib.
> 2 - The code listing for the method in question.
> 3 - Where, exactly, the EXC_BAD_ACCESS is encountered.

My bad. I had managed to release the NSViewController (File's Owner). Thanks!

Regards

Andreas
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: File's owner as target of button-action

2008-10-07 Thread I. Savant

On Oct 7, 2008, at 2:34 PM, Andreas Eriksson wrote:

I guess I have misunderstood something here. Is there something  
special about

File's Owner that prevents this from working?


  There's not enough information here to answer your question. You  
should post:


1 - How you instantiate your custom NSViewController class and load  
the nib.

2 - The code listing for the method in question.
3 - Where, exactly, the EXC_BAD_ACCESS is encountered.

--
I.S.



___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


File's owner as target of button-action

2008-10-07 Thread Andreas Eriksson
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
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]