• 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: Updating webview with HTML attribute of a managed object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Updating webview with HTML attribute of a managed object


  • Subject: Re: Updating webview with HTML attribute of a managed object
  • From: Jim Correia <email@hidden>
  • Date: Tue, 18 Jul 2006 12:14:38 -0400

On Jul 18, 2006, at 12:09 PM, Tom Burns wrote:

In the app I am developing, I have a webview that I need to display
content based on the currently selected item in a tableview. The
tableview is automatically populated by coredata, but I am at a loss
when it comes to figuring out how to get the HTML (stored as a string
attribute of each managed object) of the correct managed object to
load. Is there something simple that I am missing here? I have a
feeling that this is a simple problem with a simple solution, but I am
at a loss.

WebView doesn't have a binding which you can take advantage of to have it display an HTML string stored in a model object.


Your choices are:

1) Subclass WebView and expose such a binding :-)
2) In your controller code fetch the HTML string from your model, and load it in the web view "by hand"


Jim

_______________________________________________
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


  • Follow-Ups:
    • Re: Re: Updating webview with HTML attribute of a managed object
      • From: "Tom Burns" <email@hidden>
References: 
 >Updating webview with HTML attribute of a managed object (From: "Tom Burns" <email@hidden>)

  • Prev by Date: Re: KVO and the observeValueForKeyPath bottleneck
  • Next by Date: Re: Re: Updating webview with HTML attribute of a managed object
  • Previous by thread: Updating webview with HTML attribute of a managed object
  • Next by thread: Re: Re: Updating webview with HTML attribute of a managed object
  • Index(es):
    • Date
    • Thread