Re: Responder Chain and newDocument:, runPageLayout:, etc
Re: Responder Chain and newDocument:, runPageLayout:, etc
- Subject: Re: Responder Chain and newDocument:, runPageLayout:, etc
- From: Dietrich Epp <email@hidden>
- Date: Mon, 9 Dec 2002 18:37:47 -0800
On Monday, December 9, 2002, at 01:54 , Timothy Hatcher wrote:
This has been bothering me. How would I duplicate the behavior of these
menu items? These menu items point to 'First Responder' in IB; however,
they are always active when no windows are open. I haven't been able to
figure out how to make one of my custom objects behave this way. I have
tired messing with validateMenuItem:, but since the target is the
responder chain, none of my objects get a validate request for my menu
items. Any suggestions on how to mimic this behavior?
Mimic the behavior using what? Seems that New works just fine, I don't
see why a mimic is necessary.
The First Responder just means "try each object in the responder chain
until you get one that works". It will try each object, and if the
object responds to the selector, it will ask the object to validate the
menu item. The application is the last object to be asked.
http://developer.apple.com/techpubs/macosx/Cocoa/TasksAndConcepts/ProgrammingTopics/
BasicEventHandling/Concepts/AboutRespChain.html
_______________________________________________
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.