Okay, so I have this...

[NSTimer scheduledTimerWithTimeInterval:0.2 target:selfselector:@selector(
onTimer:) userInfo:nil repeats:NO];

And then my selector looks like this:

- (void)onTimer:(NSTimer *)timer {
   NSLog(@"%@", [timer userInfo] );
}

Now, all I might need to do is to somehow package up the tableView and the
indexPath and stuff that into something and declare that as the userInfo?
And what might that look like?


On Tue, May 12, 2009 at 10:28 AM, I. Savant <idiotsavant2...@gmail.com>wrote:

> On Tue, May 12, 2009 at 10:21 AM, Eric E. Dolecki <edole...@gmail.com>
> wrote:
>
> > Here are my 2 methods:
> >
> > - (void)onTimer {
>
> ...
>
> > [NSTimer scheduledTimerWithTimeInterval:0.3 target:self
> selector:@selector(
> > onTimer) userInfo:nil repeats:NO];
>
>  Ah. I see your confusion. Take another look at the documentation for
> -[NSTimer scheduledTimerWithTimeInterval:target:selector:userInfo:repeats]
> ... look at the example selector. You're specifying a selector (
> onTimer ) that takes no arguments. Your selector should be "onTimer:"
> and it should accept a timer as its argument (don't forget to change
> both the method signature *and* the specified selector when setting up
> the timer). You'll then ask the passed-in timer (you read that
> documentation, right?) for its -userInfo.
>
> --
> I.S.
>



-- 
http://ericd.net
Interactive design and development
_______________________________________________

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