• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTimer with userInfo
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTimer with userInfo


  • Subject: Re: NSTimer with userInfo
  • From: Graham Cox <email@hidden>
  • Date: Wed, 13 May 2009 00:49:25 +1000


On 13/05/2009, at 12:42 AM, I. Savant wrote:

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?

It would look like my previous response suggested. Use those collection classes (NSDictionary, NSArray, etc.). In your case, I'd use a dictionary with your table as the key "table", the index path as key "indexPath", etc.


Normally the object receiving the timer callbacks is a controller that already knows about those objects, or has direct ways to get them. If not, you may have a design problem...

--Graham


_______________________________________________

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


  • Follow-Ups:
    • Re: NSTimer with userInfo
      • From: "Eric E. Dolecki" <email@hidden>
    • Re: NSTimer with userInfo
      • From: "I. Savant" <email@hidden>
References: 
 >NSTimer with userInfo (From: "Eric E. Dolecki" <email@hidden>)
 >Re: NSTimer with userInfo (From: "I. Savant" <email@hidden>)
 >Re: NSTimer with userInfo (From: "Eric E. Dolecki" <email@hidden>)
 >Re: NSTimer with userInfo (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: NSTimer with userInfo
  • Next by Date: Re: NSTimer with userInfo
  • Previous by thread: Re: NSTimer with userInfo
  • Next by thread: Re: NSTimer with userInfo
  • Index(es):
    • Date
    • Thread