Re: NSConcreteNotifyingMutableAttributedString
Re: NSConcreteNotifyingMutableAttributedString
- Subject: Re: NSConcreteNotifyingMutableAttributedString
- From: Pierre Chatel <email@hidden>
- Date: Thu, 31 Mar 2005 01:31:40 -0300
since, it's the third time in a row that i don't get any answer to my questions (did i even ever get an answer btw?) on the list i think i must write very hard problems... or very dumb questions (the second one being the most probable).
Perhaps i didn't follow some hidden posting rules ?!
Or are all the answers misteriously lost on their way to my computer ??
Sorry, i don't want to be such a *** head. But, each day, i read clever and dumb mails on this list which are, most of the time (90%), answered. So am i an exception ??
If i'm totally off-topic on this list, please give me links to places where i could get more support !
Pierre
On 30 mars 05, at 13:39, Pierre Chatel wrote:
Hi there !
i have this NSTextField in my application, i enabled it for RTF and image support. So now i can drag images in the middle of the text i'm writing. I also added a standard font panel to my application.
Here comes the problem: if i select a piece of text with pictures and try to change font attributes with the font panel, i get this error and the NSTextView begins to behave strangely:
NSConcreteNotifyingMutableAttributedString addAttribute:value:range:: nil value
So i suppose that's it's somehow related to trying to apply font attributes to a pictures, and that "value" or "range" must be nil, causing the error. I looked at the code of TextEdit and i didn't find anything related to this issue: when you are in RTF mode in TextEdit you can apply font settings to text and images at the same time without problems.
Here is an extract of the code i'm using to create an empty NSTextView:
textView = [[[NSTextView alloc] initWithFrame:rectSave] autorelease];
[textView setAutoresizingMask:oldMask];
[textView setRichText:];
[textView setImportsGraphics:];
NSDictionary *textAttributes = [ defaultTextAttributes];
[textView setTypingAttributes:textAttributes];
[[[textView textStorage] mutableString] setString:];
Please help, as i'm really confused with this issue.
Thanks !
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden