• 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
Background threading in an NSView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Background threading in an NSView?


  • Subject: Background threading in an NSView?
  • From: Michael Becker <email@hidden>
  • Date: Sun, 13 Feb 2005 02:53:27 +0100

Hi!

We all know iPhoto's effect that when you zoom (or scroll) images, their quality is fairly bad. But if you stop zooming or hesitate during zooming, the images' quality gets better. It feels like during zoom a very bad resize of the images is used and as soon as the good quality resize is done, that one is then applied.

And here goes my question: Is it reasonable and possible to create a thread that does nothing more than resize the images according to the current zoom-factor so that they will then be used by the view's drawRect: method? I am thinking about using very small thumbnails for the realtime-zooming and then as soon as the thread managed to create the good quality resizes, these are used.

Is that a good idea or should I rather focus on optimizing my drawing routines? How do you think does iPhoto work here? After all, it seems like iPhoto has something like a background thread for that (because of the delayed quality improvements...)

Thanks for your thoughts!

Regards,
Michael

_______________________________________________
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:
    • Re: Background threading in an NSView?
      • From: Scott Ribe <email@hidden>
  • Prev by Date: Re: Pure Quartz vs. Cocoa-Objects ... why is Quartz slower?
  • Next by Date: Re: Objective-C BufferedReader
  • Previous by thread: Re: Objective-C BufferedReader
  • Next by thread: Re: Background threading in an NSView?
  • Index(es):
    • Date
    • Thread