This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[SLTestController sharedTestController] sendAction:@selector(downloadBookWithId:) withObject:titleId]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
start_at_login | |
only "Terminal" do | |
# Beginning/end of line | |
map "<Cmd-Left>", "<Ctrl-a>" | |
map "<Cmd-Right>", "<Ctrl-e>" | |
# Previous/next word | |
map "<Alt-Left>", "<Alt-b>" | |
map "<Alt-Right>", "<Alt-f>" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/xcrun swift -i -sdk /Applications/Xcode6-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk | |
// | |
// shell.swift | |
// | |
// Shell scripting in Swift, using a proper hashbang and a custom subshell operator. | |
// To run: `chmod +x shell.swift && ./shell.swift`. | |
// | |
// If you edit this in Xcode, ignore the error on the hashbang line. | |
// To play around with this in a playground, comment out the hashbang line. | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Cocoa | |
let anArray = [1, 2, 3] | |
// Given `func foo(arr: Int[])`, | |
// how can it ensure the immutability of _arr_? | |
// 1. Won't work because `unshare` can only be called on vars. | |
//func foo(arr: Int[]) { | |
// arr.unshare() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Cocoa | |
class Foo { | |
/// Public interface | |
var message: String? | |
let logMessage: () -> Void | |
init(message: String) { | |
// define a placeholder for `self`, for use within functions in this initializer | |
// in advance of `self` being fully initialized |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Subliminal/Subliminal.h> | |
@interface TableViewCellTest : SLTest | |
@end | |
@implementation TableViewCellTest | |
- (void)setUpTest { | |
[super setUpTest]; | |
// navigate to the table view |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import <Subliminal/Subliminal.h> | |
/// The superclass | |
@interface SLSelfRegisteringAppTarget : NSObject | |
@end | |
@implementation SLSelfRegisteringAppTarget | |
- (id)init { | |
self = [super init]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/D/D/l/s/build (subliminal|✚2) $ make all | |
Broadcasting target 'all' to all sub-architectures | |
make -f builder-iphone-simulator.mk enable_gpl_third_parties=yes enable_zrtp=yes enable_opus=yes enable_debug=no enable_ffmpeg=yes enable_tunnel=no all \ | |
&& make -f builder-iphone-os.mk enable_gpl_third_parties=yes enable_zrtp=yes enable_opus=yes enable_debug=no enable_ffmpeg=yes enable_tunnel=no all \ | |
&& make -f builder-iphone-os.mk host=armv7s-apple-darwin enable_gpl_third_parties=yes enable_zrtp=yes enable_opus=yes enable_debug=no enable_ffmpeg=yes enable_tunnel=no all | |
mkdir -p /Users/jeffreywear/Dropbox/Development/linphone-iphone/submodules/build/..//../liblinphone-sdk/i386-apple-darwin/include | |
mkdir -p /Users/jeffreywear/Dropbox/Development/linphone-iphone/submodules/build/..//../liblinphone-sdk/i386-apple-darwin/lib/pkgconfig | |
mkdir -p /Users/jeffreywear/Dropbox/Development/linphone-iphone/submodules/build/../build-i386-apple-darwin/externals/polarssl | |
cd /Users/jeffreywear/Dropbox/Development/linphone-i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Sources/Classes/UIAutomation/User Interface Elements/SLElement.m b/Sources/Classes/UIAutomation/User Interface Elements/SLElement.m | |
index 375cba2..2cac09a 100644 | |
--- a/Sources/Classes/UIAutomation/User Interface Elements/SLElement.m | |
+++ b/Sources/Classes/UIAutomation/User Interface Elements/SLElement.m | |
@@ -362,6 +362,22 @@ UIAccessibilityTraits SLUIAccessibilityTraitAny = 0; | |
return isVisible; | |
} | |
+- (BOOL)isEnabled { | |
+ __block BOOL isEnabled = [super isEnabled]; |