Opened 12 years ago

Closed 12 years ago

#84 closed defect (fixed)

Can't paste from outside the IDE

Reported by: gz Owned by: gb
Priority: major Milestone:
Component: IDE Version:
Keywords: Cc:

Description

Go into textedit and Copy some text. Go back in the IDE, select an editor buffer and select Edit>Paste

* Error in event process: Objective-C runtime exception: Attempt to mutate immutable object with replaceOccurrencesOfString:withString:options:range:

I've attached the backtrace

Attachments (1)

backtrace-paste.txt (4.4 KB) - added by gz 12 years ago.
backtrace

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by gz

backtrace

comment:1 Changed 12 years ago by gb

  • Status changed from new to assigned

This has something to do with trying to replace #\return with #\linefeed in the text obtained from the clipboard. It doesn't have much to do with what application put that text on the clipboard.

comment:2 Changed 12 years ago by gb

  • Resolution set to fixed
  • Status changed from assigned to closed

This seems to be fixed in changeset:7106; the "private" class NSCFString is a subclass of NSMutableString, but isn't in fact mutable, so always make a mutable copy of what's obtained from the clipboard if it's necessary to replace CR with LF.

Note: See TracTickets for help on using tickets.