Skip to content

Instantly share code, notes, and snippets.

@KevinVitale
Created March 27, 2014 21:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KevinVitale/9819593 to your computer and use it in GitHub Desktop.
Save KevinVitale/9819593 to your computer and use it in GitHub Desktop.
//
// DUXClientsManager.h
//
//
// Created by Kevin Vitale on 3/25/14.
//
//
@class RACSignal;
#pragma mark - DUXClientManager
// -----------------------------------------------------------------------------
// Protocol
// -----------------------------------------------------------------------------
@protocol DUXClientsManager <NSObject>
- (RACSignal *)clientsMatchingAPIName:(NSString *)APIName;
@end
// -----------------------------------------------------------------------------
// Singleton
// -----------------------------------------------------------------------------
extern id<DUXClientsManager> ClientsManager(void);
@cdzombak
Copy link

this is nice because it separates the Singleton concerns from the actual interface of the object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment