FROM : Tom Burns
DATE : Tue Jul 18 18:21:07 2006
Option #2 seems like the better way to go, and was my original plan,
but perhaps I wasn't clear enough: I am not sure how to go about
"getting" the managed object associated with the selected row in the
tableview. the best I could think of was using a fetch request and
matching the contents of one of the columns in the table with the
contents of the associated attribute, but there must be a cleaner way
than that, right?
--Tom
On 7/18/06, Jim Correia <jim.<email_removed>> wrote:
> 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_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
>
DATE : Tue Jul 18 18:21:07 2006
Option #2 seems like the better way to go, and was my original plan,
but perhaps I wasn't clear enough: I am not sure how to go about
"getting" the managed object associated with the selected row in the
tableview. the best I could think of was using a fetch request and
matching the contents of one of the columns in the table with the
contents of the associated attribute, but there must be a cleaner way
than that, right?
--Tom
On 7/18/06, Jim Correia <jim.<email_removed>> wrote:
> 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_removed>)
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
>
| Related mails | Author | Date |
|---|---|---|
| Tom Burns | Jul 18, 18:09 | |
| Jim Correia | Jul 18, 18:14 | |
| Tom Burns | Jul 18, 18:21 | |
| Jim Correia | Jul 18, 18:46 | |
| Andreas Mayer | Jul 18, 18:50 | |
| Tom Burns | Jul 18, 18:58 |






Cocoa mail archive

