dependent unit test

2009-07-11 Thread Ariel Rodriguez
to the main exec? Best. Ariel Rodriguez We can deny everything, except that we have the possibility of being better. ~ Dalai Lama ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Karaoke like algorithm

2009-03-11 Thread Ariel Rodriguez
I'm working on a Karaoke-like application. I need to print out to the screen text lines at a given time, and then, paint each word at a given time. I keep thinking on an elegant way to do such that, and, i hace to tell, i am afraid, i have not get it right :(. Here's what i am doing (in

ass/ssa support

2009-01-26 Thread Ariel Rodriguez
Does anybody knows if there are some cocoa library to parse ass/ssa files? I know libass, but as far as i can see, it have a few memory leaks (and since i am planning to work with Cocoa Touch, i am really concerned about memory leaks). Thanks and best regards. Ariel Rodriguez

Getting a substring

2008-12-05 Thread Ariel Rodriguez
My question is simple, at least that is what i think :) I need to extract something like this: 01816560 from something like this: http://www..com/diario/2008/12/05/um/m-01816560.htm My first idea was to use - (NSArray *)componentsSeparatedByString:(NSString *)separator with - first (to

SCNetworkReachabilityCreateWithName linking problem

2008-12-02 Thread Ariel Rodriguez
I;m trying to use SCNetworkReachabilityCreateWithName to test for reachability on my app, but i cannot get it to link the project. The linker complains about not finding the symbol. Obviously the directive #import SystemConfiguration/SystemConfiguration.h is on place. I have been able to

Problem with nested tags in xml

2008-11-12 Thread Ariel Rodriguez
I'm playing with a REST implementation. Basically, i am following this tutorial: http://developer.apple.com/webapps/articles/creatingrestfulclients.html And, as you can see, the xml produced by the app is this: ?xml version=1.0 encoding=UTF-8? CountryData country id37/ id countryCanada/country

Re: Problem with nested tags in xml

2008-11-12 Thread Ariel Rodriguez
This is a classic example of where to use a finite state machine: http://en.wikipedia.org/wiki/Finite_state_machine Basically, you have an initial state and then an inside country state. Then inside your parser:didEndElement:namespaceURI:qualifiedName: you behave differently based on the