Re: Parsing HTML
Re: Parsing HTML
- Subject: Re: Parsing HTML
- From: Jesus De Meyer <email@hidden>
- Date: Fri, 28 Oct 2005 11:55:11 +0200
Well I delayed the parsing process with an NSTimer and initWithHTML
sometimes works. Let me explain. This the code I'm using:
NSData *d = [title dataUsingEncoding:[NSString defaultCStringEncoding]];
NSAttributedString *attrString = [[NSAttributedString alloc]
initWithHTML:d options:NULL documentAttributes:NULL];
return [[attrString string] autorelease];
When I run it in the debugger, sometimes the I go from the attrString
declaration back to the d declaration, and thus I never get to the
return. This happens even when d is not nil, but has actual data.
When I do get to return, my application does an awful lot of time
until the strings is converted to HTML, don't know how to explain
this other than it doesn't work the way I want.
Am I missing something here?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden