Next Page > Hide TOC

Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

NSInputServer

Inherits from
Implements
Package
com.apple.cocoa.application
Companion guide

Overview

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.

Interfaces Implemented

NSInputServiceProvider
NSInputServerMouseTracker

Tasks

Constructors

NSInputServiceProvider Interface Implementations

NSInputServerMouseTracker Interface Implementations

Constructors

NSInputServer

Constructs an input server with optional delegate and with name.

public NSInputServer(Object delegate, String name)

Discussion

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.

Instance Methods

activeConversationChanged

Forwards to the delegate if provided.

public void activeConversationChanged(Object anObject, int anInt)

See Also

activeConversationWillChange

Forwards to the delegate if provided.

public void activeConversationWillChange(Object anObject, int anInt)

See Also

canBeDisabled

Returns false or forwards to the delegate if provided.

public boolean canBeDisabled()

See Also

doCommandBySelector

Forwards to the delegate if provided.

public void doCommandBySelector(NSSelector aSelector, Object anObject)

See Also

inputClientBecameActive

Forwards to the delegate if provided.

public void inputClientBecameActive(Object anObject)

See Also

inputClientDisabled

Forwards to the delegate if provided.

public void inputClientDisabled(Object anObject)

See Also

inputClientEnabled

Forwards to the delegate if provided.

public void inputClientEnabled(Object anObject)

See Also

inputClientResignActive

Forwards to the delegate if provided.

public void inputClientResignActive(Object anObject)

See Also

insertText

Forwards to the delegate if provided.

public void insertText(Object anObject, Object anObject)

See Also

markedTextAbandoned

Forwards to the delegate if provided.

public void markedTextAbandoned(Object anObject)

See Also

markedTextSelectionChanged

Forwards to the delegate if provided.

public void markedTextSelectionChanged(NSRange aRange, Object anObject)

See Also

mouseDownOnCharacterIndex

Returns false or forwards to the delegate if provided.

public boolean mouseDownOnCharacterIndex(int anInt, NSPoint aPoint, int anInt, Object anObject)

See Also

mouseDraggedOnCharacterIndex

Returns false or forwards to the delegate if provided.

public boolean mouseDraggedOnCharacterIndex(int anInt, NSPoint aPoint, int anInt, Object anObject)

See Also

mouseUpOnCharacterIndex

Returns false or forwards to the delegate if provided.

public void mouseUpOnCharacterIndex(int anInt, NSPoint aPoint, int anInt, Object anObject)

See Also

terminate

Forwards to the delegate if provided.

public void terminate(Object sender)

See Also

wantsToDelayTextChangeNotifications

Returns false or forwards to the delegate if provided.

public boolean wantsToDelayTextChangeNotifications()

See Also

wantsToHandleMouseEvents

Returns false or forwards to the delegate if provided.

public boolean wantsToHandleMouseEvents()

See Also

wantsToInterpretAllKeystrokes

Returns false or forwards to the delegate if provided.

public boolean wantsToInterpretAllKeystrokes()

See Also


Next Page > Hide TOC


© 1997, 2007 Apple Inc. All Rights Reserved. (Last updated: 2007-02-01)


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.