Skip to content

Instantly share code, notes, and snippets.

@rinatkhanov
rinatkhanov / gist:9583748
Created March 16, 2014 14:05
UIView+Debug.m
//
// UIView+Debug.m
// Symbols
//
// Created by Khanov on 16/03/14.
// Copyright (c) 2014 Khanov. All rights reserved.
//
#import "UIView+Debug.h"
@rinatkhanov
rinatkhanov / KeychainQuery.swift
Last active August 24, 2017 13:06
Custom SSKeychainQuery subclass that supports keychain sharing on OS X
// KeychainQuery is OS X only.
#if os(OSX)
/// Custom SSKeychainQuery subclass that supports keychain sharing on OS X.
/// based on https://developer.apple.com/library/mac/documentation/Security/Conceptual/keychainServConcepts/03tasks/tasks.html#//apple_ref/doc/uid/TP30000897-CH205-BBCHEABI (Listing 3-2)
private class KeychainQuery: SSKeychainQuery {
/// Specify app paths to share keychain with.
/// No need to pass current app's path (which calls the code).
var sharedAppPaths: [String]?