• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Distributed Attributed Styled Strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Finding Keyspan Twin serial ports, and only those and not the internal modem
  • Next by Date: Re: [ 1/2OT] CVS gui client for X - Results of the poll
  • Previous by thread: Finding Keyspan Twin serial ports, and only those and not the internal modem
  • Next by thread: ip address in log file
  • Index(es):
    • Date
    • Thread