Re: NSMutableURLRequest weirdness!

2009-06-04 Thread Ammar Ibrahim
On Fri, Jun 5, 2009 at 3:16 AM, Shawn Erickson wrote: > On Thu, Jun 4, 2009 at 4:44 PM, Ammar Ibrahim > wrote: > > > Excuse me for the silly question. But I'm going to be doing hundreds of > > requests, and I have GC ON, how do I create these connections and retain > > them? > > Not sure I under

Re: NSMutableURLRequest weirdness!

2009-06-04 Thread Greg Guerin
Ammar Ibrahim wrote: Excuse me for the silly question. But I'm going to be doing hundreds of requests, and I have GC ON, how do I create these connections and retain them? Make an NSArray ivar, which you add the connections to. This will work under GC or retain/release. GC works because

Re: NSMutableURLRequest weirdness!

2009-06-04 Thread Ammar Ibrahim
On Fri, Jun 5, 2009 at 2:44 AM, Ammar Ibrahim wrote: > > > On Fri, Jun 5, 2009 at 2:37 AM, Mike Abdullah > wrote: > >> >> On 5 Jun 2009, at 00:10, Ammar Ibrahim wrote: >> >> On Fri, Jun 5, 2009 at 1:55 AM, Keary Suska >> >wrote: >>> >>> On Jun 4, 2009, at 2:11 PM, Ammar Ibrahim wrote:

Re: NSMutableURLRequest weirdness!

2009-06-04 Thread Shawn Erickson
On Thu, Jun 4, 2009 at 4:44 PM, Ammar Ibrahim wrote: > Excuse me for the silly question. But I'm going to be doing hundreds of > requests, and I have GC ON, how do I create these connections and retain > them? Not sure I understand the question but as a guess... Put them in an NSMutableArray or

Re: NSMutableURLRequest weirdness!

2009-06-04 Thread Ammar Ibrahim
On Fri, Jun 5, 2009 at 2:37 AM, Mike Abdullah wrote: > > On 5 Jun 2009, at 00:10, Ammar Ibrahim wrote: > > On Fri, Jun 5, 2009 at 1:55 AM, Keary Suska > >wrote: >> >> On Jun 4, 2009, at 2:11 PM, Ammar Ibrahim wrote: >>> >>> Hello, I'm about to bang my head against the wall. Here's the situation,

Re: NSMutableURLRequest weirdness!

2009-06-04 Thread Mike Abdullah
On 5 Jun 2009, at 00:10, Ammar Ibrahim wrote: On Fri, Jun 5, 2009 at 1:55 AM, Keary Suska d...@esoteritech.com>wrote: On Jun 4, 2009, at 2:11 PM, Ammar Ibrahim wrote: Hello, I'm about to bang my head against the wall. Here's the situation, I'm trying to send many requests using the same r

Re: NSMutableURLRequest weirdness!

2009-06-04 Thread Ammar Ibrahim
On Fri, Jun 5, 2009 at 1:55 AM, Keary Suska wrote: > On Jun 4, 2009, at 2:11 PM, Ammar Ibrahim wrote: > > Hello, I'm about to bang my head against the wall. Here's the situation, >> I'm >> trying to send many requests using the same request object, I have a >> method >> which I call frequently, w

Re: NSMutableURLRequest weirdness!

2009-06-04 Thread Keary Suska
On Jun 4, 2009, at 2:11 PM, Ammar Ibrahim wrote: Hello, I'm about to bang my head against the wall. Here's the situation, I'm trying to send many requests using the same request object, I have a method which I call frequently, which has the following piece of code: This is not all the rel

NSMutableURLRequest weirdness!

2009-06-04 Thread Ammar Ibrahim
Hello, I'm about to bang my head against the wall. Here's the situation, I'm trying to send many requests using the same request object, I have a method which I call frequently, which has the following piece of code: NSMutableURLRequest *newReq = [[NSMutableURLRequest alloc] init]; [newReq set