CPU sampling and +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:]

2009-11-13 Thread Paulo Andrade
Hello, I'm sampling an iPhone app to detect any bottlenecks in performance. Interesting thing is that, from the first use of an NSURLConnection the following method will appear on Instruments: +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] And it's constantly running, even

Re: CPU sampling and +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:]

2009-11-13 Thread Paulo Andrade
run for 30 seconds and not touch the iphone You'll see that the time is equally divided between +[UIApplication run] and +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] Please let me know if you have any other ideas that could explain this. Thanks a lot Paulo Andrade On N

Re: CPU sampling and +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:]

2009-11-15 Thread Paulo Andrade
Thank you both. I have finally understood what's going on :). On Nov 15, 2009, at 7:19 AM, Joar Wingfors wrote: > > On 14 nov 2009, at 03.20, Michael Ash wrote: > >> On Fri, Nov 13, 2009 at 1:28 PM, Paulo Andrade wrote: >>> Hello, >>> >>> I&

Re: Continuous zoom in MKMapView

2010-07-07 Thread Paulo Andrade
On Jul 5, 2010, at 2:47 AM, Miguel Arroz wrote: > Hello, > > I'm trying to control a map view programmatically, and I need to zoom in and > out with high accuracy (like when the user pinches it for zomming, the map > may display an arbitrary level of zoom when the user stops touching the view

Core Data conflict detection

2010-07-19 Thread Paulo Andrade
ping I've been clear and this will lead to a healthy discussion on the intricacies of conflict detection. Best regards, Paulo Andrade ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments t

Re: Core Data conflict detection

2010-07-26 Thread Paulo Andrade
{ cachedRow = { counter = 1; }; newVersion = 2; object = " (entity: Sequence; id: 0x2000228c0 ; data: {\ncounter = 1;\n})"; oldVersion = 1; snapshot = { counter = 0; }; } ) Feels like

Recovering from a merge conflict

2010-12-21 Thread Paulo Andrade
Hello, I have an application using Core Data that has to import/update some data to/in the database. It imports in batches and it conflict may happen. Some object being updated in a batch might also be updated in another context. This is fine and I'm aware that this will happen. What I want to

Re: Recovering from a merge conflict

2010-12-21 Thread Paulo Andrade
On Dec 21, 2010, at 3:08 PM, Fritz Anderson wrote: > On 21 Dec 2010, at 8:36 AM, Paulo Andrade wrote: > >> int tries = 10; >> while ( tries-- ) { >> // compute this batch >> >> [moc save:&error]; >> if (error != nil && [error code] ==