• 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: Cocoa wizard & gurus, Help!!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Cocoa wizard & gurus, Help!!


  • Subject: RE: Cocoa wizard & gurus, Help!!
  • From: <email@hidden>
  • Date: Wed, 11 Feb 2004 22:29:37 +0100
  • Thread-topic: Cocoa wizard & gurus, Help!!

>Just to warn you, I haven't actually done any work with this, but....
I did, but that didn't help much either ;-)

>I'm not sure what's creating the limit (or if you've even discovered that).
>If it's simply an offscreen window that's too large, you could either create
>a subclass of the window in order to override the size limits or make an
>NSView that's not contained by a window (that's how I typically do my
>offscreen drawing, but I don't know if it winds up caching the image).
Ok, the latter might be an option but can you just lock focus on a view and draw from a different one to get a kind of cache like I do with NSImage? And if so, how would you then use it when you want to use the cached view to be displayed again? Do you have some code snippets perhaps?

>If these don't work, can you split the image into several overlapping
>chunks, cache each, and grab the one you need for a given view?
I'm afraid it will have to go in that direction, draw say every 1000 points and assemble the whole thing again... It would be a pain though, in big contrast to nice and clean code I have now...

>Those are the things that come immediately to mind.
Thanks,
Alex

> I haven't received many responses to my previous posting (one to be
> precise), so I'll try it one more time. At least some people must be
> able to help this poor soul. It's again about this NSImage caching
> problem I have. It's quite a showstopper for our app on Jaguar. It all
> comes down to one simple question: how do I draw a large NSImage
> offscreen. I simply can't get it to work because of the sizelimit that
> is present on the window that is created behind the scene and I get a
> Can't create cache error. It's definitely a problem on Jaguar, but also
> on Panther, although the limit seems to be higher there. The reason to
> do this all, is to have my custom view in some cached form to prevent
> unnecessary redrawing. Please help me with a solution to the problem,
> or alternative ways for caching or ways to prevent redrawing. Isn't
> there really a way to prevent the need of the temporary window? I don't
> get it, you can have large NSImages, but you can't draw one!?!? Help!
>
> Many thanks in advance,
> Alex
_______________________________________________
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.

  • Follow-Ups:
    • Re: Cocoa wizard & gurus, Help!!
      • From: John Timmer <email@hidden>
  • Prev by Date: NSTableView selection and Drag&Drop
  • Next by Date: Re: is this enough for a singleton? (for a class cluster "placeholder")
  • Previous by thread: Re: Cocoa wizard & gurus, Help!!
  • Next by thread: Re: Cocoa wizard & gurus, Help!!
  • Index(es):
    • Date
    • Thread