Skip to content

Commit 288dd6e

Browse files
committed
adding project source
1 parent 21ac4e7 commit 288dd6e

File tree

72 files changed

+9946
-0
lines changed

Some content is hidden

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

72 files changed

+9946
-0
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "mac",
5+
"size" : "16x16",
6+
"scale" : "1x"
7+
},
8+
{
9+
"idiom" : "mac",
10+
"size" : "16x16",
11+
"scale" : "2x"
12+
},
13+
{
14+
"idiom" : "mac",
15+
"size" : "32x32",
16+
"scale" : "1x"
17+
},
18+
{
19+
"idiom" : "mac",
20+
"size" : "32x32",
21+
"scale" : "2x"
22+
},
23+
{
24+
"idiom" : "mac",
25+
"size" : "128x128",
26+
"scale" : "1x"
27+
},
28+
{
29+
"idiom" : "mac",
30+
"size" : "128x128",
31+
"scale" : "2x"
32+
},
33+
{
34+
"idiom" : "mac",
35+
"size" : "256x256",
36+
"scale" : "1x"
37+
},
38+
{
39+
"idiom" : "mac",
40+
"size" : "256x256",
41+
"scale" : "2x"
42+
},
43+
{
44+
"idiom" : "mac",
45+
"size" : "512x512",
46+
"scale" : "1x"
47+
},
48+
{
49+
"idiom" : "mac",
50+
"size" : "512x512",
51+
"scale" : "2x"
52+
}
53+
],
54+
"info" : {
55+
"version" : 1,
56+
"author" : "xcode"
57+
}
58+
}

VVOSCQueryBrowser/Base.lproj/MainMenu.xib

Lines changed: 1283 additions & 0 deletions
Large diffs are not rendered by default.

VVOSCQueryBrowser/Info.plist

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
<key>CFBundleDevelopmentRegion</key>
6+
<string>$(DEVELOPMENT_LANGUAGE)</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIconFile</key>
10+
<string></string>
11+
<key>CFBundleIdentifier</key>
12+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
13+
<key>CFBundleInfoDictionaryVersion</key>
14+
<string>6.0</string>
15+
<key>CFBundleName</key>
16+
<string>$(PRODUCT_NAME)</string>
17+
<key>CFBundlePackageType</key>
18+
<string>APPL</string>
19+
<key>CFBundleShortVersionString</key>
20+
<string>1.0</string>
21+
<key>CFBundleVersion</key>
22+
<string>1</string>
23+
<key>LSMinimumSystemVersion</key>
24+
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
25+
<key>NSHumanReadableCopyright</key>
26+
<string>Copyright © 2017 testAdmin. All rights reserved.</string>
27+
<key>NSMainNibFile</key>
28+
<string>MainMenu</string>
29+
<key>NSPrincipalClass</key>
30+
<string>NSApplication</string>
31+
</dict>
32+
</plist>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#import <Cocoa/Cocoa.h>
2+
3+
@interface NSArray (NSArrayAdditions)
4+
5+
- (NSColor *) rgbaColorFromContents;
6+
7+
@end
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#import "NSArrayAdditions.h"
2+
3+
@implementation NSArray (NSArrayAdditions)
4+
5+
- (NSColor *) rgbaColorFromContents {
6+
if ([self count] < 3)
7+
return nil;
8+
NSNumber *tmpR = [self objectAtIndex:0];
9+
NSNumber *tmpG = [self objectAtIndex:1];
10+
NSNumber *tmpB = [self objectAtIndex:2];
11+
NSNumber *tmpA = ([self count]<4) ? nil : [self objectAtIndex:3];
12+
NSColor *tmpColor = [NSColor
13+
colorWithDeviceRed:[tmpR doubleValue]
14+
green:[tmpG doubleValue]
15+
blue:[tmpB doubleValue]
16+
alpha:(tmpA==nil)?1.:[tmpA doubleValue]];
17+
return tmpColor;
18+
}
19+
20+
@end
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>

VVOSCQueryBrowser/OSCValueView.h

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
#import <Cocoa/Cocoa.h>
2+
#import <AppKit/AppKit.h>
3+
#import <VVOSC/VVOSC.h>
4+
5+
6+
7+
8+
typedef NS_ENUM(NSInteger, OSCValueViewHint) {
9+
OSCValueViewHint_None = 0,
10+
OSCValueViewHint_Slider = 0x01,
11+
OSCValueViewHint_PUB = 0x02
12+
};
13+
14+
15+
16+
17+
@interface OSCValueView : NSView {
18+
OSCValueType type;
19+
OSCValue *value;
20+
OSCValueViewHint hint;
21+
//void (^)(OSCValue *newValue) actionBlock;
22+
void (^actionBlock)(OSCValue *newOSCValue);
23+
24+
IBOutlet NSTextField *textField;
25+
IBOutlet NSColorWell *colorWell;
26+
IBOutlet NSPopUpButton *popUpButton;
27+
IBOutlet NSSlider *slider;
28+
IBOutlet NSButton *button;
29+
IBOutlet NSTextField *labelField;
30+
}
31+
32+
//- (void) setType:(OSCValueType)t value:(OSCValue *)v;
33+
- (void) setType:(OSCValueType)t value:(OSCValue *)v hint:(OSCValueViewHint)h valsArray:(NSArray<OSCValue*>*)vals;
34+
35+
@property (readonly) OSCValue * value;
36+
@property (readonly) OSCValueViewHint hint;
37+
//@property (strong) (void ^(OSCValue *newValue) actionBlock;
38+
@property (strong) void (^actionBlock)(OSCValue *newOSCValue);
39+
40+
- (BOOL) hasHint:(OSCValueViewHint)n;
41+
42+
- (IBAction) textFieldUsed:(id)sender;
43+
- (IBAction) colorWellUsed:(id)sender;
44+
- (IBAction) popUpButtonUsed:(id)sender;
45+
- (IBAction) sliderUsed:(id)sender;
46+
- (IBAction) buttonUsed:(id)sender;
47+
48+
- (NSTextField *) textField;
49+
- (NSColorWell *) colorWell;
50+
- (NSPopUpButton *) popUpButton;
51+
- (NSSlider *) slider;
52+
- (NSButton *) button;
53+
- (NSTextField *) labelField;
54+
55+
@end

0 commit comments

Comments
 (0)