• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Responder Chain and newDocument:, runPageLayout:, etc
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Responder Chain and newDocument:, runPageLayout:, etc (From: Timothy Hatcher <email@hidden>)

  • Prev by Date: Re: Sample MultiColumn Text Code Posted - With BUG!
  • Next by Date: Re: Drawing a view inside an image
  • Previous by thread: Responder Chain and newDocument:, runPageLayout:, etc
  • Next by thread: Re: Responder Chain and newDocument:, runPageLayout:, etc
  • Index(es):
    • Date
    • Thread