Re: firstResponder help
Re: firstResponder help
- Subject: Re: firstResponder help
- From: publiclook <email@hidden>
- Date: Fri, 28 Mar 2003 19:19:20 -0500
A simple search for the words "Interface Builder first responder" on
Apple's eveloper page produces the following information in the hits
page without even following a link:
".. a menu item from Interface BuilderBs Menu palette into your
applicationBs main
menu and hook it up to an NSTextView (either through the first
responder or by ... "
"... to write it yourself. You need to manually add them to the First
Responder in Interface
Builder, the same way you would add actions to your own custom classes
..."
"... responder action connections to make (that is, in Interface
Builder connect the menu
command to the First Responder icon, which looks like a big B1B, in
the ..."
"... connections that are not made to the First Responder. ... object
to its minimum size:
In your interface, enter the longest possible piece of text ..."
".. is not in a Project Builder project, the Images pane ... t appear
in your interface, but
that you may ... make connections to. The First Responder is the the
..."
".. bug), so you // have to manually add those methods to the First
Responder in Interface
Builder (by hitting return on the First Responder and // adding the
new ... "
All of the Cocoa books in print explain the responder chain, actions
messages, and the First Responder "place holder" icon in Interface
Builder.
Apple's own documentation explains it all nicely too. The reference you
want are under Programming Topics in the NSResponder class
documentation and in other places as well.
http://developer.apple.com/techpubs/macosx/Cocoa/TasksAndConcepts/
ProgrammingTopics/BasicEventHandling/index.html
These cover topic including automatic menu validation (via the
responder chain) and document based applications use of the responder
chain, and more.
Almost all of the basic Cocoa tutorials introduce the First Responder
icon in Interface Builder.
Apple's "Getting Started" page lists among others the Vermont Recipes
at www.Stepwise.com. These concepts are explained there. See also
O'Rielly's articles on-line and cocoadev and more.
The First Responder icon in Interface Builder is very well (almost
ubiquitously) documented by Apple and others.
See "The steps described in the following sections show how to create a
document-based application using Project Builders document-based
project template. If this project template is not available on your
system, you will have to complete the tasks listed above yourself. If
so, the following table lists the appropriate first-responder action
connections to make (that is, in Interface Builder connect the menu
command to the First Responder icon, which looks like a big 1, in the
nib file window):" at
http://developer.apple.com/techpubs/macosx/Cocoa/TasksAndConcepts/
ProgrammingTopics/Documents/Tasks/ImplementingDocApp.html.
On Friday, March 28, 2003, at 04:55 PM, James Mooney wrote:
You know......if this was in a book or manual somewhere.......... it
would be a lot of help.
I greatly appreciate the clarification.
Jim
On Friday, March 28, 2003, at 04:42 PM, A.M. wrote:
These are methods that the windows and menus created as actions like
"copy:". They are part of the template project that you used when you
created your project. You can of course add your own. You might have
to delete menu items and other elements to delete them first. You
should read about "Nil-targeted actions". For example, when you hit
Apple-C for copy, this is a nil-targeted action and it sends the
message through the responder chain since it doesn't know in advance
who wants to know about the copy action. These are greyed out because
you cannot edit them- perhaps as a buffer against accidental
deletion- it's easy to override their default actions: just put
something in the responder chain higher up since as soon as there is
a "hit", the app stops traversing the chain.
On Friday, Mar 28, 2003, at 15:42 US/Eastern, James Mooney wrote:
This is in the IB "Classes" tab
Kinda....... if you click on the first responder in the gui
window.....has file permission, first responder, and perhaps a
window icon and some instaniated class of two you made
click on first responder and hit command (open apple key) 1
The window that appears shows the outlets and actions for first
responder?............if first responder is a pointer to the
Responder Chain, are these all the methods for the entire project?
On Friday, March 28, 2003, at 03:07 PM, A.M. wrote:
Black means "a declared and instantiated class" and grey means
"declared but uninstantiated class". This is in the IB "Classes"
tab right? Often, grey ones are classes that you can then
instantiate and show up black under your instantiated name.
On Friday, Mar 28, 2003, at 15:05 US/Eastern, James Mooney wrote:
So let me ask you this
I get the responder chain, and one person sent me a message saying
the FirstResponder just adds a method to the responder chain. I
understand the effect this has on the operation of the application
to some degree. Question.....why are some methods dark and some
light in the actions panel under the first responder?
Jim
On Friday, March 28, 2003, at 02:29 PM, A.M. wrote:
indow is just the programmer-specified widget or GUI element
which should be first in the NSResponder chain.
><><><><><><><><><
AgentM
email@hidden
><><><><><><><><><
AgentM
email@hidden
_______________________________________________
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.
_______________________________________________
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.