Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rename PopoverController to DeleteImagePopoverController

  • Loading branch information...
commit b8d4512dbea39e9d3423a6d95c88e33a148ecac8 1 parent 3d3bb2d
BJ Homer authored
View
4 Classes/PopoverController.h → Classes/DeleteImagePopoverController.h
@@ -1,5 +1,5 @@
//
-// PopoverController.h
+// DeleteImagePopoverController.h
// Sidebar
//
// Created by BJ Homer on 11/30/10.
@@ -9,7 +9,7 @@
#import <UIKit/UIKit.h>
@class HSSidebarView;
-@interface PopoverController : UIViewController {
+@interface DeleteImagePopoverController : UIViewController {
}
View
6 Classes/PopoverController.m → Classes/DeleteImagePopoverController.m
@@ -1,15 +1,15 @@
//
-// PopoverController.m
+// DeleteImagePopoverController.m
// Sidebar
//
// Created by BJ Homer on 11/30/10.
// Copyright 2010 BJ Homer. All rights reserved.
//
-#import "PopoverController.h"
+#import "DeleteImagePopoverController.h"
#import "HSSidebarView.h"
-@implementation PopoverController
+@implementation DeleteImagePopoverController
@synthesize sidebar;
@synthesize attachedIndex;
@synthesize popoverController;
View
6 Classes/SidebarViewController.m
@@ -7,7 +7,7 @@
//
#import "SidebarViewController.h"
-#import "PopoverController.h"
+#import "DeleteImagePopoverController.h"
@interface SidebarViewController ()
@property (retain) UIPopoverController *popover;
@@ -118,9 +118,9 @@ -(UIImage *)sidebar:(HSSidebarView *)sidebar imageForIndex:(NSUInteger)anIndex {
}
-(void)sidebar:(HSSidebarView *)sidebar didTapImageAtIndex:(NSUInteger)anIndex {
- NSLog(@"Touched selected image at index: %u", anIndex);
+ NSLog(@"Touched image at index: %u", anIndex);
if (sidebar.selectedIndex == anIndex) {
- PopoverController *content = [[PopoverController alloc] initWithNibName:@"PopoverController" bundle:nil];
+ DeleteImagePopoverController *content = [[DeleteImagePopoverController alloc] initWithNibName:@"DeleteImagePopoverController" bundle:nil];
content.attachedIndex = anIndex;
content.sidebar = sidebar;
View
201 DeleteImagePopoverController.xib
@@ -0,0 +1,201 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00">
+ <data>
+ <int key="IBDocument.SystemTarget">1056</int>
+ <string key="IBDocument.SystemVersion">10H574</string>
+ <string key="IBDocument.InterfaceBuilderVersion">1246</string>
+ <string key="IBDocument.AppKitVersion">1038.35</string>
+ <array key="IBDocument.IntegratedClassDependencies">
+ <string>IBUIButton</string>
+ <string>IBUIView</string>
+ <string>IBUILabel</string>
+ <string>IBProxyObject</string>
+ </array>
+ <array key="IBDocument.PluginDependencies">
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ </array>
+ <dictionary class="NSMutableDictionary" key="IBDocument.Metadata"/>
+ <array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
+ <object class="IBProxyObject" id="372490531">
+ <string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ <object class="IBProxyObject" id="975951072">
+ <string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ <object class="IBUIView" id="191373211">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">292</int>
+ <array class="NSMutableArray" key="NSSubviews">
+ <object class="IBUILabel" id="830525689">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{20, 20}, {203, 21}}</string>
+ <reference key="NSSuperview" ref="191373211"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="972267507"/>
+ <bool key="IBUIOpaque">NO</bool>
+ <bool key="IBUIClipsSubviews">YES</bool>
+ <int key="IBUIContentMode">7</int>
+ <bool key="IBUIUserInteractionEnabled">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <string key="IBUIText">This is a popover. Hooray!</string>
+ <object class="NSFont" key="IBUIFont">
+ <string key="NSName">Helvetica</string>
+ <double key="NSSize">17</double>
+ <int key="NSfFlags">16</int>
+ </object>
+ <object class="NSColor" key="IBUITextColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MCAwIDAAA</bytes>
+ </object>
+ <nil key="IBUIHighlightedColor"/>
+ <int key="IBUIBaselineAdjustment">1</int>
+ <float key="IBUIMinimumFontSize">10</float>
+ </object>
+ <object class="IBUIButton" id="972267507">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">292</int>
+ <string key="NSFrame">{{20, 58}, {280, 37}}</string>
+ <reference key="NSSuperview" ref="191373211"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView"/>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentHorizontalAlignment">0</int>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <object class="NSFont" key="IBUIFont">
+ <string key="NSName">Helvetica-Bold</string>
+ <double key="NSSize">15</double>
+ <int key="NSfFlags">16</int>
+ </object>
+ <int key="IBUIButtonType">1</int>
+ <string key="IBUINormalTitle">Delete</string>
+ <object class="NSColor" key="IBUIHighlightedTitleColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MQA</bytes>
+ </object>
+ <object class="NSColor" key="IBUINormalTitleColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MC4xOTYwNzg0MzE0IDAuMzA5ODAzOTIxNiAwLjUyMTU2ODYyNzUAA</bytes>
+ </object>
+ <object class="NSColor" key="IBUINormalTitleShadowColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MC41AA</bytes>
+ </object>
+ </object>
+ </array>
+ <string key="NSFrameSize">{320, 115}</string>
+ <reference key="NSSuperview"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="830525689"/>
+ <object class="NSColor" key="IBUIBackgroundColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MQA</bytes>
+ <object class="NSColorSpace" key="NSCustomColorSpace">
+ <int key="NSID">2</int>
+ </object>
+ </object>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ </array>
+ <object class="IBObjectContainer" key="IBDocument.Objects">
+ <array class="NSMutableArray" key="connectionRecords">
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">view</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="191373211"/>
+ </object>
+ <int key="connectionID">3</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">delete:</string>
+ <reference key="source" ref="972267507"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">7</int>
+ </object>
+ <int key="connectionID">6</int>
+ </object>
+ </array>
+ <object class="IBMutableOrderedSet" key="objectRecords">
+ <array key="orderedObjects">
+ <object class="IBObjectRecord">
+ <int key="objectID">0</int>
+ <array key="object" id="0"/>
+ <reference key="children" ref="1000"/>
+ <nil key="parent"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">1</int>
+ <reference key="object" ref="191373211"/>
+ <array class="NSMutableArray" key="children">
+ <reference ref="830525689"/>
+ <reference ref="972267507"/>
+ </array>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-1</int>
+ <reference key="object" ref="372490531"/>
+ <reference key="parent" ref="0"/>
+ <string key="objectName">File's Owner</string>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">-2</int>
+ <reference key="object" ref="975951072"/>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">4</int>
+ <reference key="object" ref="830525689"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">5</int>
+ <reference key="object" ref="972267507"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ </array>
+ </object>
+ <dictionary class="NSMutableDictionary" key="flattenedProperties">
+ <string key="-1.CustomClassName">DeleteImagePopoverController</string>
+ <string key="-2.CustomClassName">UIResponder</string>
+ <string key="1.IBEditorWindowLastContentRect">{{556, 412}, {320, 480}}</string>
+ <string key="1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="4.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="5.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <real value="0.0" key="5.IBUIButtonInspectorSelectedStateConfigurationMetadataKey"/>
+ </dictionary>
+ <dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
+ <nil key="activeLocalization"/>
+ <dictionary class="NSMutableDictionary" key="localizations"/>
+ <nil key="sourceID"/>
+ <int key="maxID">6</int>
+ </object>
+ <object class="IBClassDescriber" key="IBDocument.Classes">
+ <array class="NSMutableArray" key="referencedPartialClassDescriptions">
+ <object class="IBPartialClassDescription">
+ <string key="className">DeleteImagePopoverController</string>
+ <string key="superclassName">UIViewController</string>
+ <object class="NSMutableDictionary" key="actions">
+ <string key="NS.key.0">delete:</string>
+ <string key="NS.object.0">id</string>
+ </object>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">./classes-xjh84/DeleteImagePopoverController.h</string>
+ </object>
+ </object>
+ </array>
+ </object>
+ <int key="IBDocument.localizationMode">0</int>
+ <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
+ <nil key="IBDocument.LastKnownRelativeProjectPath"/>
+ <int key="IBDocument.defaultPropertyAccessControl">3</int>
+ <string key="IBCocoaTouchPluginVersion">106</string>
+ </data>
+</archive>
View
20 Sidebar.xcodeproj/project.pbxproj
@@ -10,8 +10,8 @@
B71E114E129BA7870007B0BE /* Green.png in Resources */ = {isa = PBXBuildFile; fileRef = B71E114B129BA7870007B0BE /* Green.png */; };
B71E114F129BA7870007B0BE /* Blue.png in Resources */ = {isa = PBXBuildFile; fileRef = B71E114C129BA7870007B0BE /* Blue.png */; };
B71E1150129BA7870007B0BE /* Red.png in Resources */ = {isa = PBXBuildFile; fileRef = B71E114D129BA7870007B0BE /* Red.png */; };
- B77397AE12A4E85C00CE0A4C /* PopoverController.m in Sources */ = {isa = PBXBuildFile; fileRef = B77397AC12A4E85C00CE0A4C /* PopoverController.m */; };
- B77397AF12A4E85C00CE0A4C /* PopoverController.xib in Resources */ = {isa = PBXBuildFile; fileRef = B77397AD12A4E85C00CE0A4C /* PopoverController.xib */; };
+ B77397AE12A4E85C00CE0A4C /* DeleteImagePopoverController.m in Sources */ = {isa = PBXBuildFile; fileRef = B77397AC12A4E85C00CE0A4C /* DeleteImagePopoverController.m */; };
+ B77397AF12A4E85C00CE0A4C /* DeleteImagePopoverController.xib in Resources */ = {isa = PBXBuildFile; fileRef = B77397AD12A4E85C00CE0A4C /* DeleteImagePopoverController.xib */; };
B7B80510129393C300EBE69D /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B7B8050F129393C300EBE69D /* UIKit.framework */; };
B7B80512129393C300EBE69D /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B7B80511129393C300EBE69D /* Foundation.framework */; };
B7B80514129393C300EBE69D /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B7B80513129393C300EBE69D /* CoreGraphics.framework */; };
@@ -35,9 +35,9 @@
B71E114B129BA7870007B0BE /* Green.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Green.png; sourceTree = "<group>"; };
B71E114C129BA7870007B0BE /* Blue.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Blue.png; sourceTree = "<group>"; };
B71E114D129BA7870007B0BE /* Red.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Red.png; sourceTree = "<group>"; };
- B77397AB12A4E85C00CE0A4C /* PopoverController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PopoverController.h; sourceTree = "<group>"; };
- B77397AC12A4E85C00CE0A4C /* PopoverController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PopoverController.m; sourceTree = "<group>"; };
- B77397AD12A4E85C00CE0A4C /* PopoverController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = PopoverController.xib; sourceTree = "<group>"; };
+ B77397AB12A4E85C00CE0A4C /* DeleteImagePopoverController.h */ = {isa = PBXFileReference; fileEncoding = 4; path = DeleteImagePopoverController.h; sourceTree = "<group>"; };
+ B77397AC12A4E85C00CE0A4C /* DeleteImagePopoverController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = DeleteImagePopoverController.m; sourceTree = "<group>"; };
+ B77397AD12A4E85C00CE0A4C /* DeleteImagePopoverController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = DeleteImagePopoverController.xib; sourceTree = "<group>"; };
B7B8050C129393C300EBE69D /* Sidebar.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Sidebar.app; sourceTree = BUILT_PRODUCTS_DIR; };
B7B8050F129393C300EBE69D /* UIKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UIKit.framework; path = System/Library/Frameworks/UIKit.framework; sourceTree = SDKROOT; };
B7B80511129393C300EBE69D /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
@@ -109,8 +109,8 @@
B7B8051D129393C400EBE69D /* SidebarAppDelegate.m */,
B7B80522129393C400EBE69D /* SidebarViewController.h */,
B7B80523129393C400EBE69D /* SidebarViewController.m */,
- B77397AB12A4E85C00CE0A4C /* PopoverController.h */,
- B77397AC12A4E85C00CE0A4C /* PopoverController.m */,
+ B77397AB12A4E85C00CE0A4C /* DeleteImagePopoverController.h */,
+ B77397AC12A4E85C00CE0A4C /* DeleteImagePopoverController.m */,
);
path = Classes;
sourceTree = "<group>";
@@ -128,7 +128,7 @@
B7B80506129393C300EBE69D /* Resources */ = {
isa = PBXGroup;
children = (
- B77397AD12A4E85C00CE0A4C /* PopoverController.xib */,
+ B77397AD12A4E85C00CE0A4C /* DeleteImagePopoverController.xib */,
B71E114B129BA7870007B0BE /* Green.png */,
B71E114C129BA7870007B0BE /* Blue.png */,
B71E114D129BA7870007B0BE /* Red.png */,
@@ -256,7 +256,7 @@
B71E114E129BA7870007B0BE /* Green.png in Resources */,
B71E114F129BA7870007B0BE /* Blue.png in Resources */,
B71E1150129BA7870007B0BE /* Red.png in Resources */,
- B77397AF12A4E85C00CE0A4C /* PopoverController.xib in Resources */,
+ B77397AF12A4E85C00CE0A4C /* DeleteImagePopoverController.xib in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@@ -296,7 +296,7 @@
B7B8051E129393C400EBE69D /* SidebarAppDelegate.m in Sources */,
B7B80524129393C400EBE69D /* SidebarViewController.m in Sources */,
B7B80549129395F800EBE69D /* HSSidebarView.m in Sources */,
- B77397AE12A4E85C00CE0A4C /* PopoverController.m in Sources */,
+ B77397AE12A4E85C00CE0A4C /* DeleteImagePopoverController.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Please sign in to comment.
Something went wrong with that request. Please try again.