NaN Problem Adding Numbers from NSTableView

2010-04-21 Thread Philip Juel Borges
Hi, I've googled this issue to no avail until now. In my application I have a tableview with 6 columns to enter numbers for statistic purposes. That works fine. Yet, I've run into a problem adding the numbers together. Under each column below the tableview I have placed an NSLabel to

Regular Expressions

2010-02-22 Thread Philip Juel Borges
Hi, Xcode supports the use of regular expressions. With the following search and replace I can find a string, like John 17:17, and turn it into a link: Find ([a-z]+) ([0-9]+):([0-9]+) Replace a href=file:///Library/\1/\2.html#\3\1 \2:\3/a This works fine. But right after Library I want

Extract ID Value Into UILabel.

2010-02-04 Thread Philip Juel Borges
Hi, I'm looking for a way to create an IBAction that extracts the id value of a tag name into a UILabel from any given HTML file that is loaded in my UIWebView. My ids are as listed below: vs id=1:1 vs id=2:16 vs id=14:57 vs id=24:14 This code, HTMLverseLabel.text = [webView

Linking Back to My CSS File.

2009-11-03 Thread Philip Juel Borges
Hi! I'm new to iPhone development. But loving it! In my project I have added folders to the resource folder. The structure looks like this. TOC.html rbi8.css data I I--ge I--1.html I--2.html I--3.html Now, all my html files use css for styling. As you can

Implementing Back and Forth Control.

2009-10-13 Thread Philip Juel Borges
Hi! In my app I have my MainMenu.xib that contains the toolbar and a custom view that swaps in my other 3 xib (view) files (taken from ViewControlller from Appple's site). Now each of the other 3 views has a webview and a segmented control that allows me to go back and forth and adding

Severeal Views, One Webview in MainMenu.xib

2009-09-29 Thread Philip Juel Borges
Hi! In my app I have tailored the ViewController app from Apple to fit my needs. The MainMenu.xib contains the custom view where my other views are swapped in. I have 3 views in all now. All these views contain each 1-3 NSTableViews and one WebView. However, instead of having 3 WebViews

Run Javascript Function From Objective-C.

2009-09-28 Thread Philip Juel Borges
Hi! I have this javascript function in my test.html file which is loaded in the WebView: function goToPage(mybox) { window.location ='#' + mybox.value; } It allows me to enter a number, like 24, which then goes to the anchor tag a name=24. It serves the purpose of navigating a long html

Populating TableView Via Button.

2009-09-18 Thread Philip Juel Borges
Hi! Does anyone know how you'd populate a tableview when clicking a button? I tried this: AppController.h: - (void)populateTableView:(id)sender; AppController.m: -(void)populateTableView:(id)sender { [super init]; sourceArray = [NSArray arrayWithObjects:

Re: Adding Segmented Buttons to Toolbar.

2009-09-01 Thread Philip Juel Borges
help. Philip Den 24/08/2009 kl. 18.09 skrev Philip Juel Borges: Hi. Does any one know how to add segmented cell buttons to a toolbar in Interface builder? Like the ones in Mail and the back and forward buttons in Safari. I've searched high and low in the mailing list+google and must admit

View Swapping Issue.

2009-08-31 Thread Philip Juel Borges
Hi, I'm using code from ViewController to swap between views in my app, which works fine. In my app one view is named IndexView.xib and that contains one tableview and one webview and an NSObject called IndexViewController.h/m Recently, I discovered how to shift the focus from the

Adding Segmented Buttons to Toolbar.

2009-08-24 Thread Philip Juel Borges
Hi. Does any one know how to add segmented cell buttons to a toolbar in Interface builder? Like the ones in Mail and the back and forward buttons in Safari. I've searched high and low in the mailing list+google and must admit that I haven't gotten anywhere close. /Philip

Load File Faster.

2009-06-29 Thread Philip Juel Borges
Hi! I have an app that where a toolbar button loads a property list file into 3 tableviews, which in turn updates a webview. The file is 6,3MB. Whenever I press the button it takes roughly 2 seconds. How can I make the application load that 6,3MB property list file faster? /Philip

Retrieving Multiple Anchor Tags.

2009-05-15 Thread Philip Juel Borges
Hi, The code below retrieves an anchor tag name '25' from the '1.html' document when I type '25' in my NSTextField, and loads it in WebView. But the '1.html' document contains many numerical anchor tags. Does anybody know how I can retrieve any anchor tag I type in NSTextField and load it

Load TableViews One TableView At a Time.

2009-05-04 Thread Philip Juel Borges
Hi all, I'm re-posting this question. Hopefully more clear than before. I've been struggling much with a problem for so long and fail to get it to work. I don't know where I go wrong but below is my code. I've got 2 tableviews populated by this file, data.plist, with bindings. When I push

NSTableViews Load Progressively.

2009-04-27 Thread Philip Juel Borges
Hi, I have an application that contains 2 nstableviews populated by a property list file. A selection in one changes what is displayed in the next, which in turn loads an html-file in my webview. How do I load the tableviews progressively so that when I select the item from the first