• 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
Re: NSImage thread safety
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage thread safety


  • Subject: Re: NSImage thread safety
  • From: j o a r <email@hidden>
  • Date: Mon, 31 Jan 2005 20:18:05 +0100


On 2005-01-31, at 19.47, Benjohn wrote:

I'm trying to sort out a crash in our application. Having turned lots of things off, I'm currently suspicious that it's down to two threads concurrently querying the same NSImage (specificially, asking for its bounds). Can this cause a problem?

"bounds" is not a property of NSImage...

Have you read the available documentation for thread safety concerns with Cocoa classes? As a rule of thumb I would say that you should never assume that anything is thread safe unless it's explicitly stated that it is.

Try to create a test case where you can reproduce the problem. It would be useful to have if you'd like to have more input from the list, or if you would like to contact Apple about it.

Can you remove the crashes completely by locking access to the images by only one thread at a time? How easy is it to reproduce the problem?

j o a r

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >NSImage thread safety (From: Benjohn <email@hidden>)

  • Prev by Date: Re: disable black boxes in NSTableView during d'n'd
  • Next by Date: writing to a file...
  • Previous by thread: Re: NSImage thread safety
  • Next by thread: writing to a file...
  • Index(es):
    • Date
    • Thread