• 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 - custom pasteboard types and text table issues
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView - custom pasteboard types and text table issues


  • Subject: Re: NSTextView - custom pasteboard types and text table issues
  • From: Keith Blount <email@hidden>
  • Date: Mon, 23 Jan 2006 12:13:11 -0800 (PST)

Many thanks for your reply. This makes sense, although
it does make it rather more complicated for
subclassers. :) It would be nice if there was a
documented method that did this stripping (eg.
-pastableAttributedString or some such) that
subclasses could use to stay consistent with current
and future releases...

Could you possibly give me a clue on where I would
start to emulate the default behaviour in my subclass?
As I understand it, I will have to check for the
paragraph style attribute across the range and then
look for text blocks within the paragraph style (using
-textBlocks?), although I am still unsure from the
docs about how I check whether the text block is a
table and whether it is represents a different table
across the range...

Thanks again,
Keith

--- Douglas Davidson <email@hidden> wrote:

>
> On Jan 23, 2006, at 11:31 AM, Keith Blount wrote:
>
> > This is driving me nuts. Very clearly, the usual
> > NSAttributedString and NSText RTFD/RTF methods
> cause
> > issues when copying and pasting parts of a text
> table,
> > so NSTextView must do some extra stuff in its
> paste
> > methods to get around this, but I have no idea
> what.
> >
>
> NSTextView employs a heuristic that currently
> amounts to stripping
> off all tables not completely contained in the
> selection being
> copied, and all list items not completely contained
> in the selection
> being copied.  This is likely to evolve in future
> releases.
> Obviously there are definitional questions as to the
> meaning of a
> subportion of a table when extracted to stand on its
> own; the answers
> may be different for copying than they are for other
> purposes, and
> NSTextView's behavior is intended to be reasonable
> for copying.
>
> Douglas Davidson
>
>


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSTextView - custom pasteboard types and text table issues
      • From: Douglas Davidson <email@hidden>
References: 
 >Re: NSTextView - custom pasteboard types and text table issues (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: NSTextField and NSLineBreakByTruncatingMiddle
  • Next by Date: Re: NSTextView - custom pasteboard types and text table issues
  • Previous by thread: Re: NSTextView - custom pasteboard types and text table issues
  • Next by thread: Re: NSTextView - custom pasteboard types and text table issues
  • Index(es):
    • Date
    • Thread