Re: Custom NSView and NSUndoManager SOLVED
Re: Custom NSView and NSUndoManager SOLVED
- Subject: Re: Custom NSView and NSUndoManager SOLVED
- From: "John C. Randolph" <email@hidden>
- Date: Sat, 12 Nov 2005 01:54:01 -0800
On Nov 10, 2005, at 3:37 PM, Benjamin Dunton wrote:
I figured out my problem. Just incase someone else comes along who
does not quite understand the NSResponder, a brief explanation:
The NSResponder handles events and actions for objects, normally
the window or views. In the case of NSUndoManager, whenever
anything is added to the undo stack the responder chain is
traversed looking for the first responder that can handle the undo:
action.
Ben, I wouldn't put it quite that way. What you've written above
implies that there's only one NSResponder. In fact, NSResponder is a
class from which both NSWindow and NSView are descendants. Views,
Windows, and the Application instance itself, are responders
themselves; they don't have a responder handling events for them.
-jcr
John C. Randolph <email@hidden> (408) 914-0013
Roaming Cocoa Engineer,
Available for your projects at great Expense and Inconvenience.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden