Hi, I want to build a Cocoa App with a list of entries very similar to the ToDo list of Things.app (see the screencast). The question is whether I should use
a TableView,
a CollectionView or
a WebView.
I think it could work with all of them, but which one suits the following requirements best?
have a list of entries -> 1 column & ...
There's a method for altering background color but not font.
Any ideas?
TIA.
...
I'm trying to set the background of a webview to a drawable image resource in Android.
From the sdk it seems something like this would work but it doesn't.
WebView web = (WebView) findViewById(R.id.webView);
web.setBackgroundResource(R.drawable.backgroundmain);
web.loadData(profile, "text/html", "UTF-8");
Any idea's?
...
I have a WebView which loads a PDF file:
[myWebView loadRequest:[NSURLRequest requestWithURL:[NSURL
fileURLWithPath:[[NSBundle mainBundle] pathForResource:fileName
ofType:@"pdf"]isDirectory:NO]]];
It works fine on iPhone OS 2.x but on iPhone 3.0, when I tap the PDF for scrolling, this error appears, and the app crash:
-[NSCFDicti...
So I'm working with WebKit's - WebView and WebFrame. I use a custom NSURLProtocol to retrieve the HTML for each request from a database. The problem arises from the fact that the links in the HTML are all relative, when they really ought to be absolute. For example, the page
foo/bar.html
May have a link in it that points to
foo/baz.ht...
I've got an app with a webview. It was working great, and then I moved the webView into an NSSplitView. Now it seems for some reason that whenever I press any key to enter text into the webview, it scrolls down. I haven't a clue as to what could cause this. Please help!
...
Hi All,
I'm trying to embed a WebView inside a UIView/TableView so as to implement the combobox. The WebView will have the select element , after the selection the value should be returned to the main UIView. I'm not sure how to implement this.
In the ViewDidFinishLoad, I try to run the JavaScript like this:
- (void)webViewDidFinishLoa...
Now i want to display some unicode characters and i have used tag: something herer . But it seems that webview can not find the Arial
font because i can only see UFO - Characters . Do i have to copy arial.ttf to
somewhere or how can i use this true- type-font with webview? Thanks.
...
I load HTML data into WebView with loadDataWithBaseURL
Do it one more time
Execute the following code and instead of going back to the 1st
page - whole app exits. What am I doing wrong here?
public boolean onKeyDown(final int keyCode, final KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK && this.browser.canGoBack()) {
th...
I'm writing a minimal web browser using Cocoa. I've been struggling in my attempt to create an address bar ( basically an NSComboBox in which the drop down contains previously visited URLS ).
The main issue is that the backForwardList attribute of my WebView object is updated at unpredictable times. For instance, if I select a url fro...
I have a simple WebView-based activity that follows the Hello, WebView example to enable JavaScript and overload shouldOverrideUrlLoading().
This Activity works great when the user touches links on the webpage. However, if the user uses the trackball and clicks on a link, then the resulting page load shows a page with JavaScript disabl...
I have various pieces of generated HTML/JS that I load into Activity with WebView#loadDataWithBaseURL. Is there a way to not load in again and again during Activity lifecycle? For example - user goes to check the message and then calls the app again. At that point - the Activity is stopped and probably destroyed, when it's loaded again I...
I’m taking the HelloTabWidget Android example and trying two things:
Moving the tabs to the bottom vs. the
top (if that’s even desirable from an Android UI POV)
Making each tab show a particular
WebView in the space above
I’ve got this for a layout (high level):
<TabHost>
<LinearLayout>
<FrameLayout>
<WebView/>
<W...
Hi,
Iam using - (void)webViewDidFinishLoad:(UIWebView *)webView method, to track every time my webview finishes loading and am loading a different page, depending upon the URL. Iam extracting a keyword word from the URL, to identify which page has been loaded. The problem is while am running this in a "if else" loop, It throws a obj_msg_...
I would like to design an NSwindow with a WebView in IB for displaying popup links. I need to be able to instantiate any number of these. Is this possible?
...
Hi
I have some WebView widgets inside my Activity. I use loadData() to set the content, and this html contains a link. Some of my WebViews work okay, when I click the link, the web browser is started in a new window, but some make my app crash when I click on a link.
10-13 08:45:24.257: ERROR/AndroidRuntime(751): Uncaught handler: thre...
I'm developing a Cocoa/Obj-C application that involves a WebView (from the WebKit framework). I've noticed that this WebView presents a slightly scaled-down version of the rendered webpage. An example screenshot:
In a browser (Safari or Firefox):
In my WebView:
These happen to be local HTML/CSS files generated by the program, but ...
I wanted to create a webView inside of a CALayer. Maybe it is too trivial but I am just getting my head into CA. Would anyone please be able to help?
cheers
Ron
...
i have a application which has 2 parts one is a webview and other is a native iphone application.
I want to invoke a native iphone application from a website inside
a webview.
...
Hi guys! I have written a script that download some HTML files into the Documents folder of my app! I want to load this files in my WebView, is that possible?
For example:
If index.html is present in Documents folder, load it, else load index.html in mainBundle!
Thanks to everyone can help me!
...