Re: Using NSView as a template
Re: Using NSView as a template
- Subject: Re: Using NSView as a template
- From: Allan Odgaard <email@hidden>
- Date: Mon, 8 Mar 2004 03:01:30 +0100
On 8. Mar 2004, at 2:53, Matt Ball wrote:
Could it be that the object which implement the action method is not
in the responder chain?
I don't think so. It's in the same function as the rest of the
commands (setTitle, etc), which are getting called fine.
When you set an action method and no target, then it will search the
responder chain for the first object which implement this action
method, thus there must be an object which implement the method and
which is in the responder chain when the button is pressed.
You have not showed enough code for me to verify that this is the case,
and I cannot make sense about the above, sounds like you confuse the
"responder chain" concept with something else.
Since the setTitle: does work, I would think that the setAction: also
work, but that it is the responder chain which is your problem.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.