Important: The information in this document is obsolete and should not be used for new development.
Inherits from | |
Implements | |
Package | com.apple.cocoa.application |
Companion guide |
NSInputServer and NSInputManager are central to the mechanism that interprets keystrokes and delivers text characters to text view objects. NSInputServer objects provide the direct interface between the user and the text management system, communicating to text views via NSInputManager.
activeConversationChanged
activeConversationWillChange
canBeDisabled
doCommandBySelector
inputClientBecameActive
inputClientDisabled
inputClientEnabled
inputClientResignActive
insertText
markedTextAbandoned
markedTextSelectionChanged
terminate
wantsToDelayTextChangeNotifications
wantsToHandleMouseEvents
wantsToInterpretAllKeystrokes
Constructs an input server with optional delegate and with name.
public NSInputServer
(Object delegate, String name)
The given name identifies this service in the IPC mechanism, so NSInputManager can find it. If delegate is null
, then the methods in this class must be overridden in a subclass of NSInputServer. If delegate is non-null
, then all methods forward to the delegate, which must implement the NSInputServiceProvider interface and which may need to implement the NSInputServerMouseTracker interface.
Forwards to the delegate if provided.
public void activeConversationChanged
(Object anObject, int anInt)
activeConversationChanged
(NSInputServiceProvider)Forwards to the delegate if provided.
public void activeConversationWillChange
(Object anObject, int anInt)
activeConversationWillChange
(NSInputServiceProvider)Returns false
or forwards to the delegate if provided.
public boolean canBeDisabled
()
canBeDisabled
(NSInputServiceProvider)Forwards to the delegate if provided.
public void doCommandBySelector
(NSSelector aSelector, Object anObject)
doCommandBySelector
(NSInputServiceProvider)Forwards to the delegate if provided.
public void inputClientBecameActive
(Object anObject)
inputClientBecomeActive
(NSServiceProvider)Forwards to the delegate if provided.
public void inputClientDisabled
(Object anObject)
inputClientDisabled
(NSInputServiceProvider)Forwards to the delegate if provided.
public void inputClientEnabled
(Object anObject)
inputClientEnabled
(NSInputServiceProvider)Forwards to the delegate if provided.
public void inputClientResignActive
(Object anObject)
inputClientResignActive
(NSInputServiceProvider)Forwards to the delegate if provided.
public void insertText
(Object anObject, Object anObject)
insertText
(NSInputServiceProvider)Forwards to the delegate if provided.
public void markedTextAbandoned
(Object anObject)
markedTextAbandoned
(NSInputServiceProvider)Forwards to the delegate if provided.
public void markedTextSelectionChanged
(NSRange aRange, Object anObject)
markedTextSelectionChanged
(NSInputServiceProvider)Returns false
or forwards to the delegate if provided.
public boolean mouseDownOnCharacterIndex
(int anInt, NSPoint aPoint, int anInt, Object anObject)
mouseDownOnCharacterIndex
(NSInputServiceMouseTracker)Returns false
or forwards to the delegate if provided.
public boolean mouseDraggedOnCharacterIndex
(int anInt, NSPoint aPoint, int anInt, Object anObject)
mouseDraggedOnCharacterIndex
(NSInputServiceMouseTracker)Returns false
or forwards to the delegate if provided.
public void mouseUpOnCharacterIndex
(int anInt, NSPoint aPoint, int anInt, Object anObject)
mouseUpOnCharacterIndex
(NSInputServerMouseTracker)Forwards to the delegate if provided.
public void terminate
(Object sender)
terminate
(NSInputServiceProvider)Returns false
or forwards to the delegate if provided.
public boolean wantsToDelayTextChangeNotifications
()
wantsToDelayTextChangeNotifications
(NSInputServiceProvider)Returns false
or forwards to the delegate if provided.
public boolean wantsToHandleMouseEvents
()
wantsToHandleMouseEvents
(NSInputServiceProvider)Returns false
or forwards to the delegate if provided.
public boolean wantsToInterpretAllKeystrokes
()
wantsToInterpretAllKeystrokes
(NSInputServiceProvider)© 1997, 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-02-01)