• 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: Random image problem has me stumped :(
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Random image problem has me stumped :(


  • Subject: Re: Random image problem has me stumped :(
  • From: Serge Meynard <email@hidden>
  • Date: Wed, 23 Mar 2005 18:38:41 -0500

On Mar 23, 2005, at 18:27, John Brownlow wrote:

That example locks focus on 'self' which is an NSView. There's a typo in the mail which says it is a category on NSImage, but it isn't. His example shows how you draw into a view and then take a snapshot of it.

On Mar 23, 2005, at 6:16 PM, Serge Meynard wrote:

I'm not sure I understand your point... Using lockFocus is how you draw into, or read back from, an arbitrary NSImage, isn't it? Your own post from 2 years ago at (http://lists.apple.com/archives/cocoa-dev/2002/Dec/msg00447.html) does exactly the same thing. The code above isn't a prelude to drawing the image, it's just a couple of lines of test code I added right after I'm done creating the image, to check the image's validity using the debugger.

You're right, I missed that detail. Still, the call to initWithFocusedViewRect: does actually work for the 99% of images that are valid. And even if we forget about that, the fact remains that some images are broken, test code or not. I'm still no closer to understanding *what* is wrong about the last 1% of images or *why* it goes wrong. And no, it's not related to views or focus; the images are all created in the same loop and in exactly the same way.


_______________________________________________
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


  • Follow-Ups:
    • Random image problem solved, but...
      • From: Serge Meynard <email@hidden>
References: 
 >Random image problem has me stumped :( (From: Serge Meynard <email@hidden>)
 >Re: Random image problem has me stumped :( (From: "John C. Randolph" <email@hidden>)
 >Re: Random image problem has me stumped :( (From: Serge Meynard <email@hidden>)
 >Re: Random image problem has me stumped :( (From: John Brownlow <email@hidden>)

  • Prev by Date: Re: image larger than 32*32 in toolbar
  • Next by Date: Re: loop efficiency & messages
  • Previous by thread: Re: Random image problem has me stumped :(
  • Next by thread: Random image problem solved, but...
  • Index(es):
    • Date
    • Thread