• 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 :Attributes of pasted text different from original Text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextView :Attributes of pasted text different from original Text


  • Subject: Re: NSTextView :Attributes of pasted text different from original Text
  • From: rajesh <email@hidden>
  • Date: Fri, 21 Nov 2008 17:07:39 +0100

Sorry for spam,

I canceled the previous request but it appeared back in the list.

Though question is still open :)



On Nov 21, 2008, at 4:34 PM, rajesh wrote:

Hi,

I am working on parsing a piece of text, based on Attributes

, when I copy a piece of text and paste it , the pasted text seems to lose certain attributes , ( especially and only the Color attributes )
here is the piece of code and lines from log


[[[txtView attributedString] attributesAtIndex:selRange.location effectiveRange:&rng] valueForKey:@"NSColor"];
[[[txtView attributedString] attributesAtIndex:selRange.location effectiveRange:&rng] valueForKey:@"NSFont"];


2008-11-21 15:41:31.966 text Attribute (null)
2008-11-21 15:41:31.968 text Attribute "Helvetica-BoldOblique 21.00 pt. P [] (0x001aa6c0) fobj=0x0014f030, spc=5.83"


2008-11-21 15:42:40.081 text Attribute NSCalibratedRGBColorSpace 0 0 0 1
2008-11-21 15:42:40.082 text Attribute "Helvetica-BoldOblique 21.00 pt. P [] (0x001e6960) fobj=0x0014f030, spc=5.83"



just implemented - (void)textDidChange:(NSNotification *)aNotification to see the attribute changes


any suggestion is appreciated

Thanks in advance
Devi
_______________________________________________

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

_______________________________________________

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


References: 
 >NSTextView :Attributes of pasted text different from original Text (From: rajesh <email@hidden>)

  • Prev by Date: Re: Cocoa "canvas" view ?
  • Next by Date: Re: Autorelease Question
  • Previous by thread: NSTextView :Attributes of pasted text different from original Text
  • Next by thread: Programmatic control of NSTableView selection?
  • Index(es):
    • Date
    • Thread