Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: passing pointers



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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.