• 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
Clarification: What is exatly drawing inside a thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Clarification: What is exatly drawing inside a thread


  • Subject: Clarification: What is exatly drawing inside a thread
  • From: Stefan Pantke <email@hidden>
  • Date: Sun, 8 Feb 2004 05:46:00 +0100

As part of an application, several threads setStringValue: of a shared NSTextView
embedded in some NSLock'ed region.

I supposed, setStringValue: is no drawing operation.

But, the on screen drawing performed bad: From time to time some text-strings
were printed over and over - a over c over H, e.g.

Now I inserted the [imageOutletOL lockFocusIfCanDraw] mechanism, which seems to
solve the problem.

But why? Isn't setStringValue simply setting some internal view value and invalidating
the view? And isn't the on-screen updating done by the main thread?

Or more general: How to determine, which operations DRAW and which do not?

Kind reards,

Stefan
_______________________________________________
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.

  • Follow-Ups:
    • Re: Clarification: What is exatly drawing inside a thread
      • From: Andreas Mayer <email@hidden>
  • Prev by Date: Drawing onto NSImageView subclass (Newbie)
  • Next by Date: Re: Drawing onto NSImageView subclass (Newbie)
  • Previous by thread: Re: Drawing onto NSImageView subclass (Newbie)
  • Next by thread: Re: Clarification: What is exatly drawing inside a thread
  • Index(es):
    • Date
    • Thread