class keeps track of object
class keeps track of object
- Subject: class keeps track of object
- From: Daniel Richman <email@hidden>
- Date: Tue, 01 Jul 2008 15:35:51 -0700
Hi All,
I have created a class (call it Foo) that there will be one and only one
instance of (call it Bar). I need some way to have Foo keep a pointer to
Bar, so when another object asks for the pointer to Bar, Foo will be
able to return the pointer.
Presumably this can be done, as NSNotificationCenter has the
defaultCenter method. But I don't know how to go about it. Any ideas?
Daniel
_______________________________________________
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