Re: UIPicker

2015-01-19 Thread Diederik Meijer | Ten Horses
I think you can call selectRow: inComponent: animated: in viewWillAppear to achieve an initial selection Op 19 Jan 2015, om 21:58 heeft Alex Zavatone het volgende geschreven: > iOS UIPicker first display issues. > > Hi. Some of our users are having problems with the UIPicker when its > i

Re: Trouble getting ISO-8859-1 encoded feed to parse and display

2014-11-24 Thread Diederik Meijer | Ten Horses
Op 24 Nov 2014, om 19:01 heeft Jens Alfke het volgende geschreven: > >> On Nov 24, 2014, at 9:30 AM, Diederik Meijer | Ten Horses >> wrote: >> >> I get no errors, but no results from the parser either. I haven't tested >> against didStartElement, be

Re: Trouble getting ISO-8859-1 encoded feed to parse and display

2014-11-24 Thread Diederik Meijer | Ten Horses
Verstuurd vanaf mijn iPhone > Op 24 nov. 2014 om 05:15 heeft Jens Alfke het volgende > geschreven: > > >> On Nov 23, 2014, at 1:06 PM, Diederik Meijer | Ten Horses >> wrote: >> >> When I just pull in the feed’s contents using a NSURLConnection, it w

Re: Trouble getting ISO-8859-1 encoded feed to parse and display

2014-11-24 Thread Diederik Meijer | Ten Horses
Verstuurd vanaf mijn iPhone > Op 24 nov. 2014 om 04:13 heeft Keary Suska het > volgende geschreven: > >> On Nov 23, 2014, at 11:06 AM, Diederik Meijer | Ten Horses >> wrote: >> >> I am having trouble getting useful data from this url on some, b

Trouble getting ISO-8859-1 encoded feed to parse and display

2014-11-23 Thread Diederik Meijer | Ten Horses
Hi list, I am having trouble getting useful data from this url on some, but not all, iOS devices: https://www.taxpublications.deloitte.co.uk/tis/dtp.nsf/pub1.xml The feed has this opening tag: When I just pull in the feed’s contents using a NSURLConnection, it will show up on some, but not al

UIWebView not scaling page (iOS8)

2014-10-08 Thread Diederik Meijer | Ten Horses
Hi list, I have a UIWebView inside a UITableViewCell that simply won’t scale the page to fit on iOS8. I have set it to scale pages to fit in IB and have also tried setting it in code, but it simply won’t do it. The UIWebView depicts a JPG image located at a web location. I had no trouble with

Re: return string that is the difference between two other strings

2014-09-20 Thread Diederik Meijer | Ten Horses
ch based on the actual content gives the best results. It's more time-consuming though... Verstuurd vanaf mijn iPhone > Op 21 sep. 2014 om 08:42 heeft 2551 <2551p...@gmail.com> het volgende > geschreven: > > >> On 21 Sep 2014, at 13:38, Diederik Meijer | Ten Horses &

Re: return string that is the difference between two other strings

2014-09-20 Thread Diederik Meijer | Ten Horses
sep. 2014 om 08:24 heeft Diederik Meijer | Ten Horses > het volgende geschreven: > > I do a lot of text data mining and need similar functions a lot. I would > start on a word by word level, to have whatever it returns be more meaningfull > > Verstuurd vanaf mijn iPhone > >

Re: return string that is the difference between two other strings

2014-09-20 Thread Diederik Meijer | Ten Horses
I do a lot of text data mining and need similar functions a lot. I would start on a word by word level, to have whatever it returns be more meaningfull Verstuurd vanaf mijn iPhone > Op 20 sep. 2014 om 19:43 heeft Scott Ribe het > volgende geschreven: > >> On Sep 20, 2014, at 11:13 AM, 2551 <2

Re: Changing app screenshots after submission

2014-09-18 Thread Diederik Meijer | Ten Horses
Has been like this for about 15 months, before that you could change at will Op 18 Sep 2014, om 19:25 heeft Rick Mann het volgende geschreven: > I learned yesterday that you can't change the screenshots in the App Store > after your app is approved. Has this always been the case? It seems l

Re: NSUserDefaults not sticking

2014-09-09 Thread Diederik Meijer | Ten Horses
Are you calling synchronise too when you're writing? [[NSUserDefault standardUserDefaults] synchronise] Verstuurd vanaf mijn iPhone > Op 10 sep. 2014 om 07:43 heeft "Rick C." het volgende > geschreven: > > Thanks for the help. So I have double-checked and the info in question that > is no

Re: Resolve alternative TLD

2014-07-04 Thread Diederik Meijer | Ten Horses
Thanks Jens, will try all that over the coming days Op Jul 4, 2014, om 11:13 PM heeft Jens Alfke het volgende geschreven: > > On Jul 4, 2014, at 1:24 PM, Diederik Meijer | Ten Horses > wrote: > >> I have no experience with this sort of thing, hopefully I can make

Re: Resolve alternative TLD

2014-07-04 Thread Diederik Meijer | Ten Horses
That's very promising, thank you! I have no experience with this sort of thing, hopefully I can make that work with NSURLConnection or -Session.. I'll look into the documentation on NSURLProtocol Thanks again to you both! Op Jul 4, 2014, om 10:01 PM heeft Jens Alfke het volgende geschreven

Re: Resolve alternative TLD

2014-07-03 Thread Diederik Meijer | Ten Horses
OK thanks everybody! Op Jul 3, 2014, om 10:54 PM heeft Jens Alfke het volgende geschreven: > > On Jul 3, 2014, at 1:33 PM, Diederik Meijer | Ten Horses > wrote: > >> So I guess I somehow need to handle DNS Lookup / IP resolving myself, is >> there anybody here

Re: Resolve alternative TLD

2014-07-03 Thread Diederik Meijer | Ten Horses
geschreven: > Firefox doesn't resolve start.rental either. > Neither does Chrome. > > On Jul 3, 2014, at 12:58 PM, Diederik Meijer | Ten Horses wrote: > >> Take start.rental as an example, has a live server on the dot rental TLD, >> but no standard browser will resolve

Re: Resolve alternative TLD

2014-07-03 Thread Diederik Meijer | Ten Horses
Wait, so it's not a real DNS server, or what? I suppose in that case you'd have to take the URL and look up the domain yourself, then feed the raw IP address to WebKit instead. > > Cheers, > -- Uli Kusterer > "The Witnesses of TeachText are everywhere..." > http://www.zathras.d Exactly, any ex

Re: Resolve alternative TLD

2014-07-03 Thread Diederik Meijer | Ten Horses
ug report was closed as a duplicate of radar:10252476. We have a > corporate TLD that does not resolve in safari, unless you prefix it with > http:// so that Safari doesn’t treat it as a search term. > > Paul > >> On Jul 3, 2014, at 9:22 AM, Jens Alfke wrote: >> >> &

Re: Resolve alternative TLD

2014-07-03 Thread Diederik Meijer | Ten Horses
mijn iPhone > Op 3 jul. 2014 om 18:22 heeft Jens Alfke het volgende > geschreven: > > >> On Jul 3, 2014, at 6:52 AM, Diederik Meijer | Ten Horses >> wrote: >> >> The issue being that the TLD (think for example: domain.law, with law being >> the TLD

Re: Resolve alternative TLD

2014-07-03 Thread Diederik Meijer | Ten Horses
4, at 6:52 AM, Diederik Meijer | Ten Horses >> wrote: >> >> The issue being that the TLD (think for example: domain.law, with law being >> the TLD) is accessible through a DNS server, but since the TLD is not >> officially registered with ICANN, standard browsers do n

Resolve alternative TLD

2014-07-03 Thread Diederik Meijer | Ten Horses
Dear list, Is it possible to have an iOS app connect to a web server through a domain name that uses an alternative TLD (top level domain name)? The issue being that the TLD (think for example: domain.law, with law being the TLD) is accessible through a DNS server, but since the TLD is not offi

Re: Insetting a UIWebView while a keyboard is on screen

2014-05-28 Thread Diederik Meijer | Ten Horses
Keyboard appears in response to a html input element getting focus? If so, adding a javascript scrollTo may work. When the element gets focus, calculate its y position in the webview and call scrollTo with relevant coordinates. Maybe all in javascript, which makes it fast and lightwight. Do you

Re: White rectangle behind UIAlertView when subview clipsToBounds

2014-05-15 Thread Diederik Meijer | Ten Horses
s, it does seem strange I need these steps to have a normal UIAlertView experience in my use case, so I'm still very interested in helpful feedback! Op May 15, 2014, om 8:23 PM heeft Diederik Meijer | Ten Horses het volgende geschreven: > Hi David, > > Many thanks for your qui

Re: White rectangle behind UIAlertView when subview clipsToBounds

2014-05-15 Thread Diederik Meijer | Ten Horses
have… To me it seems the view hierarchy is slightly complex, but not to any kind of extreme. Many thanks again, Diederik Op May 15, 2014, om 6:53 PM heeft David Duncan het volgende geschreven: > > On May 15, 2014, at 8:42 AM, Diederik Meijer | Ten Horses > wrote: > >> De

White rectangle behind UIAlertView when subview clipsToBounds

2014-05-15 Thread Diederik Meijer | Ten Horses
Dear list, I implemented a very straightforward UIAlertView. For some reason, on iPad, a light rectangular appears behind the alertview, here is what it looks like: http://www.tenhorses.com/apps/alertScreenshot.jpg What makes it strange is that that light rectangle is not visible when I take a

Re: JSONSerialization 'Garbage at end' error

2014-04-30 Thread Diederik Meijer | Ten Horses
Thanks Andy and Jens! Op Apr 30, 2014, om 10:07 PM heeft Andy Lee het volgende geschreven: > On Apr 30, 2014, at 3:21 PM, Jens Alfke wrote: >> On Apr 30, 2014, at 8:20 AM, Diederik Meijer | Ten Horses >> wrote: >> >>> Now here is the problem: although the JS

Re: JSONSerialization 'Garbage at end' error

2014-04-30 Thread Diederik Meijer | Ten Horses
ing into this error, > they’re working with JSON data that really does have garbage at the end. Is > it possible that you’re doing something like appending a null terminator or > something else non-printable so that when you look at the data then it all > seems OK? > > >

JSONSerialization 'Garbage at end' error

2014-04-30 Thread Diederik Meijer | Ten Horses
Hi all, I have Googled this issue for hours and tried various solutions suggested at Stackoverflow, but can't seem to solve the following problem. I am pulling JSON from here: http://www.tenhorses.com/apps/meijburg/dotTAXDataHandler/dotTAXtaxNotesAPI.php Both JSONLint, http://jsonformatter.cur

Re: HTML emails from Objective C

2013-12-22 Thread Diederik Meijer | Ten Horses
Can you post your code please? Op Nov 26, 2013, om 9:16 PM heeft Bryan Schmiedeler het volgende geschreven: > I am trying to write an HTML email using Objective C. > > I have the HTML all done, now I am just putting it into mutable string line > by line. I am using / to escape when I need a

Re: Best way to put a fixed view in a UITableViewController scene?

2013-11-27 Thread Diederik Meijer | Ten Horses
Not if your UITableView has only one section and you use the section's header view in the way Marcelo suggests. Sections headers scroll up to the top and then remain there - visible - while additional cells scroll underneath it… Op Nov 27, 2013, om 4:30 AM heeft Rick Mann het volgende gesch

Re: Threadsafe copy of objective c object

2013-09-03 Thread Diederik Meijer | Ten Horses
Is it possible to reverse the issue? Keep the original object (living on the main thread) untouched, make a copy for algorithm processing as an async task, then, when done, update the original object from the copy that may have been changed during async processing? Or will that cause the exact s

Re: "Introducing ioscomponents.com"

2013-08-27 Thread Diederik Meijer | Ten Horses
Hi Jason, Don't be too disappointed. This is exactly what The Lean Startup (a good read!) is all about and I am pretty sure quite a few of us have run into a situation like this ourselves. I was thinking about your remark on the radio buttons. I could be wrong, but I think it is the only contro

Re: Fastest way to replace characters in string

2013-08-22 Thread Diederik Meijer | Ten Horses
Diederik Meijer | Ten Horses wrote: >> The web service returns the list lightning fast, but in order to get the >> count number added to each of the >300 articles html header, I am >> looping through the list and call NSString's >> stringByReplacingOccurancesOfStri

Fastest way to replace characters in string

2013-08-21 Thread Diederik Meijer | Ten Horses
Dear list, I have an iOS app that loads a local html file into a UIWebView. The content is quite large, about 1MB, it is the full text of a law. By tapping a button, users can reveal the number of published court rulings for each of the law's articles. As this data changes frequently, a list t

Re: NSLog object = nil?

2013-08-20 Thread Diederik Meijer | Ten Horses
tasks, to manage CPU usage... Verstuurd vanaf mijn iPhone Op 20 aug. 2013 om 23:45 heeft Ken Thomases het volgende geschreven: > On Aug 20, 2013, at 4:32 PM, Diederik Meijer | Ten Horses wrote: > >> An itemStore object creates a worker object (property of itemStore object) >>

Re: NSLog object = nil?

2013-08-20 Thread Diederik Meijer | Ten Horses
Apologies, no need to respond, I have just fixed this.. Op Aug 20, 2013, om 11:32 PM heeft Diederik Meijer | Ten Horses het volgende geschreven: > Dear list, > > I have the following structure: > > An itemStore object creates a worker object (property of itemStore object)

NSLog object = nil?

2013-08-20 Thread Diederik Meijer | Ten Horses
Dear list, I have the following structure: An itemStore object creates a worker object (property of itemStore object) that hold a weak reference back to the itemStore object; When the worker classes is done, it sets the itemStore object (of which the worker class itself is a property) to nil.

Re: How to get rid of keyboard on iPhone

2013-08-13 Thread Diederik Meijer | Ten Horses
Call resignFirstResponder in the textViewShouldReturn delegation method… In addition: have a tap anywhere in the screen outside the textView call a dismiss as well Op Aug 13, 2013, om 12:18 PM heeft "Gerriet M. Denkmann" het volgende geschreven: > I have an app with a textView on an iPad. >

Re: Computing the height for a UITableViewHeaderFooterView

2013-08-06 Thread Diederik Meijer | Ten Horses
The way is handled something similar is by first calculating the label size for the dynamic string (which you probably need anyway), then using the returned value in the heightForHeaderInSection (or recalculating it with a method call), followed by calling reloadData on the tableView. The code b

Re: dev site down time is ridiculous

2013-07-24 Thread Diederik Meijer | Ten Horses
On ZD Net: Apple hack conducted for the greater good of research By Charlie Osborne, 5 hours ago A security researcher has stepped up and shouldered the blame for taking down Apple's Dev Center --all in the name of blowing the whistle on bugs. Verstuurd vanaf mijn iPhone Op 24 jul. 2013 om 19

Re: height of UITableView with exactly two rows

2013-07-15 Thread Diederik Meijer | Ten Horses
Seems to be equal on iPhone and iPad Verstuurd vanaf mijn iPhone Op 15 jul. 2013 om 13:18 heeft Koen van der Drift het volgende geschreven: > > On Jul 15, 2013, at 7:14 AM, Diederik Meijer | Ten Horses > wrote: > >> Isn't the standard 44? >> Then 2 rows

Re: height of UITableView with exactly two rows

2013-07-15 Thread Diederik Meijer | Ten Horses
Isn't the standard 44? Then 2 rows would be 88, or am I missing something? Op Jul 15, 2013, om 1:08 PM heeft Diederik Meijer | Ten Horses het volgende geschreven: > Won't, setting the row height in > > - (CGFloat)tableView:(UITableView *)tableView > heightForRowAt

Re: height of UITableView with exactly two rows

2013-07-15 Thread Diederik Meijer | Ten Horses
Won't, setting the row height in - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { return something; } and then multiplying that something with 2 work? Add headerView/footerView heights if needed.. Op Jul 15, 2013, om 1:02 PM heeft Koen van

Re: Javascript call function Objective-C

2013-07-05 Thread Diederik Meijer | Ten Horses
I am not entirely sure whether this is as clean as it can be, but this is working for me. Might be a starting point, please give me feedback if this can be improved.. In your Objective-C class, put in appropriate method: NSString *path = [[NSBundle mainBundle] pathForResource:@"javascript

Re: Moving a textField from under keyboard

2013-06-28 Thread Diederik Meijer | Ten Horses
One way is to animate the UiTextField upwards in the didBeginEditing delegation method and down again in the shouldReturn. Verstuurd vanaf mijn iPhone Op 29 jun. 2013 om 00:44 heeft Julius Oklamcak het volgende geschreven: >> I'm looking for "something" OR some method that knows how to change

Re: What, exactly constitutes a mutable action on an instance?

2013-05-29 Thread Diederik Meijer | Ten Horses
Thanks Robert and Quincey, that's very helpful! Op May 29, 2013, om 8:26 AM heeft Quincey Morris het volgende geschreven: > On May 28, 2013, at 23:37 , Diederik Meijer | Ten Horses > wrote: > >> 1. With ARC, do we still have to worry about string1 leaking in the &

Re: What, exactly constitutes a mutable action on an instance?

2013-05-28 Thread Diederik Meijer | Ten Horses
May I add two questions to this enlightening thread? 1. With ARC, do we still have to worry about string1 leaking in the following scenario? @property (nonatomic, copy) NSString *string1; ….. self.string1 = @"Hello"; string1 = @"Hello hello"; string1 = @"Hello hello hello"; 2. How do the stron

Re: UILabel with superscripts

2013-05-09 Thread Diederik Meijer | Ten Horses
Have you tried loading a NSAttributedString? It's iOS 6 only, a quick search implies you can set kCTSuperscriptAttributeName to specific ranges in your string... Verstuurd vanaf mijn iPhone Op 9 mei 2013 om 14:04 heeft Koen van der Drift het volgende geschreven: > Right now I am using an UI

Re: Detect whether UIRefreshControl can be used

2013-05-08 Thread Diederik Meijer | Ten Horses
Thank you Nick, that works perfectly!! Op May 8, 2013, om 5:20 PM heeft Nick Zitzmann het volgende geschreven: > > On May 8, 2013, at 8:51 AM, Diederik Meijer | Ten Horses > wrote: > >> I am implementing a UIRefreshControl in an app that runs on iOS 5.1 or >> hi

Detect whether UIRefreshControl can be used

2013-05-08 Thread Diederik Meijer | Ten Horses
Hi, I am implementing a UIRefreshControl in an app that runs on iOS 5.1 or higher and want to test if the device is running iOS 6, because this is an iOS 6 feature. I'd like to avoid detecting the iOS version in runtime and use a respondsToSelector route instead. I am getting no compiler erro

Re: ^Block statement considered harmful for callbacks?

2013-04-25 Thread Diederik Meijer | Ten Horses
I don't agree, blocks are very powerful. I am using Xcode 4.6 and in a project that uses ARC it was throwing warnings when a block reference to a property caused a retain cycle. This is how I found it and why I mentioned it in another thread in the first place. I haven't tested it extensively,

Re: presentViewController completion block usage

2013-04-16 Thread Diederik Meijer | Ten Horses
An additional thought: when you put references to the presentingVC's properties in the completion block you may get retain cycle warnings. This is caused by the fact that blocks keep strong references to objects. Passing data back to the referring VC could also be done in viewWillDisappear, coul

Better way to create a 'grouped' array from a NSArray?

2013-03-26 Thread Diederik Meijer | Ten Horses
Dear list, I need to create a grouped array from a simple array, it then populates a grouped UITableView. Below is my code, which works fine (the project uses ARC). But I'd like to know if there is a quicker or more efficient way to do this, with less code. If so, please let me know. NSArray

Re: @class

2013-03-22 Thread Diederik Meijer | Ten Horses
> The forward declaration is used to tell the compiler: "The word MyClass > represents a class. I don't give you the implementation yet, but it > represents a class, and the implementation will be provided later". …and this allows you to create a property for an instance of that class in the .h

Re: KeyboardType for an iOS searchBar.

2013-03-13 Thread Diederik Meijer | Ten Horses
Maybe I'm missing the point, but you can set the keyboard type in the storyboard settings for it.. Or do you need to change it programmatically for some particular reason? Op Mar 13, 2013, om 6:51 PM heeft Alex Zavatone het volgende geschreven: > Hopefully, this will be a more constructive

Re: Turning off screen shot ability

2013-03-06 Thread Diederik Meijer | Ten Horses
I agree with Charles. I only work with iOS and have apps that actually take screenshots in runtime triggered by IBActions. I have no experience with detecting it, but would be suprised if detecting that a screenshot was taken would be impossible to do. The good thing about Charles' suggestion is