• 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
Jaguar NSImage caching woes roundup
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Jaguar NSImage caching woes roundup


  • Subject: Jaguar NSImage caching woes roundup
  • From: Alexander Griekspoor <email@hidden>
  • Date: Tue, 10 Feb 2004 23:51:25 +0100

Hi!

The second question I had: I know this has been discussed a lot in the past and I did read all the posts I could find, but I miss a kind of summary or at least a satisfaction to understand the problem fully. My app uses the wonderful graphview framework to draw a -tata- graph. To speed up things up, I draw it in an NSImage to use it as a cache that I composite in the end to my view. It works perfectly, but then I started to get report from people running Jaguar that had problems opening certain files. To cut the story short, it turns out to be the famous caching problem, if the view gets to wide, NSImage can't cache it anymore. The thread that offers most answers is:
http://cocoa.mamasam.com/COCOADEV/2003/03/2/59361.php

The problem is that in none of these posts a real workaround is given. What would be the best way to deal with the problem, and again maybe it's the lack of understanding the background of it.
The cachedimagerep is actually a window right? And the size of it is limited. Someone suggested to use an NSBitmapRep. Can those be of any size then? And should I in that case disable the caching, or is that still necessary to actually draw the thing offscreen? Or is the only option to tile everything?
Judged from the posts, many must have came up with a solution. Is anyone willing to share some snippets demonstrating how to cache large views?
All help is really appreciated!
Many thanks in advance,
Alex


*********************************************************
** Alexander Griekspoor **
*********************************************************
The Netherlands Cancer Institute
Department of Tumorbiology (H4)
Plesmanlaan 121, 1066 CX, Amsterdam
Tel: + 31 20 - 512 2023
Fax: + 31 20 - 512 2029
E-mail: email@hidden
Web: http://www.mekentosj.com

Claiming that the Macintosh is inferior to Windows
because most people use Windows, is like saying
that all other restaurants serve food that is
inferior to McDonalds

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

  • Prev by Date: Re: Making the correct button the default button?
  • Next by Date: Re: Sneaky Key-Value Observing
  • Previous by thread: Re: Where's the journal file on a journalled drive?
  • Next by thread: Re: Jaguar NSImage caching woes roundup
  • Index(es):
    • Date
    • Thread