• 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
Can't cache large NSImage's
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't cache large NSImage's


  • Subject: Can't cache large NSImage's
  • From: Jan Van Tol <email@hidden>
  • Date: Sun, 9 Mar 2003 15:35:37 -0600

I'm doing some image compositing, and when I try the following code, this gets logged:
Exception raised during posting of notification. Ignored. exception: Can't cache image

Here is the code:

NSImage *finalImage = [[NSImage alloc] initWithSize:NSMakeSize(1, 100000)];
[finalImage lockFocus];

It doesn't happen with smaller images, so it must be a problem with large images. Is there a limit on how big they can be? Note that this is just an example, and I haven't tested at what size exactly it starts choking.

Anyone have any idea how to fix this? Its rather a problem for me.

-Jan Van Tol
_______________________________________________
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: textured windows
  • Next by Date: Missing vertical scrollbar on TableView
  • Previous by thread: Missing vertical scrollbar on TableView
  • Next by thread: Attaching Formatters?
  • Index(es):
    • Date
    • Thread