thanks - obvious. Should have caught this on my own:)


________________________________
From: Bill Bumgarner <b...@mac.com>
To: Helen Cooper <helen.coo...@rocketmail.com>
Cc: cocoa-dev@lists.apple.com
Sent: Wed, December 30, 2009 12:37:38 PM
Subject: Re: Using performSelector:withObject:afterDelay: to call a delegate 
method?


On Dec 30, 2009, at 9:08 AM, Helen Cooper wrote:

> [self performSelector:@selector(doSomething00) withObject:NULL 
> afterDelay:4.0];
> 
> 
> -(void)doSomething00{
> [someDelegate doSomething];
> }
> 
> I am wondering though, if there might be a way to use  
> performSelector:withObject:afterDelay: (or some similar method) to call the 
> delegate method directly?

    [delegate performSelector:@selector(doSomething) withObject:nil 
afterDelay:4.0];

b.bum



      
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to