diff --git a/SourceDrop.xcodeproj/project.pbxproj b/SourceDrop.xcodeproj/project.pbxproj index 19ba69a..46a2978 100644 --- a/SourceDrop.xcodeproj/project.pbxproj +++ b/SourceDrop.xcodeproj/project.pbxproj @@ -59,6 +59,9 @@ 5FC1F4CE153C3CD3009D5E15 /* SRValidator.m in Sources */ = {isa = PBXBuildFile; fileRef = 5FC1F4C8153C3CD3009D5E15 /* SRValidator.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; 5FC1F4CF153C3CD3009D5E15 /* SRCommon.m in Sources */ = {isa = PBXBuildFile; fileRef = 5FC1F4CA153C3CD3009D5E15 /* SRCommon.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; }; 5FC1F4D1153C3E57009D5E15 /* Carbon.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5FC1F4D0153C3E57009D5E15 /* Carbon.framework */; }; + 5FC33C6E16BFCBE80006019F /* SDPInfoPreferencesViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 5FC33C6C16BFCBE80006019F /* SDPInfoPreferencesViewController.m */; }; + 5FC33C6F16BFCBE80006019F /* SDPInfoPreferencesView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 5FC33C6D16BFCBE80006019F /* SDPInfoPreferencesView.xib */; }; + 5FC33C7116BFCD3B0006019F /* SourceDrop-92px.png in Resources */ = {isa = PBXBuildFile; fileRef = 5FC33C7016BFCD3B0006019F /* SourceDrop-92px.png */; }; 5FD57880153C75B800818808 /* SDPUserDefaults.plist in Resources */ = {isa = PBXBuildFile; fileRef = 5FD5787F153C75B800818808 /* SDPUserDefaults.plist */; }; 5FE576431535DDD900D65C4F /* SDPPasteBinInterface.m in Sources */ = {isa = PBXBuildFile; fileRef = 5FE576421535DDD900D65C4F /* SDPPasteBinInterface.m */; }; 5FE5766E1535DFEC00D65C4F /* CoreServices.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5FE5766D1535DFEC00D65C4F /* CoreServices.framework */; }; @@ -161,6 +164,10 @@ 5FC1F4C9153C3CD3009D5E15 /* SRCommon.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SRCommon.h; sourceTree = ""; }; 5FC1F4CA153C3CD3009D5E15 /* SRCommon.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SRCommon.m; sourceTree = ""; }; 5FC1F4D0153C3E57009D5E15 /* Carbon.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Carbon.framework; path = System/Library/Frameworks/Carbon.framework; sourceTree = SDKROOT; }; + 5FC33C6B16BFCBE80006019F /* SDPInfoPreferencesViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDPInfoPreferencesViewController.h; sourceTree = ""; }; + 5FC33C6C16BFCBE80006019F /* SDPInfoPreferencesViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SDPInfoPreferencesViewController.m; sourceTree = ""; }; + 5FC33C6D16BFCBE80006019F /* SDPInfoPreferencesView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SDPInfoPreferencesView.xib; sourceTree = ""; }; + 5FC33C7016BFCD3B0006019F /* SourceDrop-92px.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "SourceDrop-92px.png"; sourceTree = ""; }; 5FD5787F153C75B800818808 /* SDPUserDefaults.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = SDPUserDefaults.plist; sourceTree = ""; }; 5FE576401535DCAB00D65C4F /* SDPSharingInterface.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SDPSharingInterface.h; sourceTree = ""; }; 5FE576411535DDD900D65C4F /* SDPPasteBinInterface.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SDPPasteBinInterface.h; sourceTree = ""; }; @@ -239,6 +246,9 @@ 5F2C16DA1536FE77006F3C2A /* SDPAdvancedPreferencesViewController.m */, 5F2E0C1615BCA31600DB0ACA /* SDPAuthenticationController.h */, 5F2E0C1715BCA31600DB0ACA /* SDPAuthenticationController.m */, + 5FC33C6D16BFCBE80006019F /* SDPInfoPreferencesView.xib */, + 5FC33C6B16BFCBE80006019F /* SDPInfoPreferencesViewController.h */, + 5FC33C6C16BFCBE80006019F /* SDPInfoPreferencesViewController.m */, ); name = Preferences; sourceTree = ""; @@ -379,6 +389,7 @@ 5F18DBEE1544179A00FC25FE /* SDPWelcomeMessage.txt */, 5F3FCEE5153FF9A60030FC76 /* SDPSharingServices.plist */, 5FD5787F153C75B800818808 /* SDPUserDefaults.plist */, + 5FC33C7016BFCD3B0006019F /* SourceDrop-92px.png */, 5FB140601535D5FA00A4565C /* SDPStatusBarIcon.png */, 5F21395B1539C56C00D40300 /* SDPStatusBarAlternateIcon.png */, 5F7B4644153B2FB20066424F /* UploadNotification.wav */, @@ -491,6 +502,8 @@ 5F88029115931C1D00C5ADA2 /* SDPStatusBarNotification.xib in Resources */, 5F2E0BFD15BC010E00DB0ACA /* SDPDetailedLogView.xib in Resources */, 5F13745115D6B0C10091003F /* SourceDrop.iconset in Resources */, + 5FC33C6F16BFCBE80006019F /* SDPInfoPreferencesView.xib in Resources */, + 5FC33C7116BFCD3B0006019F /* SourceDrop-92px.png in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -564,6 +577,7 @@ 5F2E0BFB15BBFFAE00DB0ACA /* SDPUploadFailureController.m in Sources */, 5F2E0C1515BCA0F600DB0ACA /* EMKeychainItem.m in Sources */, 5F2E0C1815BCA31600DB0ACA /* SDPAuthenticationController.m in Sources */, + 5FC33C6E16BFCBE80006019F /* SDPInfoPreferencesViewController.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; diff --git a/SourceDrop/SDPAppDelegate.m b/SourceDrop/SDPAppDelegate.m index 6689cde..f204430 100644 --- a/SourceDrop/SDPAppDelegate.m +++ b/SourceDrop/SDPAppDelegate.m @@ -9,6 +9,7 @@ #import "SDPAppDelegate.h" #import "SDPGeneralPreferencesViewController.h" #import "SDPAdvancedPreferencesViewController.h" +#import "SDPInfoPreferencesViewController.h" #import "SDPConfigurableInterface.h" #import "SDPServicesProvider.h" #import "SDPNotificationPopup.h" @@ -143,6 +144,7 @@ - (MASPreferencesWindowController *)preferencesWindowController NSMutableArray *viewControllers = [NSMutableArray arrayWithCapacity:2]; [viewControllers addObject:[[SDPGeneralPreferencesViewController alloc] init]]; [viewControllers addObject:[[SDPAdvancedPreferencesViewController alloc] init]]; + [viewControllers addObject:[[SDPInfoPreferencesViewController alloc] init]]; NSString *windowTitle = NSLocalizedString(@"Preferences", @"Title of the Preferences Window"); _preferencesWindowController = [[MASPreferencesWindowController alloc] initWithViewControllers:viewControllers title:windowTitle]; diff --git a/SourceDrop/SDPInfoPreferencesView.xib b/SourceDrop/SDPInfoPreferencesView.xib new file mode 100644 index 0000000..9ab9b8b --- /dev/null +++ b/SourceDrop/SDPInfoPreferencesView.xib @@ -0,0 +1,738 @@ + + + + 1060 + 12C60 + 3084 + 1187.34 + 625.00 + + com.apple.InterfaceBuilder.CocoaPlugin + 3084 + + + NSButton + NSButtonCell + NSCustomObject + NSCustomView + NSImageCell + NSImageView + NSTextField + NSTextFieldCell + + + com.apple.InterfaceBuilder.CocoaPlugin + + + PluginDependencyRecalculationVersion + + + + + SDPInfoPreferencesViewController + + + FirstResponder + + + NSApplication + + + + 268 + + + + 268 + {{25, 82}, {92, 15}} + + + + _NS:9 + YES + + 67108864 + 134217728 + License + + LucidaGrande-Bold + 11 + 3357 + + _NS:9 + + -2033434624 + 167 + + 549650432 + {1, 1} + + + + + + TU0AKgAAAAoAAAAOAQAAAwAAAAEAAQAAAQEAAwAAAAEAAQAAAQIAAwAAAAIACAAIAQMAAwAAAAEAAQAA +AQYAAwAAAAEAAQAAAREABAAAAAEAAAAIARIAAwAAAAEAAQAAARUAAwAAAAEAAgAAARYAA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AbAAgAGcAcgBpAHMAIABnAGUAbgDpAHIAaQBjAG8OQg4bDiMORA4f +DiUOTA4qDjUOQA4XDjIOFw4xDkgOJw5EDhsARwBlAG4AZQBsACAARwByAGkAIABQAHIAbwBmAGkAbABp +AFkAbABlAGkAbgBlAG4AIABoAGEAcgBtAGEAYQBwAHIAbwBmAGkAaQBsAGkAVQBuAGkAdwBlAHIAcwBh +AGwAbgB5ACAAcAByAG8AZgBpAGwAIABzAHoAYQByAG8BWwBjAGkEHgQxBEkEOAQ5ACAEQQQ1BEAESwQ5 +ACAEPwRABD4ERAQ4BDsETAZFBkQGQQAgBioGOQYxBkoGQQAgAEcAcgBhAHkAIAYnBkQGOQYnBkUARwBl +AG4AZQByAGkAYwAgAEcAcgBhAHkAIABQAHIAbwBmAGkAbABlAEcAZQBuAGUAcgBlAGwAIABnAHIA5QB0 +AG8AbgBlAGIAZQBzAGsAcgBpAHYAZQBsAHMAZXRleHQAAAAAQ29weXJpZ2h0IDIwMDcgQXBwbGUgSW5j +LiwgYWxsIHJpZ2h0cyByZXNlcnZlZC4AWFlaIAAAAAAAAPNRAAEAAAABFsxjdXJ2AAAAAAAAAAEBzQAA +A + + + + + + 3 + MCAwAA + + + + + 200 + 25 + + NO + + + + 268 + {{25, 104}, {92, 15}} + + + + _NS:9 + YES + + 67108864 + 134217728 + Project + + _NS:9 + + -2033434624 + 167 + + 549650432 + {1, 1} + + + + + + TU0AKgAAAAoAAAAOAQAAAwAAAAEAAQAAAQEAAwAAAAEAAQAAAQIAAwAAAAIACAAIAQMAAwAAAAEAAQAA +AQYAAwAAAAEAAQAAAREABAAAAAEAAAAIARIAAwAAAAEAAQAAARUAAwAAAAEAAgAAARYAAwAAAAEAAQAA +ARcABAAAAAEAAAACARwAAwAAAAEAAQAAAVIAAwAAAAEAAQAAAVMAAwAAAAIAAQABh3MABwAAB7gAAAC4 +AAAAAAAAB7hhcHBsAiAAAG1udHJHUkFZWFlaIAfQAAIADgAMAAAAAGFjc3BBUFBM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EAcgBtAGEAYQBwAHIAbwBmAGkAaQBsAGkAVQBuAGkAdwBlAHIAcwBh +AGwAbgB5ACAAcAByAG8AZgBpAGwAIABzAHoAYQByAG8BWwBjAGkEHgQxBEkEOAQ5ACAEQQQ1BEAESwQ5 +ACAEPwRABD4ERAQ4BDsETAZFBkQGQQAgBioGOQYxBkoGQQAgAEcAcgBhAHkAIAYnBkQGOQYnBkUARwBl +AG4AZQByAGkAYwAgAEcAcgBhAHkAIABQAHIAbwBmAGkAbABlAEcAZQBuAGUAcgBlAGwAIABnAHIA5QB0 +AG8AbgBlAGIAZQBzAGsAcgBpAHYAZQBsAHMAZXRleHQAAAAAQ29weXJpZ2h0IDIwMDcgQXBwbGUgSW5j +LiwgYWxsIHJpZ2h0cyByZXNlcnZlZC4AWFlaIAAAAAAAAPNRAAEAAAABFsxjdXJ2AAAAAAAAAAEBzQAA +A + + + + + + + + + 200 + 25 + + NO + + + + 268 + {{25, 126}, {92, 15}} + + + + _NS:9 + YES + + 67108864 + 134217728 + Homepage + + _NS:9 + + -2033434624 + 167 + + 549650432 + {1, 1} + + + + + + TU0AKgAAAAoAAAAOAQAAAwAAAAEAAQAAAQEAAwAAAAEAAQAAAQIAAwAAAAIACAAIAQMAAwAAAAEAAQAA +AQYAAwAAAAEAAQAAAREABAAAAAEAAAAIARIAAwAAAAEAAQAAARUAAwAAAAEAAgAAARYAAwAAAAEAAQAA +ARcABAAAAAEAAAACARwAAwAAAAEAAQAAAVIAAwAAAAEAAQAAAVMAAwAAAAIAAQABh3MABwAAB7gAAAC4 +AAAAAAAAB7hhcHBsAiAAAG1udHJHUkFZWFlaIAfQAAIADgAMAAAAAGFjc3BBUFBMAAAAAG5vbmUAAAAA +AAAAAAAAAAAAAAAAAAD21gABAAAAANMtYXBwbAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA +AAAAAAAAAAAAAAAAAAAABWRlc2MAAADAAAAAb2RzY20AAAEwAAAGLGNwcnQAAAdcAAAAO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QGQQAgBioGOQYxBkoGQQAgAEcAcgBhAHkAIAYnBkQGOQYnBkUARwBl +AG4AZQByAGkAYwAgAEcAcgBhAHkAIABQAHIAbwBmAGkAbABlAEcAZQBuAGUAcgBlAGwAIABnAHIA5QB0 +AG8AbgBlAGIAZQBzAGsAcgBpAHYAZQBsAHMAZXRleHQAAAAAQ29weXJpZ2h0IDIwMDcgQXBwbGUgSW5j +LiwgYWxsIHJpZ2h0cyByZXNlcnZlZC4AWFlaIAAAAAAAAPNRAAEAAAABFsxjdXJ2AAAAAAAAAAEBzQAA +A + + + + + + + + + 200 + 25 + + NO + + + + 268 + {{138, 20}, {334, 64}} + + + + _NS:9 + {250, 750} + YES + + 67108864 + 205520896 + SourceDrop for OS X is released under the Simplified BSD License. You are free to redestribute and use in source and binary form, with or without modification, permitted provided that the license conditions are met. + + LucidaGrande + 12 + 16 + + _NS:9 + + + 6 + System + controlColor + + 3 + MC42NjY2NjY2NjY3AA + + + + 6 + System + disabledControlTextColor + + 3 + MC4zMzMzMzMzMzMzAA + + + + NO + YES + + + + 268 + {{138, 205}, {334, 17}} + + + + _NS:1535 + YES + + 68157504 + 272630784 + Copyright (C) 2012-2013, Michael Hohl + + _NS:1535 + + + + + NO + + + + 268 + {{138, 65}, {334, 136}} + + + + _NS:9 + {250, 750} + YES + + 67108864 + 205520896 + SourceDrop is a PasteBin client which allows you to easily share your snippets by drag and drop. Just drop your snippet on the SourceDrop icon and it will be uploaded to the configured PasteBin provider, supporting all common PasteBin providers like TinyPaste, PasteBin.com and GIST. + + LucidaGrande + 13 + 16 + + _NS:9 + + + + 6 + System + controlTextColor + + 3 + MAA + + + + NO + YES + + + + 268 + {{138, 222}, {334, 19}} + + + + _NS:1535 + YES + + 68157504 + 272630784 + SourceDrop + + LucidaGrande-Bold + 16 + 16 + + _NS:1535 + + + + + NO + + + + 268 + + Apple PDF pasteboard type + Apple PICT pasteboard type + Apple PNG pasteboard type + NSFilenamesPboardType + NeXT Encapsulated PostScript v1.2 pasteboard type + NeXT TIFF v4.0 pasteboard type + + {{25, 149}, {92, 92}} + + + + _NS:9 + YES + + 134217728 + 33554432 + + NSImage + SourceDrop-92px + + _NS:9 + 0 + 0 + 0 + NO + + NO + YES + + + {489, 256} + + + + NSView + + + 134217728 + 33685504 + _NS:9 + 0 + 0 + 0 + NO + + + + + + + view + + + + 38 + + + + showHomepage: + + + + 79 + + + + showProject: + + + + 81 + + + + showLicense: + + + + 82 + + + + titleTextField + + + + 83 + + + + value: self.applicationName + + + + + + value: self.applicationName + value + self.applicationName + 2 + + + 84 + + + + + + 0 + + + + + + -2 + + + File's Owner + + + -1 + + + First Responder + + + -3 + + + Application + + + 3 + + + + + + + + + + + + + + + 45 + + + + + 46 + + + + + + + + 47 + + + + + 60 + + + + + + + + 61 + + + + + 67 + + + + + + + + 68 + + + + + 69 + + + + + + + + 70 + + + + + 71 + + + + + + + + 72 + + + + + 73 + + + + + + + + 74 + + + + + 75 + + + + + + + + 76 + + + + + 77 + + + + + + + + 78 + + + + + + + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin + + + + + + 84 + + + + + SDPInfoPreferencesViewController + NSViewController + + id + id + id + + + + showHomepage: + id + + + showLicense: + id + + + showProject: + id + + + + IBProjectSource + ./Classes/SDPInfoPreferencesViewController.h + + + + + 0 + IBCocoaFramework + + com.apple.InterfaceBuilder.CocoaPlugin.macosx + + + YES + 3 + + SourceDrop-92px + {97, 70} + + + diff --git a/SourceDrop/SDPInfoPreferencesViewController.h b/SourceDrop/SDPInfoPreferencesViewController.h new file mode 100644 index 0000000..dccae28 --- /dev/null +++ b/SourceDrop/SDPInfoPreferencesViewController.h @@ -0,0 +1,23 @@ +// +// SDPInfoPreferencesViewController.h +// SourceDrop +// +// Created by Michael Hohl on 04.02.13. +// Copyright (c) 2013 Michael Hohl. All rights reserved. +// + +#import + +@interface SDPInfoPreferencesViewController : NSViewController { + __unsafe_unretained IBOutlet NSTextField *titleTextField; +} + +@property (strong, readonly, nonatomic) NSString *applicationName; + +- (IBAction)showHomepage:(id)sender; + +- (IBAction)showProject:(id)sender; + +- (IBAction)showLicense:(id)sender; + +@end diff --git a/SourceDrop/SDPInfoPreferencesViewController.m b/SourceDrop/SDPInfoPreferencesViewController.m new file mode 100644 index 0000000..f5f48ea --- /dev/null +++ b/SourceDrop/SDPInfoPreferencesViewController.m @@ -0,0 +1,61 @@ +// +// SDPInfoPreferencesViewController.m +// SourceDrop +// +// Created by Michael Hohl on 04.02.13. +// Copyright (c) 2013 Michael Hohl. All rights reserved. +// + +#import "SDPInfoPreferencesViewController.h" + +@interface SDPInfoPreferencesViewController () + +@end + +@implementation SDPInfoPreferencesViewController + +- (id)init +{ + self = [super initWithNibName:@"SDPInfoPreferencesView" bundle:[NSBundle mainBundle]]; + return self; +} + +- (NSString *)identifier +{ + return @"InfoPreferences"; +} + +- (NSImage *)toolbarItemImage +{ + return [NSImage imageNamed:NSImageNameInfo]; +} + +- (NSString *)toolbarItemLabel +{ + return NSLocalizedString(@"About", @"Toolbar item name for the About preference pane"); +} + +- (NSString *)applicationName +{ + NSDictionary *infoDictionary = [[NSBundle mainBundle] infoDictionary]; + NSString *bundleShortVersionString = [infoDictionary objectForKey:@"CFBundleShortVersionString"]; + NSString *bundleVersionString = [infoDictionary objectForKey:@"CFBundleVersion"]; + return [NSString stringWithFormat:@"Sourcedrop %@ (Build %@)", bundleShortVersionString, bundleVersionString]; +} + +- (void)showHomepage:(id)sender +{ + [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://www.sourcedrop.net/"]]; +} + +- (void)showProject:(id)sender +{ + [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://github.com/hohl/sourcedrop-osx"]]; +} + +- (void)showLicense:(id)sender +{ + [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://github.com/hohl/sourcedrop-osx/blob/master/LICENSE"]]; +} + +@end diff --git a/SourceDrop/SDPSharingServices.plist b/SourceDrop/SDPSharingServices.plist index 2f71e37..4b8e3c1 100644 --- a/SourceDrop/SDPSharingServices.plist +++ b/SourceDrop/SDPSharingServices.plist @@ -51,7 +51,7 @@ Post URL http://www.sourcedrop.net/paste Content Size Limit - 4194304 + 5242880 diff --git a/SourceDrop/SourceDrop-92px.png b/SourceDrop/SourceDrop-92px.png new file mode 100644 index 0000000..1dfe347 Binary files /dev/null and b/SourceDrop/SourceDrop-92px.png differ diff --git a/SourceDrop/SourceDrop-Info.plist b/SourceDrop/SourceDrop-Info.plist index 3b905d6..bb408d9 100644 --- a/SourceDrop/SourceDrop-Info.plist +++ b/SourceDrop/SourceDrop-Info.plist @@ -21,7 +21,7 @@ CFBundleSignature ???? CFBundleVersion - 1115 + 1136 LSApplicationCategoryType public.app-category.developer-tools LSMinimumSystemVersion @@ -40,7 +40,7 @@ NSMenuItem default - Share Selection + Share with SourceDrop NSMessage shareSnippet