Re: NSTextView :Attributes of pasted text different from original Text
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