Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WebDocumentText string exception



Egads, it seems that WebKit is fraught with bugs. I'm now getting a crash when trying to print this page to PDF (either from Safari or when using PDFWithDataInsideRect: on the WebView): http://www.tek-tips.com/viewthread.cfm?qid=756940&page=1

I'll write this up as a bug as well, but it doesn't bode well for my application!

Josh

On Apr 13, 2005, at 11:45 AM, Hamish Allan wrote:

Oops, yes, that's because [document selectAll] returns void! Sorry about that.

Best wishes,
Hamish

On Apr 13, 2005, at 17:35, Joshua Ferguson wrote:

Hamish,

I did write this up as a bug. Here's an odd thing:

I tried your suggestion as:

[self setPageText:[[document selectAll] selectedString];

and this caused an EXC_BAD_ACCESS...

So to debug it I split it up into:

[document selectAll];
NSString *pageText = [document selectedString];
[sender setPageText:pageText];

And this worked! I'm at a loss...but I'm happy as long as it works! Thanks a ton!

Josh


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webkitsdk-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden
References: 
 >WebDocumentText string exception (From: Joshua Ferguson <email@hidden>)
 >Re: WebDocumentText string exception (From: Hamish Allan <email@hidden>)
 >Re: WebDocumentText string exception (From: Joshua Ferguson <email@hidden>)
 >Re: WebDocumentText string exception (From: Hamish Allan <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.