Skip to content

Commit

Permalink
Make sendCount required
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffGilbert-MM committed Dec 4, 2013
1 parent ff320ff commit ca7faae
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 11 deletions.
41 changes: 41 additions & 0 deletions Counter.xcworkspace/xcshareddata/Counter.xccheckout
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDESourceControlProjectFavoriteDictionaryKey</key>
<false/>
<key>IDESourceControlProjectIdentifier</key>
<string>D7A64E5D-9E70-400A-A8DB-CAC90C815DAB</string>
<key>IDESourceControlProjectName</key>
<string>Counter</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>F79CF9BC-5F25-46DD-A1B7-3D24D3DBE095</key>
<string>ssh://github.com/mutualmobile/Counter.git</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>Counter.xcworkspace</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>F79CF9BC-5F25-46DD-A1B7-3D24D3DBE095</key>
<string>..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>ssh://github.com/mutualmobile/Counter.git</string>
<key>IDESourceControlProjectVersion</key>
<integer>110</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>F79CF9BC-5F25-46DD-A1B7-3D24D3DBE095</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>F79CF9BC-5F25-46DD-A1B7-3D24D3DBE095</string>
<key>IDESourceControlWCCName</key>
<string>Counter</string>
</dict>
</array>
</dict>
</plist>
11 changes: 1 addition & 10 deletions Counter/CACountInteractor.m
Expand Up @@ -47,16 +47,7 @@ - (BOOL)canDecrement

- (void)sendCount
{
if ([self canSendCount])
{
[self.output updateCount:self.count];
}
}


- (BOOL)canSendCount
{
return ((self.output != nil) && ([self.output respondsToSelector:@selector(updateCount:)]));
[self.output updateCount:self.count];
}

@end
1 change: 0 additions & 1 deletion Counter/CACountInteractorIO.h
Expand Up @@ -17,6 +17,5 @@


@protocol CACountInteractorOutput <NSObject>
@optional
- (void)updateCount:(NSUInteger)count;
@end

0 comments on commit ca7faae

Please sign in to comment.