Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Improvements on opening URLs #7

Merged
merged 5 commits into from

2 participants

Tzu-ping Chung Yung-Luen Lan
Tzu-ping Chung

Oriented from a thread on Mac@ptt.cc (#1EKWnHeQ)

因為有人有需求所以為 Nally 加了一個 option-click 會把瀏覽器開在背景的功能(mjhsieh 把它 commit 到 Google Code 那個專案的 trunk 裡面了)。

後來因為想說都寫了,所以就加了兩個自己想要的功能:修正原本不能開太長的連結的問題(整個連結選起來按右鍵,出來的連結可以被修正),以及一次開好幾個連結(一次選取右鍵全開)的功能。

然後發現原來 App Store 上的版本好像是在這裡?看到 Issues 裡面加入是否預設使用 Image Previewer 的 feature request,所以就順手加進來。

第一次發 pull request 好緊張。 (抖)

uranusjr added some commits
uranusjr Improve URL opening ability
Add option-click to open a link in the background
Fix multi-line URLs (breaked by terminal with "\\\r"), by removing "\\\r"
Ability to open multiple URLs all at once when they are chosen
Add localizations to "Open multiple URLs" menu title
ddd5fdc
uranusjr Add preference to toggle whether to use image previewer by default
Checker added in Preferences -> General window
Checker binded to GlobalConfig.shouldPreferImagePreviewer
GlobalConfig.shouldPreferImagePreviewer is set to YES by default (without a key)
Modify flag-checking in YLView corresponding to the preference setting feature

If the previewer is preferred in Preferences, ctrl+click opens a browser window
(same as the behavior when the preference was not added)
If the previewer is not preferred, simple mouse click opens a browser window;
ctrl+click opens the previewer
2fcc940
uranusjr Fix typo in Preferences window 387919b
Yung-Luen Lan
Owner

我週末來看看,謝啦!

uranusjr added some commits
Tzu-ping Chung uranusjr Add ability to open multiple URLs in one line
URL blocks are now seperated by an NSCharacterSet including ' ' and '\r'
The '\r' character takes care of the previously used line-seperation function
The ' ' character splits a line into individual blocks of (potentially) URLs
b9c79a8
Tzu-ping Chung uranusjr Fix exception when opening URL with non-URL-safe characters
Chinese characters, for example...
Use NSString's -(NSString *)stringByAddingPercentEscapesUsingEncoding:
488a9e7
Tzu-ping Chung

剛加了一個 commit 讓 Nally 可以開中文(和包含其他特殊符號的)連結

不過這應該發生嗎?因為加底線的那個功能就只有判斷合法的 ASCII chaaracters...
如果這個 OK 的話或許也可以把底線的那個功能改成判斷空白、換行和 NULL 字元,其他的都算連結?

Yung-Luen Lan yllan merged commit e00601c into from
Yung-Luen Lan
Owner

Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 23, 2011
  1. Improve URL opening ability

    uranusjr authored
    Add option-click to open a link in the background
    Fix multi-line URLs (breaked by terminal with "\\\r"), by removing "\\\r"
    Ability to open multiple URLs all at once when they are chosen
    Add localizations to "Open multiple URLs" menu title
  2. Add preference to toggle whether to use image previewer by default

    uranusjr authored
    Checker added in Preferences -> General window
    Checker binded to GlobalConfig.shouldPreferImagePreviewer
    GlobalConfig.shouldPreferImagePreviewer is set to YES by default (without a key)
    Modify flag-checking in YLView corresponding to the preference setting feature
    
    If the previewer is preferred in Preferences, ctrl+click opens a browser window
    (same as the behavior when the preference was not added)
    If the previewer is not preferred, simple mouse click opens a browser window;
    ctrl+click opens the previewer
  3. Fix typo in Preferences window

    uranusjr authored
Commits on Aug 26, 2011
  1. Tzu-ping Chung

    Add ability to open multiple URLs in one line

    uranusjr authored
    URL blocks are now seperated by an NSCharacterSet including ' ' and '\r'
    The '\r' character takes care of the previously used line-seperation function
    The ' ' character splits a line into individual blocks of (potentially) URLs
Commits on Aug 27, 2011
  1. Tzu-ping Chung

    Fix exception when opening URL with non-URL-safe characters

    uranusjr authored
    Chinese characters, for example...
    Use NSString's -(NSString *)stringByAddingPercentEscapesUsingEncoding:
This page is out of date. Refresh to see the latest.
5 Code/YLContextualMenuManager.h
View
@@ -9,8 +9,9 @@
#import <Cocoa/Cocoa.h>
-@interface YLContextualMenuManager : NSObject {
-
+@interface YLContextualMenuManager : NSObject
+{
+ NSArray *_urlsToOpen;
}
+ (YLContextualMenuManager *) sharedInstance ;
- (id) init ;
70 Code/YLContextualMenuManager.m
View
@@ -59,11 +59,52 @@ - (NSArray *) availableMenuItemForSelectionString: (NSString *)selectedString
NSString *shortURL = [self _extractShortURLFromString: selectedString];
NSString *longURL = [self _extractLongURLFromString: selectedString];
- if ([[longURL componentsSeparatedByString: @"."] count] > 1) {
- if (![longURL hasPrefix: @"http://"]) longURL = [@"http://" stringByAppendingString: longURL];
- item = [[[NSMenuItem alloc] initWithTitle: longURL action: @selector(openURL:) keyEquivalent: @""] autorelease];
- [item setTarget: self];
- [items addObject: item];
+ if ([[longURL componentsSeparatedByString: @"."] count] > 1)
+ {
+ // If the line is potentially a URL that is too long (contains "\\\r"),
+ // try to fix it by removing "\\\r"
+ NSMutableString *processedText = [[longURL mutableCopy] autorelease];
+ [processedText replaceOccurrencesOfString:@"\\\r"
+ withString:@""
+ options:NSLiteralSearch
+ range:NSMakeRange(0, [processedText length])];
+
+ // Split the selected text into blocks seperated by one of the characters in seps
+ NSCharacterSet *seps = [NSCharacterSet characterSetWithCharactersInString:@" \r"];
+ NSArray *blocks = [processedText componentsSeparatedByCharactersInSet:seps];
+
+ // Use out only lines that really are URLs
+ NSMutableArray *urls = [NSMutableArray array];
+ for (NSString *block in blocks)
+ {
+ if ([[block componentsSeparatedByString:@"."] count] > 1)
+ {
+ if (![block hasPrefix:@"http://"])
+ block = [@"http://" stringByAppendingString:block];
+ [urls addObject:block];
+ }
+ }
+
+ // Create menu items
+ // If there is only one line, then use the text as title
+ // Otherwise use the localized string of "Open mutiple URLs"
+ NSString *title;
+ if ([urls count] > 1)
+ title = NSLocalizedString(@"Open mutiple URLs", @"Open mutiple URLs");
+ else if ([urls count] == 1)
+ title = [urls objectAtIndex:0];
+
+ if ([urls count])
+ {
+ if (_urlsToOpen)
+ [_urlsToOpen release];
+ _urlsToOpen = [urls copy];
+ item = [[[NSMenuItem alloc] initWithTitle:title
+ action:@selector(openURL:)
+ keyEquivalent:@""] autorelease];
+ [item setTarget: self];
+ [items addObject: item];
+ }
}
if ([shortURL length] > 0 && [shortURL length] < 8) {
@@ -100,10 +141,21 @@ - (NSArray *) availableMenuItemForSelectionString: (NSString *)selectedString
- (IBAction) openURL: (id)sender
{
- NSString *u = [sender title];
- if (![u hasPrefix: @"http://"])
- u = [@"http://" stringByAppendingString: u];
- [[NSWorkspace sharedWorkspace] openURL: [NSURL URLWithString: u]];
+ NSMutableArray *urls = [NSMutableArray array];
+ for (NSString *u in _urlsToOpen)
+ {
+ if (![u hasPrefix:@"http://"])
+ u = [@"http://" stringByAppendingString:u];
+ [urls addObject:[NSURL URLWithString:[u stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]];
+ }
+
+ [[NSWorkspace sharedWorkspace] openURLs:urls
+ withAppBundleIdentifier:nil
+ options:NSWorkspaceLaunchDefault
+ additionalEventParamDescriptor:nil
+ launchIdentifiers:nil];
+ [_urlsToOpen release];
+ _urlsToOpen = nil;
}
- (IBAction) google: (id)sender
4 Code/YLLGlobalConfig.h
View
@@ -27,6 +27,7 @@
BOOL _shouldSmoothFonts;
BOOL _detectDoubleByte;
BOOL _repeatBounce;
+ BOOL _shouldPreferImagePreviewer;
YLEncoding _defaultEncoding;
YLANSIColorKey _defaultANSIColorKey;
@@ -74,6 +75,9 @@
- (void)setDetectDoubleByte:(BOOL)value;
- (BOOL)repeatBounce;
- (void)setRepeatBounce:(BOOL)value;
+- (BOOL)shouldPreferImagePreviewer;
+- (void)setShouldPreferImagePreviewer:(BOOL)value;
+
- (YLEncoding)defaultEncoding;
- (void)setDefaultEncoding:(YLEncoding)value;
- (YLANSIColorKey)defaultANSIColorKey;
16 Code/YLLGlobalConfig.m
View
@@ -47,6 +47,10 @@ - (id) init {
[self setDefaultEncoding: (YLEncoding) [defaults integerForKey: @"DefaultEncoding"]];
[self setDefaultANSIColorKey: (YLANSIColorKey) [defaults integerForKey: @"DefaultANSIColorKey"]];
[self setRepeatBounce: [defaults boolForKey: @"RepeatBounce"]];
+ if ([defaults objectForKey:@"ShouldPreferImagePreviewer"])
+ [self setShouldPreferImagePreviewer:[defaults boolForKey:@"ShouldPreferImagePreviewer"]];
+ else
+ [self setShouldPreferImagePreviewer:YES];
/* init code */
_row = 24;
@@ -251,6 +255,18 @@ - (void)setDetectDoubleByte:(BOOL)value {
[[NSUserDefaults standardUserDefaults] setBool: value forKey: @"DetectDoubleByte"];
}
+- (BOOL)shouldPreferImagePreviewer
+{
+ return _shouldPreferImagePreviewer;
+}
+
+- (void)setShouldPreferImagePreviewer:(BOOL)value
+{
+ _shouldPreferImagePreviewer = value;
+ [[NSUserDefaults standardUserDefaults] setBool:value
+ forKey:@"ShouldPreferImagePreviewer"];
+}
+
- (YLEncoding)defaultEncoding {
return _defaultEncoding;
}
28 Code/YLView.mm
View
@@ -595,14 +595,34 @@ - (void) mouseUp: (NSEvent *)e
column: (index % gColumn)];
if (url)
{
+ BOOL shouldUseImagePreviewer = [gConfig shouldPreferImagePreviewer];
+ if ([e modifierFlags] & NSControlKeyMask)
+ shouldUseImagePreviewer = !shouldUseImagePreviewer;
+
// if it's a image file, try loading it.
- if ([url pathExtension] && !([e modifierFlags] & NSControlKeyMask) &&
+ if (shouldUseImagePreviewer &&
+ [url characterAtIndex:([url length] - 1)] != '/' &&
+ [url pathExtension] &&
[[NSImage imageFileTypes] containsObject:[url pathExtension]] &&
- ! [[url pathExtension] isEqual: @"pdf"])
+ ![[url pathExtension] isEqual: @"pdf"])
{
[[YLImagePreviewer alloc] initWithURL: [NSURL URLWithString: url]];
- } else
- [[NSWorkspace sharedWorkspace] openURL: [NSURL URLWithString: url]];
+ }
+ else
+ {
+ if ([e modifierFlags] & NSAlternateKeyMask)
+ {
+ [[NSWorkspace sharedWorkspace] openURLs:[NSArray arrayWithObject:[NSURL URLWithString:url]]
+ withAppBundleIdentifier:nil
+ options:NSWorkspaceLaunchWithoutActivation
+ additionalEventParamDescriptor:nil
+ launchIdentifiers:nil];
+ }
+ else
+ {
+ [[NSWorkspace sharedWorkspace] openURL: [NSURL URLWithString: url]];
+ }
+ }
}
}
}
BIN  Resources/English.lproj/Localizable.strings
View
Binary file not shown
BIN  Resources/English.lproj/MainMenu.English.strings
View
Binary file not shown
BIN  Resources/English.lproj/Preferences.English.strings
View
Binary file not shown
175 Resources/English.lproj/Preferences.xib
View
@@ -2,13 +2,13 @@
<archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="8.00">
<data>
<int key="IBDocument.SystemTarget">1050</int>
- <string key="IBDocument.SystemVersion">10H574</string>
- <string key="IBDocument.InterfaceBuilderVersion">804</string>
- <string key="IBDocument.AppKitVersion">1038.35</string>
+ <string key="IBDocument.SystemVersion">10K549</string>
+ <string key="IBDocument.InterfaceBuilderVersion">823</string>
+ <string key="IBDocument.AppKitVersion">1038.36</string>
<string key="IBDocument.HIToolboxVersion">461.00</string>
<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="NS.object.0">804</string>
+ <string key="NS.object.0">823</string>
</object>
<array class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<integer value="1"/>
@@ -37,7 +37,7 @@
<object class="NSButton" id="16462208">
<reference key="NSNextResponder" ref="524402941"/>
<int key="NSvFlags">268</int>
- <string key="NSFrame">{{66, 127}, {240, 18}}</string>
+ <string key="NSFrame">{{47, 138}, {240, 18}}</string>
<reference key="NSSuperview" ref="524402941"/>
<bool key="NSEnabled">YES</bool>
<object class="NSButtonCell" key="NSCell" id="65426581">
@@ -65,18 +65,40 @@
<int key="NSPeriodicInterval">25</int>
</object>
</object>
- <object class="NSButton" id="947327116">
+ <object class="NSButton" id="201019369">
<reference key="NSNextResponder" ref="524402941"/>
<int key="NSvFlags">268</int>
- <string key="NSFrame">{{66, 55}, {240, 18}}</string>
+ <string key="NSFrame">{{47, 64}, {286, 18}}</string>
<reference key="NSSuperview" ref="524402941"/>
<bool key="NSEnabled">YES</bool>
- <object class="NSButtonCell" key="NSCell" id="871653741">
+ <object class="NSButtonCell" key="NSCell" id="825483238">
+ <int key="NSCellFlags">-2080244224</int>
+ <int key="NSCellFlags2">0</int>
+ <string key="NSContents">Use built-in image viewer to open images</string>
+ <reference key="NSSupport" ref="961226193"/>
+ <reference key="NSControlView" ref="201019369"/>
+ <int key="NSButtonFlags">1211912703</int>
+ <int key="NSButtonFlags2">2</int>
+ <reference key="NSNormalImage" ref="746061648"/>
+ <reference key="NSAlternateImage" ref="78480603"/>
+ <string key="NSAlternateContents"/>
+ <string key="NSKeyEquivalent"/>
+ <int key="NSPeriodicDelay">200</int>
+ <int key="NSPeriodicInterval">25</int>
+ </object>
+ </object>
+ <object class="NSButton" id="246581525">
+ <reference key="NSNextResponder" ref="524402941"/>
+ <int key="NSvFlags">268</int>
+ <string key="NSFrame">{{47, 29}, {240, 18}}</string>
+ <reference key="NSSuperview" ref="524402941"/>
+ <bool key="NSEnabled">YES</bool>
+ <object class="NSButtonCell" key="NSCell" id="1034766106">
<int key="NSCellFlags">-2080244224</int>
<int key="NSCellFlags2">0</int>
<string key="NSContents">Confirm on close</string>
<reference key="NSSupport" ref="961226193"/>
- <reference key="NSControlView" ref="947327116"/>
+ <reference key="NSControlView" ref="246581525"/>
<int key="NSButtonFlags">1211912703</int>
<int key="NSButtonFlags2">2</int>
<reference key="NSNormalImage" ref="746061648"/>
@@ -90,7 +112,7 @@
<object class="NSButton" id="495655680">
<reference key="NSNextResponder" ref="524402941"/>
<int key="NSvFlags">268</int>
- <string key="NSFrame">{{66, 91}, {230, 18}}</string>
+ <string key="NSFrame">{{47, 102}, {230, 18}}</string>
<reference key="NSSuperview" ref="524402941"/>
<bool key="NSEnabled">YES</bool>
<object class="NSButtonCell" key="NSCell" id="969183145">
@@ -1748,22 +1770,6 @@
</object>
<object class="IBConnectionRecord">
<object class="IBBindingConnection" key="connection">
- <string key="label">value: values.ConfirmOnClose</string>
- <reference key="source" ref="947327116"/>
- <reference key="destination" ref="458178596"/>
- <object class="NSNibBindingConnector" key="connector">
- <reference key="NSSource" ref="947327116"/>
- <reference key="NSDestination" ref="458178596"/>
- <string key="NSLabel">value: values.ConfirmOnClose</string>
- <string key="NSBinding">value</string>
- <string key="NSKeyPath">values.ConfirmOnClose</string>
- <int key="NSNibBindingConnectorVersion">2</int>
- </object>
- </object>
- <int key="connectionID">343</int>
- </object>
- <object class="IBConnectionRecord">
- <object class="IBBindingConnection" key="connection">
<string key="label">value: englishFontPaddingLeft</string>
<reference key="source" ref="390489110"/>
<reference key="destination" ref="190752615"/>
@@ -2250,6 +2256,38 @@
</object>
<int key="connectionID">786</int>
</object>
+ <object class="IBConnectionRecord">
+ <object class="IBBindingConnection" key="connection">
+ <string key="label">value: values.ConfirmOnClose</string>
+ <reference key="source" ref="246581525"/>
+ <reference key="destination" ref="458178596"/>
+ <object class="NSNibBindingConnector" key="connector">
+ <reference key="NSSource" ref="246581525"/>
+ <reference key="NSDestination" ref="458178596"/>
+ <string key="NSLabel">value: values.ConfirmOnClose</string>
+ <string key="NSBinding">value</string>
+ <string key="NSKeyPath">values.ConfirmOnClose</string>
+ <int key="NSNibBindingConnectorVersion">2</int>
+ </object>
+ </object>
+ <int key="connectionID">890</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBBindingConnection" key="connection">
+ <string key="label">value: shouldPreferImagePreviewer</string>
+ <reference key="source" ref="201019369"/>
+ <reference key="destination" ref="190752615"/>
+ <object class="NSNibBindingConnector" key="connector">
+ <reference key="NSSource" ref="201019369"/>
+ <reference key="NSDestination" ref="190752615"/>
+ <string key="NSLabel">value: shouldPreferImagePreviewer</string>
+ <string key="NSBinding">value</string>
+ <string key="NSKeyPath">shouldPreferImagePreviewer</string>
+ <int key="NSNibBindingConnectorVersion">2</int>
+ </object>
+ </object>
+ <int key="connectionID">898</int>
+ </object>
</array>
<object class="IBMutableOrderedSet" key="objectRecords">
<array key="orderedObjects">
@@ -2281,13 +2319,14 @@
<int key="objectID">1</int>
<reference key="object" ref="524402941"/>
<array class="NSMutableArray" key="children">
- <reference ref="495655680"/>
- <reference ref="947327116"/>
- <reference ref="16462208"/>
<reference ref="209295765"/>
<reference ref="775778296"/>
<reference ref="519225274"/>
<reference ref="86397260"/>
+ <reference ref="495655680"/>
+ <reference ref="246581525"/>
+ <reference ref="16462208"/>
+ <reference ref="201019369"/>
</array>
<reference key="parent" ref="0"/>
<string key="objectName">General</string>
@@ -2301,14 +2340,6 @@
<reference key="parent" ref="524402941"/>
</object>
<object class="IBObjectRecord">
- <int key="objectID">4</int>
- <reference key="object" ref="947327116"/>
- <array class="NSMutableArray" key="children">
- <reference ref="871653741"/>
- </array>
- <reference key="parent" ref="524402941"/>
- </object>
- <object class="IBObjectRecord">
<int key="objectID">5</int>
<reference key="object" ref="16462208"/>
<array class="NSMutableArray" key="children">
@@ -2597,11 +2628,6 @@
<reference key="parent" ref="495655680"/>
</object>
<object class="IBObjectRecord">
- <int key="objectID">841</int>
- <reference key="object" ref="871653741"/>
- <reference key="parent" ref="947327116"/>
- </object>
- <object class="IBObjectRecord">
<int key="objectID">842</int>
<reference key="object" ref="65426581"/>
<reference key="parent" ref="16462208"/>
@@ -3195,6 +3221,32 @@
<reference key="object" ref="896761758"/>
<reference key="parent" ref="554196480"/>
</object>
+ <object class="IBObjectRecord">
+ <int key="objectID">888</int>
+ <reference key="object" ref="246581525"/>
+ <array class="NSMutableArray" key="children">
+ <reference ref="1034766106"/>
+ </array>
+ <reference key="parent" ref="524402941"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">889</int>
+ <reference key="object" ref="1034766106"/>
+ <reference key="parent" ref="246581525"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">893</int>
+ <reference key="object" ref="201019369"/>
+ <array class="NSMutableArray" key="children">
+ <reference ref="825483238"/>
+ </array>
+ <reference key="parent" ref="524402941"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">894</int>
+ <reference key="object" ref="825483238"/>
+ <reference key="parent" ref="201019369"/>
+ </object>
</array>
</object>
<dictionary class="NSMutableDictionary" key="flattenedProperties">
@@ -3286,6 +3338,9 @@
<string key="29.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<boolean value="YES" key="29.ImportedFromIB2"/>
<string key="3.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <object class="NSAffineTransform" key="3.IBViewBoundsToFrameTransform">
+ <bytes key="NSTransformStruct">P4AAAL+AAABCHAAAwuwAAA</bytes>
+ </object>
<boolean value="YES" key="3.ImportedFromIB2"/>
<string key="30.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<boolean value="YES" key="30.ImportedFromIB2"/>
@@ -3301,8 +3356,6 @@
<boolean value="YES" key="35.ImportedFromIB2"/>
<string key="36.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<boolean value="YES" key="36.ImportedFromIB2"/>
- <string key="4.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <boolean value="YES" key="4.ImportedFromIB2"/>
<string key="45.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<boolean value="YES" key="45.ImportedFromIB2"/>
<string key="46.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
@@ -3314,6 +3367,9 @@
<string key="49.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<boolean value="YES" key="49.ImportedFromIB2"/>
<string key="5.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <object class="NSAffineTransform" key="5.IBViewBoundsToFrameTransform">
+ <bytes key="NSTransformStruct">P4AAAL+AAABCHAAAwxoAAA</bytes>
+ </object>
<boolean value="YES" key="5.ImportedFromIB2"/>
<string key="50.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<boolean value="YES" key="50.ImportedFromIB2"/>
@@ -3369,7 +3425,6 @@
<string key="836.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<boolean value="YES" key="836.ImportedFromIB2"/>
<string key="840.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
- <string key="841.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="842.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="843.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="844.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
@@ -3416,6 +3471,18 @@
<string key="885.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="886.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="887.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="888.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <object class="NSAffineTransform" key="888.IBViewBoundsToFrameTransform">
+ <bytes key="NSTransformStruct">P4AAAL+AAABCPAAAwjQAAA</bytes>
+ </object>
+ <boolean value="YES" key="888.ImportedFromIB2"/>
+ <string key="889.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <string key="893.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+ <object class="NSAffineTransform" key="893.IBViewBoundsToFrameTransform">
+ <bytes key="NSTransformStruct">P4AAAL+AAABCUAAAwiAAAA</bytes>
+ </object>
+ <boolean value="YES" key="893.ImportedFromIB2"/>
+ <string key="894.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<string key="95.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
<boolean value="YES" key="95.ImportedFromIB2"/>
</dictionary>
@@ -3423,7 +3490,7 @@
<nil key="activeLocalization"/>
<dictionary class="NSMutableDictionary" key="localizations"/>
<nil key="sourceID"/>
- <int key="maxID">887</int>
+ <int key="maxID">898</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
@@ -3592,6 +3659,13 @@
</object>
</object>
<object class="IBPartialClassDescription">
+ <string key="className">NSApplication</string>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBFrameworkSource</string>
+ <string key="minorKey">PSMTabBarControl.framework/Headers/PSMTabDragAssistant.h</string>
+ </object>
+ </object>
+ <object class="IBPartialClassDescription">
<string key="className">NSBox</string>
<string key="superclassName">NSView</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
@@ -3935,6 +4009,13 @@
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBFrameworkSource</string>
+ <string key="minorKey">PSMTabBarControl.framework/Headers/PSMTabBarCell.h</string>
+ </object>
+ </object>
+ <object class="IBPartialClassDescription">
+ <string key="className">NSObject</string>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">PSMTabBarControl.framework/Headers/PSMTabBarControl.h</string>
</object>
</object>
@@ -4104,7 +4185,7 @@
</object>
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.macosx</string>
- <integer value="1050" key="NS.object.0"/>
+ <integer value="1060" key="NS.object.0"/>
</object>
<bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
<string key="IBDocument.LastKnownRelativeProjectPath">../../Nally.xcodeproj</string>
1  Resources/zh_CN.lproj/Localizable.strings
View
@@ -13,6 +13,7 @@
/* Menu */
"Lookup in Dictionary" = "查字典";
"Copy" = "复制";
+"Open mutiple URLs" = "打开多个链结";
/* Default Button */
"Quit" = "退出";
1  Resources/zh_TW.lproj/Localizable.strings
View
@@ -13,6 +13,7 @@
/* Menu */
"Lookup in Dictionary" = "查詢字典";
"Copy" = "拷貝";
+"Open mutiple URLs" = "開啓多個網址";
/* Default Button */
"Quit" = "結束";
Something went wrong with that request. Please try again.