Re: NSRunLoop behavior

2010-09-21 Thread Rafael Cerioli
first one never exits ? Will the first one be processed recursively (no...) ? Thank you ! Rafael On 2010-09-21, at 9:54 AM, Keary Suska wrote: > On Sep 21, 2010, at 5:55 AM, Rafael Cerioli wrote: > >> Hi, >> >> I'm trying to understand how run loops work. I've

NSRunLoop behavior

2010-09-21 Thread Rafael Cerioli
Hi, I'm trying to understand how run loops work. I've written this useless piece of code and I'm not sure why "success" does not show up... What happens is that waitUntilReady never terminates, because it seems that the runUntilDate in myButtonAction never ends as well. My theory would be that

Re: CGImage to NSImage, or PDFPage?

2010-08-11 Thread Rafael Cerioli
Hi, Images are stored as "XObjects" in the PDF Stream. Either you can parse the stream yourself, or you use the Voyeur.app sample code, and you will get the image with its size. Regards, Rafael Le 11 août 2010 à 13:50, Brian Postow a écrit : > > On Aug 10, 2010, at 6:49 PM, Brian Postow wrot

Re: Data downloading performance

2010-07-18 Thread Rafael Cerioli
Le 18 juil. 2010 à 11:17, Ryan McGann a écrit : > > On Jul 18, 2010, at 7:42 AM, Rafael Cerioli wrote: > >> Le 18 juil. 2010 à 03:03, Ryan McGann a écrit : >>> Unfortunately, I can't find the sources at the moment as it was a while >>> ago, but there wa

Re: Data downloading performance

2010-07-18 Thread Rafael Cerioli
Le 18 juil. 2010 à 03:03, Ryan McGann a écrit : >> > Unfortunately, I can't find the sources at the moment as it was a while ago, > but there was an interesting discussion about this topic on the > macnetworkprog mailing list. Apple found in the early days of iPhone > programming that threads

Re: Data downloading performance

2010-07-17 Thread Rafael Cerioli
Le 17 juil. 2010 à 12:19, Ken Thomases a écrit : > On Jul 17, 2010, at 10:38 AM, Rafael Cerioli wrote: > >> Just out of curiosity, if there is communication between threads, even with >> runloops, there must be a lock at some point ? To schedule something in the >> ma

Re: Data downloading performance

2010-07-17 Thread Rafael Cerioli
Le 17 juil. 2010 à 06:38, Mike Abdullah a écrit : > > On 17 Jul 2010, at 07:02, Kyle Sluder wrote: > >> On Fri, Jul 16, 2010 at 10:36 PM, Rafael Cerioli >> wrote: >>> I guess I had something wrong, NSURLConnection does not do anything in a >>> backgrou

Re: Data downloading performance

2010-07-16 Thread Rafael Cerioli
Le 16 juil. 2010 à 18:56, Kyle Sluder a écrit : > On Jul 16, 2010, at 3:46 PM, Rafael Cerioli wrote: > >> Hi everybody, >> >> What would be the most efficient way to download data without blocking the >> UI (I'm targeting old iPhone/iPod devices) ? >>

Data downloading performance

2010-07-16 Thread Rafael Cerioli
Hi everybody, What would be the most efficient way to download data without blocking the UI (I'm targeting old iPhone/iPod devices) ? - using a NSURLConnection seams nice, but as it calls its delegate (-connection:didReceiveData:) on the main thread, it has to take a lock on the main thread so

Re: dynamic resolution

2010-05-31 Thread Rafael Cerioli
Le 31 mai 2010 à 13:41, Alastair Houghton a écrit : > On 31 May 2010, at 14:03, Rafael Cerioli wrote: > >> I guess you need the framework libobjc.A.dylib for that stuff. > > 1. That's a dylib (aka DLL, aka shared object), not a framework. Yes I know that's not a f

Re: dynamic resolution

2010-05-31 Thread Rafael Cerioli
Hi, I guess you need the framework libobjc.A.dylib for that stuff. Rafael Le 31 mai 2010 à 08:45, Louis-Philippe a écrit : > Hi, > > I am trying to add dynamic class methods to a class, > I implement: > > @implementation MyClass > > + (BOOL)resolveClassMethod:(SEL)sel > { > if (sel == @sele

Re: Original iPhone animation performance

2010-05-20 Thread Rafael Cerioli
I would advise you to check the transparency in your image. Compositing is not a simple task to do. And with the Core Animation Instrument, you can see your FPS and you can color layers that are rendered offscreen. That might give you some clues. Rafael Cerioli Le 19 mai 2010 à 18:51

Re: rendering PDF on iPad's

2010-05-19 Thread Rafael Cerioli
Hi Gustavo, When you draw a CGPDFPageRef into a graphic context, Quartz will hold images inside the PDF page in a sort of cache (at least, it seems with Instrument Object Alloc). You can only empty that cache by destroying the CGPDFDocumentRef. However, if you do not destroy your CGPDFDocumen

Re: iPad interface orientation basics

2010-05-17 Thread Rafael Cerioli
First, make sure the "interfaceOrientation" property is correct on your view controller after the rotation. If it's the case, check that your view can be resized properly (either with autoresizing masks or with a custom layoutSubviews, or any other custom mechanism). If it's not the case, it m

Re: iPad UIViewController craziness

2010-05-10 Thread Rafael Cerioli
If you can't see the view, I'd say that the NIB file might not be loaded properly. You should check if your current target points toward the info.plist file you expect (project, edit active target, build tab, check Info.plist file), and then check that your info.plist mentions the right NIB (ke