On Sun, Jul 13, 2008 at 6:13 AM, Lorenzo <[EMAIL PROTECTED]> wrote: > Hi, > I need to execute a method only after a thread has been executed. > I guess I have to lock that thread but I don't know how. > The thread I should lock comes from a timer
Timers have nothing to do with threads. All code in a timer executes in the thread associated with the runloop that they are scheduled in; in this case, this is most likely the main thread. As such, NSLock is unnecessary, as you have no other thread. Mike _______________________________________________ Cocoa-dev mailing list ([email protected]) 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 [EMAIL PROTECTED]
