Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NSConnection release] anxiety



Andy Lee wrote on Wednesday, May 4, 2005:
>This sounds like a candidate for one of the -performSelector... methods 
>in NSObject, with a delay of 0.  Delayed performs are good for cases 
>when you:

That's an excellent suggestion.  I was playing around with creating a one-shot timer to accomplish the same thing, but this is *much* simpler.

I was looking for a way to doing exactly this (just send a message to an object from the event loop at some future time) awhile ago, and gave up.  But I was looking at the APIs for NSApplication, NSRunLoop, and those classes.  I had no idea this capability was just a category attached to NSObject.  How simple!

Thanks for the tip,

James

-- 
James Bucanek <mailto: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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Re: [NSConnection release] anxiety (From: Andy Lee <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.