Skip to content

10.11 SDK note #2

@JanX2

Description

@JanX2

Just making sure that you have seen this. From the deprecation note for -insertText: in the 10.11 SDK.

Use -insertText:replacementRange: from NSTextInputClient instead. Since the method is designed to be used solely by the input system, the message should never be sent to a text view from applications. Any content modifications should be via either NSTextStorage or NSText methods.

See also: http://stackoverflow.com/questions/32787814/nstextviews-inserttext-method-is-deprecated-in-os-x-v10-11-what-is-the-replace

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions