Re: Creating an NSTimer subclass
Re: Creating an NSTimer subclass
- Subject: Re: Creating an NSTimer subclass
- From: leenoori <email@hidden>
- Date: Fri, 10 Nov 2006 03:06:03 +0100
El 10/11/2006, a las 0:20, Cameron Hayne escribió:
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