Binding to a Singleton
Binding to a Singleton
- Subject: Binding to a Singleton
- From: Mike Abdullah <email@hidden>
- Date: Tue, 26 Sep 2006 10:05:45 +0100
In my app I have a singleton class that behaves kinda like
NSUserDefaults. So I'm wondering, what's my best bet for how to go
about binding to this class from a document NIB.
Options I can see:
* Bind to NSApp and use my AppDelegate to hook the singleton up
correctly
* Bind to an NSObjectController and in code connect this object
controller to the singleton at runtime
* Create a subclass of NSObjectController that always connects itself
to my singleton
* Manually bind everything in code at runtime
Mike.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden