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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to