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

NSTextView :Attributes of pasted text different from original Text


  • Subject: NSTextView :Attributes of pasted text different from original Text
  • From: rajesh <email@hidden>
  • Date: Fri, 21 Nov 2008 16:34:11 +0100

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


  • Follow-Ups:
    • Re: NSTextView :Attributes of pasted text different from original Text
      • From: rajesh <email@hidden>
  • Prev by Date: in NSTextView :Attributes of pasted Text different from original Text
  • Next by Date: Re: BOOL value in Dictionary
  • Previous by thread: in NSTextView :Attributes of pasted Text different from original Text
  • Next by thread: Re: NSTextView :Attributes of pasted text different from original Text
  • Index(es):
    • Date
    • Thread