Odd error messages when using WebView
Odd error messages when using WebView
- Subject: Odd error messages when using WebView
- From: jerry porter <email@hidden>
- Date: Tue, 13 Nov 2007 15:28:22 -0800 (PST)
Hello,
I just finished upgrading an app from Tiger to Leopard and I am getting a bunch of errors like the following when I load html in a WebView.
The html renders just fine.
This is the code I am using to load the html.
- (void)_locateElementHelpTip
{
NSBundle *aBundle = [NSBundle mainBundle];
NSString *aPath = [aBundle pathForResource: [self elementHelpTip] ofType: @"html" inDirectory: @"ElementTipHelp"];
NSString *message = @"<!DOCTYPE html PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"><html><head><link rel=\"stylesheet\" type=\"text/css\" href=\"MainStyle.css\"><title>Not Found Page</title></head><body><h2>Document Not found!</h2><h3><a href=\"index.html\">Index</a></h3></body></html>";
NSURL *baseURL = [NSURL fileURLWithPath: [aBundle pathForResource: @"index" ofType: @"html" inDirectory: @"ElementTipHelp"]];
if(aPath == nil) {
[[webView mainFrame] loadHTMLString: message baseURL: baseURL];
else {
NSURL *url = [NSURL fileURLWithPath: aPath];
if(url != nil)
[[webView mainFrame] loadRequest: [NSURLRequest requestWithURL: url]];
else
[[webView mainFrame] loadHTMLString: message baseURL: baseURL];
}
}
}
Any ideas?
Tue Nov 13 18:16:29 MyHostName MyAppName[20733] <Error>: CGContextSetFillColorWithColor: invalid context
Tue Nov 13 18:16:29 MyHostName MyAppName[20733] <Error>: CGContextSetStrokeColorWithColor: invalid context
Tue Nov 13 18:16:29 MyHostName MyAppName[20733] <Error>: CGContextSetTextMatrix: invalid context
Tue Nov 13 18:16:29 MyHostName MyAppName[20733] <Error>: CGContextSetFont: invalid context
Tue Nov 13 18:16:29 MyHostName MyAppName[20733] <Error>: CGContextSetFontSize: invalid context
Tue Nov 13 18:16:29 MyHostName MyAppName[20733] <Error>: CGContextGetShouldSmoothFonts: invalid context
Tue Nov 13 18:16:29 MyHostName MyAppName[20733] <Error>: CGContextSetFontRenderingStyle: invalid context
Tue Nov 13 18:16:29 MyHostName MyAppName[20733] <Error>: CGContextSetStyle: invalid context
Tue Nov 13 18:16:29 MyHostName MyAppName[20733] <Error>: CGContextSetCharacterSpacing: invalid context
Tue Nov 13 18:16:29 MyHostName MyAppName[20733] <Error>: CGContextSetTextPosition: invalid context
Tue Nov 13 18:16:29 MyHostName MyAppName[20733] <Error>: CGContextShowGlyphsWithAdvances: invalid context
Tue Nov 13 18:16:29 MyHostName MyAppName[20733] <Error>: CGContextSetFillColorWithColor: invalid context
Tue Nov 13 18:16:29 MyHostName MyAppName[20733] <Error>: CGContextSetStrokeColorWithColor: invalid context
Tue Nov 13 18:16:29 MyHostName MyAppName[20733] <Error>: CGContextSetTextMatrix: invalid context
Tue Nov 13 18:16:29 MyHostName MyAppName[20733] <Error>: CGContextSetFont: invalid context
Tue Nov 13 18:16:29 MyHostName MyAppName[20733] <Error>: CGContextSetFontSize: invalid context
Tue Nov 13 18:16:29 MyHostName MyAppName[20733] <Error>: CGContextGetShouldSmoothFonts: invalid context
Tue Nov 13 18:16:29 MyHostName MyAppName[20733] <Error>: CGContextSetFontRenderingStyle: invalid context
Tue Nov 13 18:16:29 MyHostName MyAppName[20733] <Error>: CGContextSetFillColorWithColor: invalid context
Tue Nov 13 18:16:29 MyHostName MyAppName[20733] <Error>: CGContextSetStrokeColorWithColor: invalid context
Tue Nov 13 18:16:29 MyHostName MyAppName[20733] <Error>: CGContextSaveGState: invalid context
Tue Nov 13 18:16:29 MyHostName MyAppName[20733] <Error>: CGContextSetStyle: invalid context
Tue Nov 13 18:16:29 MyHostName MyAppName[20733] <Error>: CGContextSetTextPosition: invalid context
Tue Nov 13 18:16:29 MyHostName MyAppName[20733] <Error>: CGContextShowGlyphsWithAdvances: invalid context
Tue Nov 13 18:16:29 MyHostName MyAppName[20733] <Error>: CGContextRestoreGState: invalid context
Jerry Porter
IT Distribution MS 34-202
Lincoln Financial Group
One Commerce Square
2005 Market Street
Philadelphia, PA 19103
(215) 255-7031
____________________________________________________________________________________
Get easy, one-click access to your favorites.
Make Yahoo! your homepage.
http://www.yahoo.com/r/hs
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden