• 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: Problem with PDFDocument initWithURL method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with PDFDocument initWithURL method


  • Subject: Re: Problem with PDFDocument initWithURL method
  • From: John Calhoun <email@hidden>
  • Date: Wed, 8 Aug 2007 16:02:15 -0700

On Aug 8, 2007, at 2:02 AM, JanakiRam wrote:
    If no data found at db level i'm receving an empty pdf document.
If get the empty document as response , the initWithURL method of
PDFDocument is crashing.

   I've provided the same URL to Browsers such as Safari & Firefox ,
they are not crashing.

Someone else has replied that the same problem happens if you directly call CGPDFDocumentCreateWithURL() (which of course if what PDFDocument does). I talked with a CoreGraphics engineer and he suggested that the problem is deeper still — in CFURL. Without knowing a lot of the particulars of URL schema, the short answer is, CFURL does not handle the breadth and depth of URL types. Browsers are not using CFURL.


I suspect your bug is with CFURL, and not with either PDFDocument or CoreGraphics.

I'm a little concerned about the crash though. It seems to me this should not crash....

john calhoun—_______________________________________________

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


References: 
 >Problem with PDFDocument initWithURL method (From: JanakiRam <email@hidden>)
 >Re: Problem with PDFDocument initWithURL method (From: John Calhoun <email@hidden>)
 >Re: Problem with PDFDocument initWithURL method (From: JanakiRam <email@hidden>)

  • Prev by Date: RE: Cocoa and messages to nil, revisited
  • Next by Date: Re: Loading data in a background thread and displaying it with Bindings
  • Previous by thread: Re: Problem with PDFDocument initWithURL method
  • Next by thread: Connecting NSSearchField to it's handler
  • Index(es):
    • Date
    • Thread