• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: thread protocol modifiers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: thread protocol modifiers
      • From: "William Zumwalt" <email@hidden>
References: 
 >Re: thread protocol modifiers (From: "William Zumwalt" <email@hidden>)
 >Re: thread protocol modifiers (From: James Bucanek <email@hidden>)
 >Re: thread protocol modifiers (From: "William Zumwalt" <email@hidden>)

  • Prev by Date: to select a single cell in NSMatrix
  • Next by Date: Re: to select a single cell in NSMatrix
  • Previous by thread: Re: thread protocol modifiers
  • Next by thread: Re: thread protocol modifiers
  • Index(es):
    • Date
    • Thread