Re: Creating an NSTimer subclass
Re: Creating an NSTimer subclass
- Subject: Re: Creating an NSTimer subclass
- From: Cameron Hayne <email@hidden>
- Date: Thu, 9 Nov 2006 18:20:35 -0500
On 9-Nov-06, at 1:09 PM, leenoori wrote:
If I appropriated the userInfo parameter for my own uses then
others using the class wouldn't be able to use it as a drop-in
replacement for NSTimer, because they would no longer be allowed to
pass their own userInfo.
You could probably transparently package the user-supplied info as
part of a data structure that you pass as your own userInfo when you
invoke the NSTimer routines. (You'd have the NSTimer invoke your own
method which would unpack the info and then call the user-supplied
method with the user-supplied info.)
--
Cameron Hayne
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden