FROM : glenn andreas
DATE : Sun Jan 06 04:16:37 2008
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_removed>
<http://www.gandreas.com/> wicked fun!
quadrium | flame : flame fractals & strange attractors : build,
mutate, evolve, animate
Glenn Andreas <email_removed>
<http://www.gandreas.com/> wicked fun!
quadrium | prime : build, mutate, evolve, animate : the next
generation of fractal art
DATE : Sun Jan 06 04:16:37 2008
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_removed>
<http://www.gandreas.com/> wicked fun!
quadrium | flame : flame fractals & strange attractors : build,
mutate, evolve, animate
Glenn Andreas <email_removed>
<http://www.gandreas.com/> wicked fun!
quadrium | prime : build, mutate, evolve, animate : the next
generation of fractal art
| Related mails | Author | Date |
|---|---|---|
| William Zumwalt | Jan 5, 02:06 | |
| marcelo.alves | Jan 5, 02:38 | |
| John Stiles | Jan 5, 02:48 | |
| William Zumwalt | Jan 5, 02:49 | |
| William Zumwalt | Jan 5, 02:54 | |
| Ken Thomases | Jan 5, 08:36 | |
| James Bucanek | Jan 5, 17:09 | |
| William Zumwalt | Jan 5, 22:35 | |
| William Zumwalt | Jan 5, 22:44 | |
| James Bucanek | Jan 6, 02:35 | |
| James Bucanek | Jan 6, 02:35 | |
| William Zumwalt | Jan 6, 03:35 | |
| glenn andreas | Jan 6, 04:16 | |
| William Zumwalt | Jan 6, 04:25 | |
| James Bucanek | Jan 6, 08:04 | |
| William Zumwalt | Jan 6, 09:28 | |
| Steve Weller | Jan 6, 18:55 |






Cocoa mail archive

