Re: thread protocol modifiers
Re: thread protocol modifiers
- Subject: Re: thread protocol modifiers
- From: glenn andreas <email@hidden>
- Date: Sat, 5 Jan 2008 21:16:37 -0600
On Jan 5, 2008, at 8:35 PM, William Zumwalt wrote:
It's hard to say. We need to clear up the point about where
(same process or different process) your "server" thread is running.
OK, to clarify, my user kicks off a job which causes a thread to
start like
this ...
+ (NSConnection *) startNetworkThreadWithTag:(int) tag
forController:(id <ClientMethods>) controller
{
...
[NSThread detachNewThreadSelector:@selector(_connectWithPorts:)
toTarget:self withObject:portArray];
Just as a stylistic matter that should be followed to avoid having
strange and unexpected problems, don't use the leading underscore.
From <http://developer.apple.com/documentation/Cocoa/Conceptual/CodingGuidelines/Articles/NamingMethods.html
>:
Names of most private methods in the Cocoa frameworks have an
underscore prefix (for example,_fooData ) to mark them as private.
From this fact follow two recommendations.
•
Don’t use the underscore character as a prefix for your private
methods. Apple reserves this convention.
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium | flame : flame fractals & strange attractors : build,
mutate, evolve, animate
Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium | prime : build, mutate, evolve, animate : the next
generation of fractal art
_______________________________________________
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