Re: NSTimer with userInfo
Re: NSTimer with userInfo
- Subject: Re: NSTimer with userInfo
- From: "Eric E. Dolecki" <email@hidden>
- Date: Tue, 12 May 2009 10:28:27 -0400
So in my example, how would I do that exactly? I'd want to send the
tableView and indexPath, right? And then call the method on those references
in the timer's done method?
On Tue, May 12, 2009 at 10:25 AM, I. Savant <email@hidden>wrote:
> On Tue, May 12, 2009 at 10:21 AM, Eric E. Dolecki <email@hidden>
> wrote:
>
>
> > // What do I use for userInfo?
> >
> > [NSTimer scheduledTimerWithTimeInterval:0.3 target:self
> selector:@selector(
> > onTimer) userInfo:nil repeats:NO];
>
> ... any object you want. A dictionary? A row number wrapped in an
> NSNumber? A custom object?
>
> The documentation for the method you're using defines the "userInfo"
> argument as type "id", which means "any object".
>
> --
> I.S.
>
--
http://ericd.net
Interactive design and development
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden