Skip to content

Commit

Permalink
Merge pull request #79 from matt-curtis/development
Browse files Browse the repository at this point in the history
v1.7.2 (Sketch 3.5 Bug Fixes)
  • Loading branch information
matt-curtis committed Jan 27, 2016
2 parents 95ffe4b + 5fb9d86 commit fbac51f
Show file tree
Hide file tree
Showing 48 changed files with 1,925 additions and 226 deletions.

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>1.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
Expand Down
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,72 @@
//
// MCSPluginController.h
// MCSketchPluginFramework
//
// Created by Matt Curtis on 10/11/15.
// Copyright © 2015 Matt. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "SketchRuntime.h"

#import "MochaRuntime.h"

#import "MCSPluginUserDefaults.h"

#import "MCSPluginUpdater.h"


// Notifications

extern NSString *const MCSPluginSelectionDidChangeNotification;

extern NSString *const MCSPluginCurrentArtboardDidChangeNotification;

extern NSString *const MCSPluginCurrentDocumentDidChangeNotification;

extern NSString *const MCSPluginAllDocumentsClosedNotification;

// Notification Keys

extern NSString *const MCSPluginNotificationDocumentKey;

extern NSString *const MCSPluginNotificationDocumentWindowKey;


@interface MCSPluginController : NSObject

@property (nonatomic, readonly) NSString *loadedVersion;


@property (nonatomic) MSPluginCommand *pluginCommand;

@property (nonatomic) MSPluginBundle *plugin;

@property (nonatomic, readonly) MCSPluginUserDefaults *userDefaults;

@property (nonatomic, readonly) MCSPluginUpdater *updater;


+ (instancetype) pluginController:(MSPluginBundle*)plugin pluginCommand:(MSPluginCommand*)pluginCommand;

+ (instancetype) pluginController;


+ (NSAlert*) alertWithTitle:(NSString*)title information:(NSString*)information run:(BOOL)run;

+ (NSAlert*) alertWithTitle:(NSString*)title information:(NSString*)information;


- (void) applicationDidBecomeActive;


- (void) allDocumentsDidClose;

- (void) currentDocumentDidChange:(NSNotification*)notification;

- (void) currentSelectionDidChange:(NSNotification*)notification;

- (void) currentArtboardDidChange:(NSNotification*)notification;

@end
@@ -0,0 +1,22 @@
//
// MCSPluginUpdater.h
// MCSketchPluginFramework
//
// Created by Matt Curtis on 11/23/15.
// Copyright © 2015 Matt. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface MCSPluginUpdater : NSObject

@property (nonatomic) NSString *pluginIdentifier;

- (BOOL) isNewerPluginBundleAvailableLocally:(NSString*)loadedVersion;

- (void) showUpdateRestartPrompt;

- (void) relaunchSketch;

@end
@@ -0,0 +1,15 @@
//
// MCSPluginUserDefaults.h
// MCSketchPluginFramework
//
// Created by Matt Curtis on 11/23/15.
// Copyright © 2015 Matt. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface MCSPluginUserDefaults : NSUserDefaults

@property (nonatomic) NSString *pluginIdentifier;

@end
@@ -0,0 +1,18 @@
//
// MCSPluginUserDefaultsController.h
// MCSketchPluginFramework
//
// Created by Matt Curtis on 11/23/15.
// Copyright © 2015 Matt. All rights reserved.
//

#import <Cocoa/Cocoa.h>

#import "MCSPluginUserDefaults.h"


@interface MCSPluginUserDefaultsController : NSUserDefaultsController

- (MCSPluginUserDefaults*) userDefaultsProxy;

@end
@@ -0,0 +1,31 @@
//
// MCSketchPluginFramework.h
// MCSketchPluginFramework
//
// Created by Matt Curtis on 10/2/15.
// Copyright © 2015 Matt. All rights reserved.
//

#import <Cocoa/Cocoa.h>

//! Project version number for MCSketchPluginFramework.
FOUNDATION_EXPORT double MCSketchPluginFrameworkVersionNumber;

//! Project version string for MCSketchPluginFramework.
FOUNDATION_EXPORT const unsigned char MCSketchPluginFrameworkVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <MCSketchPluginFramework/PublicHeader.h>

#import <MCSketchPluginFramework/MochaRuntime.h>

#import <MCSketchPluginFramework/SketchRuntime.h>

#import <MCSketchPluginFramework/Utilities.h>

#import <MCSketchPluginFramework/MCSPluginUserDefaults.h>

#import <MCSketchPluginFramework/MCSPluginUserDefaultsController.h>

#import <MCSketchPluginFramework/MCSPluginUpdater.h>

#import <MCSketchPluginFramework/MCSPluginController.h>

0 comments on commit fbac51f

Please sign in to comment.