Distributed Attributed Styled Strings
Distributed Attributed Styled Strings
- Subject: Distributed Attributed Styled Strings
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Wed, 26 Mar 2003 13:56:47 +0100
In another thread there is this method:
- (NSMutableAttributedString *)attributedString ;
{
id paraStyle = [ NSParagraphStyle defaultParagraphStyle ] ;
id aa = [ [ [ NSMutableAttributedString alloc ] initWithString: @"abc"
] autorelease ] ;
// removing the next line makes the error go away
[ aa addAttribute: NSParagraphStyleAttributeName value: paraStyle
range: NSMakeRange( 0, 3 ) ];
return aa ;
}
The main thread does:
id aa = [ someProxy attributedString ] ;
id bb = aa ;
This results in an NSObjectInaccessibleException
with the following reason:
[NOTE: this exception originated in the server.] NSDistantObject access
attempted from another thread
What am I doing wrong here?
When I remove the NSParagraphStyle before doing anything with the
returned attributed string, all is fine.
Other attributes (colour, font) do not make any problems.
Gerriet.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.