• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTextView Copy-and-Paste Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView Copy-and-Paste Problem


  • Subject: Re: NSTextView Copy-and-Paste Problem
  • From: Charles Jenkins <email@hidden>
  • Date: Mon, 02 Mar 2015 10:09:13 -0500

Can I convince anyone to look at my demo app and tell me what if anything I'm doing wrong?

I can hardly believe copying and pasting in a text view would lose or replace attributes like this . . . seems like a very serious bug someone would have noticed long before me.

-- 

Charles

On February 28, 2015 at 06:25:39, Charles Jenkins (email@hidden) wrote:

I’m having problems with text attributes getting mangled by copy-and-paste operations within the selfsame text view. Obviously text pasted in from outside the app would have an unpredictable set of attributes, but you’d think copying and pasting in the same text view would leave you with a consistent set of attributes.

I fought the Swift battle to create a quick-and-dirty demonstration app which, if you are so inclined, you can check out from GitHub:

https://github.com/CharlesJenkins/TextViewRevealer/tree/master

(This is my first foray into GitHub, so let me know if something is missing from my project.)

I’d like to know if this behavior is expected or a bug, or if there is something else I’m supposed to do in my code to make copying and pasting work better by faithfully copying text attributes.

— 

Charles
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: NSTextView Copy-and-Paste Problem
      • From: Martin Wierschin <email@hidden>
  • Prev by Date: Re: Responsive scrolling control with lots of subviews
  • Next by Date: Re: Responsive scrolling control with lots of subviews
  • Previous by thread: Re: Responsive scrolling control with lots of subviews
  • Next by thread: Re: NSTextView Copy-and-Paste Problem
  • Index(es):
    • Date
    • Thread