Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

fix delegate type warnings #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions MKAdditions/UIActionSheet+MKBlockAdditions.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ + (void) actionSheetWithTitle:(NSString*) title
_dismissBlock = [dismissed copy];

UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:title
delegate:[self class]
delegate:(id<UIActionSheetDelegate>)[self class]
cancelButtonTitle:nil
destructiveButtonTitle:destructiveButtonTitle
otherButtonTitles:nil];
Expand Down Expand Up @@ -91,7 +91,7 @@ + (void) photoPickerWithTitle:(NSString*) title
int cancelButtonIndex = -1;

UIActionSheet *actionSheet = [[UIActionSheet alloc] initWithTitle:title
delegate:[self class]
delegate:(id<UIActionSheetDelegate>)[self class]
cancelButtonTitle:nil
destructiveButtonTitle:nil
otherButtonTitles:nil];
Expand Down Expand Up @@ -168,7 +168,7 @@ +(void)actionSheet:(UIActionSheet*) actionSheet didDismissWithButtonIndex:(NSInt


UIImagePickerController *picker = [[UIImagePickerController alloc] init];
picker.delegate = [self class];
picker.delegate = (id<UINavigationControllerDelegate,UIImagePickerControllerDelegate>)[self class];
picker.allowsEditing = YES;

if(buttonIndex == 1)
Expand Down
6 changes: 4 additions & 2 deletions UIKitCategoryAdditions.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@
/* Begin PBXProject section */
AB5E75411336DD790016813D /* Project object */ = {
isa = PBXProject;
attributes = {
};
buildConfigurationList = AB5E75441336DD790016813D /* Build configuration list for PBXProject "UIKitCategoryAdditions" */;
compatibilityVersion = "Xcode 3.2";
developmentRegion = English;
Expand Down Expand Up @@ -257,7 +259,7 @@
GCC_DYNAMIC_NO_PIC = NO;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "UIKitCategoryAdditions/UIKitCategoryAdditions-Prefix.pch";
GCC_VERSION = com.apple.compilers.llvmgcc42;
GCC_VERSION = "";
INFOPLIST_FILE = "UIKitCategoryAdditions/UIKitCategoryAdditions-Info.plist";
PRODUCT_NAME = UIKitCategoryAdditions;
WRAPPER_EXTENSION = app;
Expand All @@ -271,7 +273,7 @@
COPY_PHASE_STRIP = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "UIKitCategoryAdditions/UIKitCategoryAdditions-Prefix.pch";
GCC_VERSION = com.apple.compilers.llvmgcc42;
GCC_VERSION = "";
INFOPLIST_FILE = "UIKitCategoryAdditions/UIKitCategoryAdditions-Info.plist";
PRODUCT_NAME = UIKitCategoryAdditions;
VALIDATE_PRODUCT = YES;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -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>EF8C0D86-DF8C-4CEA-AC8A-3F0A947382D3</string>
<key>IDESourceControlProjectName</key>
<string>UIKitCategoryAdditions</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>491E567D-35CD-48AF-95C1-A1C9FA9559E1</key>
<string>https://github.com/MugunthKumar/UIKitCategoryAdditions.git</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>UIKitCategoryAdditions.xcodeproj/project.xcworkspace</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>491E567D-35CD-48AF-95C1-A1C9FA9559E1</key>
<string>../..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>https://github.com/MugunthKumar/UIKitCategoryAdditions.git</string>
<key>IDESourceControlProjectVersion</key>
<integer>110</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>491E567D-35CD-48AF-95C1-A1C9FA9559E1</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>491E567D-35CD-48AF-95C1-A1C9FA9559E1</string>
<key>IDESourceControlWCCName</key>
<string>UIKitCategoryAdditions</string>
</dict>
</array>
</dict>
</plist>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0500"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "AB5E75491336DD790016813D"
BuildableName = "UIKitCategoryAdditions.app"
BlueprintName = "UIKitCategoryAdditions"
ReferencedContainer = "container:UIKitCategoryAdditions.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
buildConfiguration = "Debug">
<Testables>
</Testables>
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "AB5E75491336DD790016813D"
BuildableName = "UIKitCategoryAdditions.app"
BlueprintName = "UIKitCategoryAdditions"
ReferencedContainer = "container:UIKitCategoryAdditions.xcodeproj">
</BuildableReference>
</MacroExpansion>
</TestAction>
<LaunchAction
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
buildConfiguration = "Debug"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
allowLocationSimulation = "YES">
<BuildableProductRunnable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "AB5E75491336DD790016813D"
BuildableName = "UIKitCategoryAdditions.app"
BlueprintName = "UIKitCategoryAdditions"
ReferencedContainer = "container:UIKitCategoryAdditions.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<AdditionalOptions>
</AdditionalOptions>
</LaunchAction>
<ProfileAction
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
buildConfiguration = "Release"
debugDocumentVersioning = "YES">
<BuildableProductRunnable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "AB5E75491336DD790016813D"
BuildableName = "UIKitCategoryAdditions.app"
BlueprintName = "UIKitCategoryAdditions"
ReferencedContainer = "container:UIKitCategoryAdditions.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?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>SchemeUserState</key>
<dict>
<key>UIKitCategoryAdditions.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>AB5E75491336DD790016813D</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>