Maintaining a List of instances of a class
Maintaining a List of instances of a class
- Subject: Maintaining a List of instances of a class
- From: Stefan Heukamp <email@hidden>
- Date: Wed, 18 Jul 2007 14:01:55 +0200
Hi,
how do I let a class maintain a list (MutableArray) of it's own
instances? In C++ I would do this just in the constructor.
In Objective-C / Cocoa, I have this +(id) alloc function. But I don't
know how to get the pointer to the instance here.
Stefan
_______________________________________________
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