Advertisement
Guest User

Untitled

a guest
Jul 28th, 2015
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. + (NSColor *) staticColour {
  2. __strong static NSColor* _sharedInstance = nil;
  3. static dispatch_once_t onceToken;
  4. dispatch_once(&onceToken, ^{
  5. _sharedInstance = [NSColor colorWithCalibratedRed:255.f green:255.f blue:255.f alpha:1.0];
  6. });
  7. return _sharedInstance;
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement