Re: NSTextView - custom pasteboard types and text table issues
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 13:13:08 -0800 (PST)
Thanks, I'll have a go at doing something similar.
> I will consider how we might expose this sort of
> functionality in
> API.
That would be brilliant - even though the results I am
getting aren't completely horrible, it would be nice
to keep consistent with default behaviour.
Incidentally, I did file a bug, but it should still be
valid as I also reported the issue of archiving an
attributed string corrupting text table border
attributes.
Many thanks again for your help,
Keith
--- Douglas Davidson <email@hidden> wrote:
>
> On Jan 23, 2006, at 12:13 PM, Keith Blount wrote:
>
> > 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...
> >
>
> It involves comparing the text blocks immediately
> before the range of
> interest (if any) with those at the beginning of the
> range, and the
> text blocks immediately after the range of interest
> (if any) with
> those at the end of the range.
>
> I will consider how we might expose this sort of
> functionality in
> API. I would note that it is possible that any
> particular
> application might choose a different (perhaps
> simpler) heuristic for
> its 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