Thank you all for your suggestions. I will use the runloop to wait on
response.
One more comment on self-ivar... I used this approach because using [self
connection] or self.connection (they are both the same thing) amount to an
extra message call.
Nick
On Thu, Apr 30, 2009 at 11:09 AM, Jeff
Yes, those result in a message call, though it's a very fast message
call. Within your instance methods, however, you can just access the
ivar directly, e.g, connection without a message call and without
self-connection.
-Jeff
On May 1, 2009, at 11:00 AM, Nick Hristov wrote:
Thank you
Am 01.05.2009 um 18:00 schrieb Nick Hristov:
One more comment on self-ivar... I used this approach because using
[self
connection] or self.connection (they are both the same thing) amount
to an
extra message call.
Then just use ivar, without self-
It amounts to the same (no call) but
On Fri, May 1, 2009 at 12:00 PM, Nick Hristov n...@freshlybakedapps.com wrote:
One more comment on self-ivar... I used this approach because using [self
connection] or self.connection (they are both the same thing) amount to an
extra message call.
This is true, and sometimes you want to do
On 30 Apr 2009, at 05:31, Nick Hristov wrote:
Hello,
I am currently working on a small iphone app, and I am facing some
difficulty with getting NSURLConnection to ... connect. Basically my
unit
tests don't pass: connection is never made.
Here is a snippet of the non-working code:
code
-
On Wed, Apr 29, 2009 at 11:31 PM, Nick Hristov
n...@freshlybakedapps.com wrote:
- (id) initWithURL: (NSURL*) someurl
{
self = [super init];
if (self != nil) {
self-url = [someurl copy];
NSURLRequest * request = [NSURLRequest requestWithURL:self-url
cachePolicy:
On Apr 30, 2009, at 12:53 AM, Kyle Sluder wrote:
On Thu, Apr 30, 2009 at 1:44 AM, Jeff Johnson
publicpost...@lapcatsoftware.com wrote:
On an unrelated note, your use of self-connection, etc., is non-
standard
and not advised. You should be using direct ivar access connection,
properties
Hello,
I am currently working on a small iphone app, and I am facing some
difficulty with getting NSURLConnection to ... connect. Basically my unit
tests don't pass: connection is never made.
Here is a snippet of the non-working code:
code
- (id) initWithURL: (NSURL*) someurl
{
self =
Hi Nick.
You can't sleep the thread. According to the documentation for -
[NSThread sleepForTimeInterval:], No run loop processing occurs while
the thread is blocked.. You need to run the run loop for the
connection to process.
On an unrelated note, your use of self-connection, etc., is
On Thu, Apr 30, 2009 at 1:44 AM, Jeff Johnson
publicpost...@lapcatsoftware.com wrote:
On an unrelated note, your use of self-connection, etc., is non-standard
and not advised. You should be using direct ivar access connection,
properties self.connection, or accessor methods [self connection].
10 matches
Mail list logo