Skip to content

Instantly share code, notes, and snippets.

@KevinVitale
Created March 27, 2014 21:38
Show Gist options
  • Select an option

  • Save KevinVitale/9819593 to your computer and use it in GitHub Desktop.

Select an option

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