in NSTextView :Attributes of pasted Text different from original Text
in NSTextView :Attributes of pasted Text different from original Text
- Subject: in NSTextView :Attributes of pasted Text different from original Text
- From: rajesh <email@hidden>
- Date: Fri, 21 Nov 2008 15:54:53 +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