Skip to content

Commit 739e4ee

Browse files
authored
Merge pull request #2 from saada/alternate-image
Upgrade project, improve README, better dmg file, and support dark mode
2 parents 8c21a1d + aaed654 commit 739e4ee

41 files changed

Lines changed: 2563 additions & 18 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Dock Spaces.xcodeproj/project.pbxproj

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@
204204
939DEAE01895D43E00449E78 /* Project object */ = {
205205
isa = PBXProject;
206206
attributes = {
207-
LastUpgradeCheck = 0500;
207+
LastUpgradeCheck = 0920;
208208
ORGANIZATIONNAME = "Mahmoud Saada";
209209
TargetAttributes = {
210210
939DEB081895D43F00449E78 = {
@@ -326,18 +326,30 @@
326326
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
327327
CLANG_CXX_LIBRARY = "libc++";
328328
CLANG_ENABLE_OBJC_ARC = YES;
329+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
329330
CLANG_WARN_BOOL_CONVERSION = YES;
331+
CLANG_WARN_COMMA = YES;
330332
CLANG_WARN_CONSTANT_CONVERSION = YES;
331333
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
332334
CLANG_WARN_EMPTY_BODY = YES;
333335
CLANG_WARN_ENUM_CONVERSION = YES;
336+
CLANG_WARN_INFINITE_RECURSION = YES;
334337
CLANG_WARN_INT_CONVERSION = YES;
338+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
339+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
335340
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
341+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
342+
CLANG_WARN_STRICT_PROTOTYPES = YES;
343+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
344+
CLANG_WARN_UNREACHABLE_CODE = YES;
336345
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
337346
COPY_PHASE_STRIP = NO;
347+
ENABLE_STRICT_OBJC_MSGSEND = YES;
348+
ENABLE_TESTABILITY = YES;
338349
GCC_C_LANGUAGE_STANDARD = gnu99;
339350
GCC_DYNAMIC_NO_PIC = NO;
340351
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
352+
GCC_NO_COMMON_BLOCKS = YES;
341353
GCC_OPTIMIZATION_LEVEL = 0;
342354
GCC_PREPROCESSOR_DEFINITIONS = (
343355
"DEBUG=1",
@@ -363,19 +375,30 @@
363375
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
364376
CLANG_CXX_LIBRARY = "libc++";
365377
CLANG_ENABLE_OBJC_ARC = YES;
378+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
366379
CLANG_WARN_BOOL_CONVERSION = YES;
380+
CLANG_WARN_COMMA = YES;
367381
CLANG_WARN_CONSTANT_CONVERSION = YES;
368382
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
369383
CLANG_WARN_EMPTY_BODY = YES;
370384
CLANG_WARN_ENUM_CONVERSION = YES;
385+
CLANG_WARN_INFINITE_RECURSION = YES;
371386
CLANG_WARN_INT_CONVERSION = YES;
387+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
388+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
372389
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
390+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
391+
CLANG_WARN_STRICT_PROTOTYPES = YES;
392+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
393+
CLANG_WARN_UNREACHABLE_CODE = YES;
373394
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
374395
COPY_PHASE_STRIP = YES;
375396
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
376397
ENABLE_NS_ASSERTIONS = NO;
398+
ENABLE_STRICT_OBJC_MSGSEND = YES;
377399
GCC_C_LANGUAGE_STANDARD = gnu99;
378400
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
401+
GCC_NO_COMMON_BLOCKS = YES;
379402
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
380403
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
381404
GCC_WARN_UNDECLARED_SELECTOR = YES;
@@ -396,6 +419,7 @@
396419
GCC_PRECOMPILE_PREFIX_HEADER = YES;
397420
GCC_PREFIX_HEADER = "Dock Spaces/Dock Spaces-Prefix.pch";
398421
INFOPLIST_FILE = "Dock Spaces/Dock Spaces-Info.plist";
422+
PRODUCT_BUNDLE_IDENTIFIER = "saada.${PRODUCT_NAME:rfc1034identifier}";
399423
PRODUCT_NAME = "$(TARGET_NAME)";
400424
WRAPPER_EXTENSION = app;
401425
};
@@ -410,6 +434,7 @@
410434
GCC_PRECOMPILE_PREFIX_HEADER = YES;
411435
GCC_PREFIX_HEADER = "Dock Spaces/Dock Spaces-Prefix.pch";
412436
INFOPLIST_FILE = "Dock Spaces/Dock Spaces-Info.plist";
437+
PRODUCT_BUNDLE_IDENTIFIER = "saada.${PRODUCT_NAME:rfc1034identifier}";
413438
PRODUCT_NAME = "$(TARGET_NAME)";
414439
WRAPPER_EXTENSION = app;
415440
};
@@ -431,6 +456,7 @@
431456
"$(inherited)",
432457
);
433458
INFOPLIST_FILE = "Dock SpacesTests/Dock SpacesTests-Info.plist";
459+
PRODUCT_BUNDLE_IDENTIFIER = "saada.${PRODUCT_NAME:rfc1034identifier}";
434460
PRODUCT_NAME = "$(TARGET_NAME)";
435461
TEST_HOST = "$(BUNDLE_LOADER)";
436462
WRAPPER_EXTENSION = xctest;
@@ -449,6 +475,7 @@
449475
GCC_PRECOMPILE_PREFIX_HEADER = YES;
450476
GCC_PREFIX_HEADER = "Dock Spaces/Dock Spaces-Prefix.pch";
451477
INFOPLIST_FILE = "Dock SpacesTests/Dock SpacesTests-Info.plist";
478+
PRODUCT_BUNDLE_IDENTIFIER = "saada.${PRODUCT_NAME:rfc1034identifier}";
452479
PRODUCT_NAME = "$(TARGET_NAME)";
453480
TEST_HOST = "$(BUNDLE_LOADER)";
454481
WRAPPER_EXTENSION = xctest;
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict/>
5+
</plist>

Dock Spaces.xcodeproj/xcuserdata/saada.xcuserdatad/xcschemes/Dock Spaces.xcscheme

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0500"
3+
LastUpgradeVersion = "0920"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"
@@ -23,10 +23,11 @@
2323
</BuildActionEntries>
2424
</BuildAction>
2525
<TestAction
26+
buildConfiguration = "Debug"
2627
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
2728
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
28-
shouldUseLaunchSchemeArgsEnv = "YES"
29-
buildConfiguration = "Debug">
29+
language = ""
30+
shouldUseLaunchSchemeArgsEnv = "YES">
3031
<Testables>
3132
<TestableReference
3233
skipped = "NO">
@@ -48,17 +49,22 @@
4849
ReferencedContainer = "container:Dock Spaces.xcodeproj">
4950
</BuildableReference>
5051
</MacroExpansion>
52+
<AdditionalOptions>
53+
</AdditionalOptions>
5154
</TestAction>
5255
<LaunchAction
56+
buildConfiguration = "Debug"
5357
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
5458
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
59+
language = ""
5560
launchStyle = "0"
5661
useCustomWorkingDirectory = "NO"
57-
buildConfiguration = "Debug"
5862
ignoresPersistentStateOnLaunch = "NO"
5963
debugDocumentVersioning = "YES"
64+
debugServiceExtension = "internal"
6065
allowLocationSimulation = "YES">
61-
<BuildableProductRunnable>
66+
<BuildableProductRunnable
67+
runnableDebuggingMode = "0">
6268
<BuildableReference
6369
BuildableIdentifier = "primary"
6470
BlueprintIdentifier = "939DEAE71895D43E00449E78"
@@ -71,12 +77,13 @@
7177
</AdditionalOptions>
7278
</LaunchAction>
7379
<ProfileAction
80+
buildConfiguration = "Release"
7481
shouldUseLaunchSchemeArgsEnv = "YES"
7582
savedToolIdentifier = ""
7683
useCustomWorkingDirectory = "NO"
77-
buildConfiguration = "Release"
7884
debugDocumentVersioning = "YES">
79-
<BuildableProductRunnable>
85+
<BuildableProductRunnable
86+
runnableDebuggingMode = "0">
8087
<BuildableReference
8188
BuildableIdentifier = "primary"
8289
BlueprintIdentifier = "939DEAE71895D43E00449E78"

Dock Spaces/AppDelegate.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ - (void)awakeFromNib {
1919
statusItem = [[NSStatusBar systemStatusBar] statusItemWithLength:NSVariableStatusItemLength];
2020
[statusItem setMenu:statusMenu];
2121
// [statusItem setTitle:@"Dock Sapces"];
22-
[statusItem setHighlightMode:YES];
23-
[statusItem setImage:[NSImage imageNamed:@"fish24x24"]];
22+
NSImage *icon = [NSImage imageNamed:@"fish24x24"];
23+
icon.template = YES;
24+
statusItem.image = icon;
25+
statusItem.highlightMode = YES;
2426
}
2527

2628
- (IBAction)addSpace:(id)sender {

Dock Spaces/Dock Spaces-Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<key>CFBundleIconFile</key>
1010
<string></string>
1111
<key>CFBundleIdentifier</key>
12-
<string>saada.${PRODUCT_NAME:rfc1034identifier}</string>
12+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
1313
<key>CFBundleInfoDictionaryVersion</key>
1414
<string>6.0</string>
1515
<key>CFBundleName</key>

Dock SpacesTests/Dock SpacesTests-Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<key>CFBundleExecutable</key>
88
<string>${EXECUTABLE_NAME}</string>
99
<key>CFBundleIdentifier</key>
10-
<string>saada.${PRODUCT_NAME:rfc1034identifier}</string>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
1111
<key>CFBundleInfoDictionaryVersion</key>
1212
<string>6.0</string>
1313
<key>CFBundlePackageType</key>

Dock-Spaces-1.0.dmg

62 KB
Binary file not shown.

DockSpaces.dmg

-65.3 KB
Binary file not shown.

README.md

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,31 @@
1-
DockSpaces
2-
===============
1+
# DockSpaces
32

43
Native OSX App for adding spaces to your dock
54

6-
##Installation
5+
![image](./images/dock.png)
76

8-
1. Download [DockSpaces.dmg](https://github.com/saada/Dock-Spaces/raw/master/DockSpaces.dmg)
7+
## Install pre-built app
8+
9+
1. Download [Dock-Spaces-1.0.dmg](https://github.com/saada/Dock-Spaces/raw/master/Dock-Spaces-1.0.dmg)
910
2. Run the file, then drag&drop to Applications folder
10-
3. Run DockSpaces and find the commands in the top status bar icon
11+
3. Run `Dock Spaces.app` from your Applications folder and find the commands in the top status bar icon ![image](./images/dock-spaces.png)
12+
4. After adding a few spaces to dock, you will be able to move the spaces around the dock to wherever you like. NOTE: you can also throw spaces out of the dock just like you would remove a regular app
13+
14+
## Features
15+
16+
* Supports macOS dark mode theme
17+
18+
## Make your own build
19+
20+
After running `git clone`, compile with
21+
22+
```sh
23+
xcodebuild clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
24+
```
25+
26+
Use [create-dmg](https://github.com/sindresorhus/create-dmg) tool to generate dmg file.
1127

12-
Tutorial to create nice .dmg file: http://codevarium.gameka.com.br/how-to-create-your-own-beautiful-dmg-files/
28+
```sh
29+
create-dmg build/Release/Dock\ Spaces.app
30+
# generates ./Dock-Spaces-1.0.dmg
31+
```
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict/>
5+
</plist>

0 commit comments

Comments
 (0)