• 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
NSReadPixel crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSReadPixel crash


  • Subject: NSReadPixel crash
  • From: Alexander Cohen <email@hidden>
  • Date: Fri, 02 Nov 2007 13:15:59 -0400

I'm using NSReadPixel in a mouseMoved event on a view to read the color of a pixel where the mouse is and display it to the user. ON 10.5 all is good. If i use the same images on 10.4, once in a while, i'll get a crash. And the log is not very helpfull, it just ends with the said function. In any case, here's how i'm getting the color:

[self lockFocus];
NSColor* c = NSReadPixel(pt) // got point from a [self convertPoint ...] using the event from the mouseMoved message
[self unlockFocus]


What could cause NSReadPixel to crash straight out like that?

thanks

AC
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Printing and view bounds
  • Next by Date: Switch Spaces Programmatically?
  • Previous by thread: Printing and view bounds
  • Next by thread: Switch Spaces Programmatically?
  • Index(es):
    • Date
    • Thread