• 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: passing pointers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: passing pointers


  • Subject: Re: passing pointers
  • From: Angela Brett <email@hidden>
  • Date: Tue, 31 Dec 2002 00:18:54 +1300

Then you just need to have the method return obj;

At 6:09 AM -0500 30/12/2002, Aaron Boothello wrote:
I had to declare the objects as pointers and allocate them memory in the program
eg:
object *obj (in the first class)
[obj alloc....];(class 1)

object *obj2 (in the second class)
obj2 = [outlet getObject];

all i want is for obj2 to point to the same object as obj.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: passing pointers (From: Aaron Boothello <email@hidden>)

  • Prev by Date: Re: passing pointers
  • Next by Date: Re: straight-C DNS lookup with timeout?
  • Previous by thread: Re: passing pointers
  • Next by thread: combo box in table view
  • Index(es):
    • Date
    • Thread