• 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: Cocoa threading, objects by reference, and the keyword "oneway"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa threading, objects by reference, and the keyword "oneway"


  • Subject: Re: Cocoa threading, objects by reference, and the keyword "oneway"
  • From: Brendan Younger <email@hidden>
  • Date: Wed, 6 Jun 2001 14:28:09 -0500

Passing by reference is not the correct way to do this. Instead of passing &skymap, pass just skymap. This will pass the id of the class which is what you probably want to do. The Obj-C runtime knows where and what each object is simply through it's id. Another possibility is using distributed objects to "vend" the class and then pick it up in each thread that uses it (with locks in place, of course). Good luck.

Brendan Younger


References: 
 >Cocoa threading, objects by reference, and the keyword "oneway" (From: Miguel Morales <email@hidden>)

  • Prev by Date: Re: Fear
  • Next by Date: Re: Fear
  • Previous by thread: Re: Cocoa threading, objects by reference, and the keyword "oneway"
  • Next by thread: NSTableView as an Outlet
  • Index(es):
    • Date
    • Thread