• 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
Dug a hole with NSCGSImageRep...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dug a hole with NSCGSImageRep...


  • Subject: Dug a hole with NSCGSImageRep...
  • From: Graham Cox <email@hidden>
  • Date: Fri, 19 Aug 2011 23:01:02 +1000

Due to a bug in my code, we shipped an app that unintentionally archives an NSImage obtained from the Picture Taker. I can fix the bug alright, but I'm wondering if I can dig myself out of the hole we're in in some way so that users can rescue these archives.

During dearchiving, I first get a logged warning:

	Warning - attempting to decode NSCGSImageRep

Shortly followed by an out of range exception from NSKeyedDearchiver:

	exception while reading file: *** -[__NSArrayI objectAtIndex:]: index 0 beyond bounds for empty array

This exception prevents the document from being opened at all.


Does anyone know if this image can be dearchived in any way? I can easily catch the exception and allow the document to open without the image, but ideally I'd like to find a way to keep the image if at all possible, if only for our customers' sake.

--Graham
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: NSData & Mime Types...
  • Next by Date: Specify valid values for a Core Data attribute
  • Previous by thread: Re: NSData & Mime Types...
  • Next by thread: Specify valid values for a Core Data attribute
  • Index(es):
    • Date
    • Thread