NSObject_Extension.swift #1

  • //
  • guest/
  • jaime_rios/
  • XcodePerforcePlugin/
  • XcodePerforcePlugin/
  • NSObject_Extension.swift
  • View
  • Commits
  • Open Download .zip Download (492 B)
//
//  NSObject_Extension.swift
//
//  Created by Jaime Rios on 2015-05-28.
//  Copyright (c) 2015 jaimerios. All rights reserved.
//

import Foundation

extension NSObject
{
    class func pluginDidLoad(bundle: NSBundle)
    {
        let appName = NSBundle.mainBundle().infoDictionary?["CFBundleName"] as? NSString
        if appName == "Xcode"
        {
        	if sharedPlugin == nil
            {
        		sharedPlugin = XcodePerforcePlugin(bundle: bundle)
        	}
        }
    }
}
# Change User Description Committed
#1 13687 Jaime Rios Added Xcode 6.3.2 support; minor editing changes; fixes for Swift compiler errors.