Skip to content

Commit

Permalink
1.7.4
Browse files Browse the repository at this point in the history
This update fixes a few bugs and improves compatibility with the latest
version of Sketch, 41.2. See Releases for more info.
  • Loading branch information
matt-curtis committed Dec 4, 2016
2 parents 4e46ba1 + 499994e commit 9810551
Show file tree
Hide file tree
Showing 28 changed files with 180 additions and 88 deletions.
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>14F1605</string>
<string>15G31</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
Expand All @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.7.3</string>
<string>1.7.4</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
Expand All @@ -29,17 +29,17 @@
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>7C1002</string>
<string>8B62</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<key>DTSDKBuild</key>
<string>15C43</string>
<string>16B2649</string>
<key>DTSDKName</key>
<string>macosx10.11</string>
<string>macosx10.12</string>
<key>DTXcode</key>
<string>0721</string>
<string>0810</string>
<key>DTXcodeBuild</key>
<string>7C1002</string>
<string>8B62</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2015 Matt. All rights reserved.</string>
</dict>
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Expand Up @@ -45,8 +45,6 @@ extern NSString *const MCSPluginNotificationDocumentWindowKey;

@property (nonatomic, readonly) MCSPluginUserDefaults *userDefaults;

@property (nonatomic, readonly) MCSPluginUpdater *updater;


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

Expand Down
Expand Up @@ -20,22 +20,11 @@
#pragma mark Protocols

@protocol MSPageDelegate <NSObject>
/*
- (void) refreshViewsWithMask:(unsigned long long)arg1;
- (void) refreshOfType:(unsigned long long)arg1 rect:(struct CGRect)arg2;
- (void) didUpdateDetailsForPage:(MSPage *)arg1;
- (void) willRemovePage:(MSPage *)arg1;
- (void) didAddPage:(MSPage *)arg1;
- (void) willRemoveArtboard:(MSArtboardGroup *)arg1 fromPage:(MSPage *)arg2;
- (void) didAddArtboard:(MSArtboardGroup *)arg1 toPage:(MSPage *)arg2;
- (void) didUpdateDetailsForArtboard:(MSArtboardGroup *)arg1;
- (void) determineCurrentArtboard;
*/

- (void) layerSelectionDidChange;

- (void) currentArtboardDidChange;
/*
- (void) collectRefreshRect:(struct CGRect)arg1 page:(MSPage *)arg2;
*/

@end


Expand All @@ -54,6 +43,8 @@

@interface MSLayerArray : NSObject <NSFastEnumeration>

@property (copy, nonatomic) NSArray *layers;

+ (instancetype) arrayWithLayers:(NSArray*)layers;

@end
Expand Down Expand Up @@ -152,11 +143,16 @@

@interface MSLayer : NSObject

@property (nonatomic) NSString *name;

@property (readonly, nonatomic) BOOL nameIsFixed;


@property (nonatomic) id sharedObjectID;

@property (nonatomic) MSAbsoluteRect *absoluteRect;
@property (readonly, copy, nonatomic) NSObject<NSCopying, NSCoding> *objectID;

@property (nonatomic) NSString *name;
@property (readonly, nonatomic) NSObject<NSCopying, NSCoding> *originalObjectID;


@property (nonatomic) CGPoint origin;
Expand All @@ -165,18 +161,38 @@

@property (retain, nonatomic) MSRect *frame;

@property (nonatomic) MSAbsoluteRect *absoluteRect;


@property (nonatomic) BOOL isSelected;

@property (nonatomic) BOOL isHovering;


- (void) select:(BOOL)select byExpandingSelection:(BOOL)expandSelection showSelection:(BOOL)showSelection;

- (void) select:(BOOL)select byExpandingSelection:(BOOL)expandSelection;


- (MSLayerGroup*) parentGroup;

- (MSPage*) parentPage;

- (MSArtboardGroup*) parentArtboard;


- (instancetype) duplicate;


- (void) removeFromParent;


- (BOOL) isSharedObject;

- (BOOL) isSymbol;

- (BOOL) containsSymbols;

- (BOOL) parentOrSelfIsSymbol;

@end
Expand Down Expand Up @@ -267,6 +283,14 @@

@end

#define MSShapeGroup_Class GetClass(@"MSShapeGroup")

@interface MSShapeGroup : MSLayerGroup

- (void) prepareAsMask;

@end


#pragma mark -
#pragma mark Plugins
Expand Down
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2015 Matt. All rights reserved.
//

#import <MCSketchPluginFramework/SketchRuntime.h>
#import "SketchRuntime.h"

#import "MochaRuntime.h"

Expand Down Expand Up @@ -36,6 +36,14 @@ CGFloat Sketch_GetTextHeight(CGFloat desiredTextWidth, MSTextLayer *textLayer);
CGSize Sketch_GetTextSize(MSTextLayer *textLayer);


#pragma mark -
#pragma mark Layer Creation

MSShapeGroup *Sketch_CreateShapeLayer();

MSTextLayer *Sketch_CreateTextLayer();


#pragma mark -
#pragma mark Document

Expand Down
Binary file not shown.
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>14F1605</string>
<string>15G31</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
Expand All @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.1.1</string>
<string>1.1.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
Expand All @@ -29,17 +29,17 @@
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>7C1002</string>
<string>8B62</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<key>DTSDKBuild</key>
<string>15C43</string>
<string>16B2649</string>
<key>DTSDKName</key>
<string>macosx10.11</string>
<string>macosx10.12</string>
<key>DTXcode</key>
<string>0721</string>
<string>0810</string>
<key>DTXcodeBuild</key>
<string>7C1002</string>
<string>8B62</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2015 Matt. All rights reserved.</string>
</dict>
Expand Down
Binary file not shown.
Expand Up @@ -45,8 +45,6 @@ extern NSString *const MCSPluginNotificationDocumentWindowKey;

@property (nonatomic, readonly) MCSPluginUserDefaults *userDefaults;

@property (nonatomic, readonly) MCSPluginUpdater *updater;


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

Expand Down
Expand Up @@ -20,22 +20,11 @@
#pragma mark Protocols

@protocol MSPageDelegate <NSObject>
/*
- (void) refreshViewsWithMask:(unsigned long long)arg1;
- (void) refreshOfType:(unsigned long long)arg1 rect:(struct CGRect)arg2;
- (void) didUpdateDetailsForPage:(MSPage *)arg1;
- (void) willRemovePage:(MSPage *)arg1;
- (void) didAddPage:(MSPage *)arg1;
- (void) willRemoveArtboard:(MSArtboardGroup *)arg1 fromPage:(MSPage *)arg2;
- (void) didAddArtboard:(MSArtboardGroup *)arg1 toPage:(MSPage *)arg2;
- (void) didUpdateDetailsForArtboard:(MSArtboardGroup *)arg1;
- (void) determineCurrentArtboard;
*/

- (void) layerSelectionDidChange;

- (void) currentArtboardDidChange;
/*
- (void) collectRefreshRect:(struct CGRect)arg1 page:(MSPage *)arg2;
*/

@end


Expand All @@ -54,6 +43,8 @@

@interface MSLayerArray : NSObject <NSFastEnumeration>

@property (copy, nonatomic) NSArray *layers;

+ (instancetype) arrayWithLayers:(NSArray*)layers;

@end
Expand Down Expand Up @@ -152,11 +143,16 @@

@interface MSLayer : NSObject

@property (nonatomic) NSString *name;

@property (readonly, nonatomic) BOOL nameIsFixed;


@property (nonatomic) id sharedObjectID;

@property (nonatomic) MSAbsoluteRect *absoluteRect;
@property (readonly, copy, nonatomic) NSObject<NSCopying, NSCoding> *objectID;

@property (nonatomic) NSString *name;
@property (readonly, nonatomic) NSObject<NSCopying, NSCoding> *originalObjectID;


@property (nonatomic) CGPoint origin;
Expand All @@ -165,18 +161,38 @@

@property (retain, nonatomic) MSRect *frame;

@property (nonatomic) MSAbsoluteRect *absoluteRect;


@property (nonatomic) BOOL isSelected;

@property (nonatomic) BOOL isHovering;


- (void) select:(BOOL)select byExpandingSelection:(BOOL)expandSelection showSelection:(BOOL)showSelection;

- (void) select:(BOOL)select byExpandingSelection:(BOOL)expandSelection;


- (MSLayerGroup*) parentGroup;

- (MSPage*) parentPage;

- (MSArtboardGroup*) parentArtboard;


- (instancetype) duplicate;


- (void) removeFromParent;


- (BOOL) isSharedObject;

- (BOOL) isSymbol;

- (BOOL) containsSymbols;

- (BOOL) parentOrSelfIsSymbol;

@end
Expand Down Expand Up @@ -267,6 +283,14 @@

@end

#define MSShapeGroup_Class GetClass(@"MSShapeGroup")

@interface MSShapeGroup : MSLayerGroup

- (void) prepareAsMask;

@end


#pragma mark -
#pragma mark Plugins
Expand Down
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2015 Matt. All rights reserved.
//

#import <MCSketchPluginFramework/SketchRuntime.h>
#import "SketchRuntime.h"

#import "MochaRuntime.h"

Expand Down Expand Up @@ -36,6 +36,14 @@ CGFloat Sketch_GetTextHeight(CGFloat desiredTextWidth, MSTextLayer *textLayer);
CGSize Sketch_GetTextSize(MSTextLayer *textLayer);


#pragma mark -
#pragma mark Layer Creation

MSShapeGroup *Sketch_CreateShapeLayer();

MSTextLayer *Sketch_CreateTextLayer();


#pragma mark -
#pragma mark Document

Expand Down
Binary file not shown.

0 comments on commit 9810551

Please sign in to comment.