How to bind a control to a singleton in Cocoa?

Posted by SphereCat1 on Stack Overflow See other posts from Stack Overflow or by SphereCat1
Published on 2010-05-23T12:32:42Z Indexed on 2010/05/23 12:40 UTC
Read the original article Hit count: 289

I have a singleton in my FTP app designed to store all of the types of servers that the app can handle, such as FTP or Amazon S3. These types are plugins which are located in the app bundle. Their path is located by applicationWillFinishLoading: and sent to the addServerType: method inside the singleton to be loaded and stored in an NSMutableDictionary.

My question is this:
How do I bind an NSDictionaryController to the dictionary inside the singleton instance? Can it be done in IB, or do I have to do it in code? I need to be able to display the dictionary's keys in an NSPopupButton so the user can select a server type.

Thanks in advance!
SphereCat1

© Stack Overflow or respective owner

Related posts about cocoa

Related posts about binding