• 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: determining HTML text encoding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: determining HTML text encoding


  • Subject: Re: determining HTML text encoding
  • From: Rainer Standke <email@hidden>
  • Date: Sun, 31 Jan 2010 13:18:55 -0800

Hello again,

it turns out that the WebKit.framework includes the header for DOMDocument. Nonetheless, I seem to be unable to get anything out of the DOMDocument but (null).

Any other ideas?

Thanks,

Rainer


On Jan 29, 2010, at 15:30 , Jens Alfke wrote:


On Jan 29, 2010, at 12:33 PM, Rainer Standke wrote:

NSLog(@"%@", [frame.DOMDocument.characterSet class]);
I get an error: request for member 'characterSet' in something not a structure or union

You may need to #import the header for DOMDocument.

As far as I can tell I am trying to use Javascript here, no?

No, the DOM API is platform-independent and you can access it from Objective-C too. But yes, it is the same API and objects that JavaScript running on those pages would access; this can be very useful when making mixed web/native apps.


—Jens

_______________________________________________

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: 
 >determining HTML text encoding (From: Rainer Standke <email@hidden>)
 >Re: determining HTML text encoding (From: Jens Alfke <email@hidden>)
 >Re: determining HTML text encoding (From: Rainer Standke <email@hidden>)
 >Re: determining HTML text encoding (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: NSTableView Column Header Restrictions?
  • Next by Date: WebView Loading Images from Local Filesystem
  • Previous by thread: Re: determining HTML text encoding
  • Next by thread: Indentation bug in NSOutlineView with source-list highlighting?
  • Index(es):
    • Date
    • Thread