Re: NSStream Questions
Re: NSStream Questions
- Subject: Re: NSStream Questions
- From: Greg Guerin <email@hidden>
- Date: Fri, 16 Jul 2010 13:10:52 -0700
John MacMullin wrote:
Create a dictionary with the stream as the key, access and maintain
the dictionary and stream stuff with the key, (NSValue key), lock
or synchronize access to the dictionary. Applies to every pass
through handleEvent (and everywhere else), ie., any broadcast code.
Exercise caution. The default behavior for NSMutableDictionary's
setObject:forKey: is to copy the key. If the stream is the key, this
can lead to problems.
-- GG
_______________________________________________
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