Skip to content

Commit

Permalink
Updated Sample
Browse files Browse the repository at this point in the history
  • Loading branch information
xcatsan committed Dec 31, 2010
1 parent 91b8fad commit 4223dc5
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 32 deletions.
Expand Up @@ -17,6 +17,7 @@
- (void)load:(id)sender;
- (void)load2:(id)sender;
- (void)load3:(id)sender;
- (void)load4:(id)sender;

@end

10 changes: 10 additions & 0 deletions DisplayingExcelFile/Classes/DisplayingExcelFileViewController.m
Expand Up @@ -91,4 +91,14 @@ - (void)load3:(id)sender

}

- (void)load4:(id)sender
{
NSURL* url = [[NSBundle mainBundle] URLForResource:@"sample4"
withExtension:@"rtfd.zip"];
NSURLRequest* req = [NSURLRequest requestWithURL:url];

[self.webView loadRequest:req];

}

@end
Expand Up @@ -19,6 +19,7 @@
4C399F6012CD4BFD005D94A1 /* MainWindow-iPad.xib in Resources */ = {isa = PBXBuildFile; fileRef = 4C399F5F12CD4BFD005D94A1 /* MainWindow-iPad.xib */; };
4C399F7D12CD4F48005D94A1 /* sample2.ppt in Resources */ = {isa = PBXBuildFile; fileRef = 4C399F7C12CD4F48005D94A1 /* sample2.ppt */; };
4C399F9812CD54D4005D94A1 /* sample3.doc in Resources */ = {isa = PBXBuildFile; fileRef = 4C399F9712CD54D4005D94A1 /* sample3.doc */; };
4C399FAF12CD58DB005D94A1 /* sample4.rtfd.zip in Resources */ = {isa = PBXBuildFile; fileRef = 4C399FAE12CD58D9005D94A1 /* sample4.rtfd.zip */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand All @@ -38,6 +39,7 @@
4C399F5F12CD4BFD005D94A1 /* MainWindow-iPad.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = "MainWindow-iPad.xib"; path = "Resources-iPad/MainWindow-iPad.xib"; sourceTree = "<group>"; };
4C399F7C12CD4F48005D94A1 /* sample2.ppt */ = {isa = PBXFileReference; lastKnownFileType = file; path = sample2.ppt; sourceTree = "<group>"; };
4C399F9712CD54D4005D94A1 /* sample3.doc */ = {isa = PBXFileReference; lastKnownFileType = file; path = sample3.doc; sourceTree = "<group>"; };
4C399FAE12CD58D9005D94A1 /* sample4.rtfd.zip */ = {isa = PBXFileReference; lastKnownFileType = archive.zip; path = sample4.rtfd.zip; sourceTree = "<group>"; };
8D1107310486CEB800E47090 /* DisplayingExcelFile-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "DisplayingExcelFile-Info.plist"; plistStructureDefinitionIdentifier = "com.apple.xcode.plist.structure-definition.iphone.info-plist"; sourceTree = "<group>"; };
/* End PBXFileReference section */

Expand Down Expand Up @@ -102,6 +104,7 @@
4C399F4212CD453E005D94A1 /* sample.xls */,
4C399F7C12CD4F48005D94A1 /* sample2.ppt */,
4C399F9712CD54D4005D94A1 /* sample3.doc */,
4C399FAE12CD58D9005D94A1 /* sample4.rtfd.zip */,
2899E5210DE3E06400AC0155 /* DisplayingExcelFileViewController.xib */,
28AD733E0D9D9553002E5188 /* MainWindow.xib */,
8D1107310486CEB800E47090 /* DisplayingExcelFile-Info.plist */,
Expand Down Expand Up @@ -182,6 +185,7 @@
4C399F6012CD4BFD005D94A1 /* MainWindow-iPad.xib in Resources */,
4C399F7D12CD4F48005D94A1 /* sample2.ppt in Resources */,
4C399F9812CD54D4005D94A1 /* sample3.doc in Resources */,
4C399FAF12CD58DB005D94A1 /* sample4.rtfd.zip in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
115 changes: 83 additions & 32 deletions DisplayingExcelFile/DisplayingExcelFileViewController.xib
Expand Up @@ -42,7 +42,7 @@
<int key="NSvFlags">274</int>
<object class="NSMutableArray" key="NSSubviews">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="IBUIWebView" id="763954131">
<object class="IBUIWebView" id="496380262">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">274</int>
<string key="NSFrameSize">{320, 408}</string>
Expand All @@ -56,72 +56,91 @@
<int key="IBUIDataDetectorTypes">1</int>
<bool key="IBUIDetectsPhoneNumbers">YES</bool>
</object>
<object class="IBUIButton" id="33666714">
<object class="IBUIButton" id="678129671">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">264</int>
<string key="NSFrame">{{20, 416}, {72, 37}}</string>
<string key="NSFrame">{{0, 416}, {72, 37}}</string>
<reference key="NSSuperview" ref="774585933"/>
<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" id="556854301">
<object class="NSFont" key="IBUIFont" id="805824847">
<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">Excel</string>
<object class="NSColor" key="IBUIHighlightedTitleColor" id="242963595">
<object class="NSColor" key="IBUIHighlightedTitleColor" id="936754014">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MQA</bytes>
</object>
<object class="NSColor" key="IBUINormalTitleColor">
<int key="NSColorSpace">1</int>
<bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
</object>
<object class="NSColor" key="IBUINormalTitleShadowColor" id="243052764">
<object class="NSColor" key="IBUINormalTitleShadowColor" id="809994085">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MC41AA</bytes>
</object>
</object>
<object class="IBUIButton" id="435591246">
<object class="IBUIButton" id="988926511">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">264</int>
<string key="NSFrame">{{100, 416}, {107, 37}}</string>
<string key="NSFrame">{{75, 416}, {98, 37}}</string>
<reference key="NSSuperview" ref="774585933"/>
<bool key="IBUIOpaque">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<int key="IBUIContentHorizontalAlignment">0</int>
<int key="IBUIContentVerticalAlignment">0</int>
<reference key="IBUIFont" ref="556854301"/>
<reference key="IBUIFont" ref="805824847"/>
<int key="IBUIButtonType">1</int>
<string key="IBUINormalTitle">PowerPoint</string>
<reference key="IBUIHighlightedTitleColor" ref="242963595"/>
<reference key="IBUIHighlightedTitleColor" ref="936754014"/>
<object class="NSColor" key="IBUINormalTitleColor">
<int key="NSColorSpace">1</int>
<bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
</object>
<reference key="IBUINormalTitleShadowColor" ref="243052764"/>
<reference key="IBUINormalTitleShadowColor" ref="809994085"/>
</object>
<object class="IBUIButton" id="837964520">
<object class="IBUIButton" id="148607288">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">264</int>
<string key="NSFrame">{{215, 416}, {72, 37}}</string>
<string key="NSFrame">{{175, 416}, {72, 37}}</string>
<reference key="NSSuperview" ref="774585933"/>
<bool key="IBUIOpaque">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<int key="IBUIContentHorizontalAlignment">0</int>
<int key="IBUIContentVerticalAlignment">0</int>
<reference key="IBUIFont" ref="556854301"/>
<reference key="IBUIFont" ref="805824847"/>
<int key="IBUIButtonType">1</int>
<string key="IBUINormalTitle">Word</string>
<reference key="IBUIHighlightedTitleColor" ref="242963595"/>
<reference key="IBUIHighlightedTitleColor" ref="936754014"/>
<object class="NSColor" key="IBUINormalTitleColor">
<int key="NSColorSpace">1</int>
<bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
</object>
<reference key="IBUINormalTitleShadowColor" ref="243052764"/>
<reference key="IBUINormalTitleShadowColor" ref="809994085"/>
</object>
<object class="IBUIButton" id="103238070">
<reference key="NSNextResponder" ref="774585933"/>
<int key="NSvFlags">264</int>
<string key="NSFrame">{{248, 416}, {72, 37}}</string>
<reference key="NSSuperview" ref="774585933"/>
<bool key="IBUIOpaque">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<int key="IBUIContentHorizontalAlignment">0</int>
<int key="IBUIContentVerticalAlignment">0</int>
<reference key="IBUIFont" ref="805824847"/>
<int key="IBUIButtonType">1</int>
<string key="IBUINormalTitle">RTFD</string>
<reference key="IBUIHighlightedTitleColor" ref="936754014"/>
<object class="NSColor" key="IBUINormalTitleColor">
<int key="NSColorSpace">1</int>
<bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
</object>
<reference key="IBUINormalTitleShadowColor" ref="809994085"/>
</object>
</object>
<string key="NSFrameSize">{320, 460}</string>
Expand Down Expand Up @@ -153,14 +172,14 @@
<object class="IBCocoaTouchOutletConnection" key="connection">
<string key="label">webView</string>
<reference key="source" ref="372490531"/>
<reference key="destination" ref="763954131"/>
<reference key="destination" ref="496380262"/>
</object>
<int key="connectionID">9</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchEventConnection" key="connection">
<string key="label">load:</string>
<reference key="source" ref="33666714"/>
<reference key="source" ref="678129671"/>
<reference key="destination" ref="372490531"/>
<int key="IBEventType">7</int>
</object>
Expand All @@ -169,7 +188,7 @@
<object class="IBConnectionRecord">
<object class="IBCocoaTouchEventConnection" key="connection">
<string key="label">load2:</string>
<reference key="source" ref="435591246"/>
<reference key="source" ref="988926511"/>
<reference key="destination" ref="372490531"/>
<int key="IBEventType">7</int>
</object>
Expand All @@ -178,12 +197,21 @@
<object class="IBConnectionRecord">
<object class="IBCocoaTouchEventConnection" key="connection">
<string key="label">load3:</string>
<reference key="source" ref="837964520"/>
<reference key="source" ref="148607288"/>
<reference key="destination" ref="372490531"/>
<int key="IBEventType">7</int>
</object>
<int key="connectionID">16</int>
</object>
<object class="IBConnectionRecord">
<object class="IBCocoaTouchEventConnection" key="connection">
<string key="label">load4:</string>
<reference key="source" ref="103238070"/>
<reference key="destination" ref="372490531"/>
<int key="IBEventType">7</int>
</object>
<int key="connectionID">19</int>
</object>
</object>
<object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects">
Expand All @@ -210,31 +238,37 @@
<reference key="object" ref="774585933"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="763954131"/>
<reference ref="33666714"/>
<reference ref="435591246"/>
<reference ref="837964520"/>
<reference ref="496380262"/>
<reference ref="678129671"/>
<reference ref="988926511"/>
<reference ref="148607288"/>
<reference ref="103238070"/>
</object>
<reference key="parent" ref="0"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">8</int>
<reference key="object" ref="763954131"/>
<reference key="object" ref="496380262"/>
<reference key="parent" ref="774585933"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">10</int>
<reference key="object" ref="33666714"/>
<reference key="object" ref="678129671"/>
<reference key="parent" ref="774585933"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">12</int>
<reference key="object" ref="435591246"/>
<reference key="object" ref="988926511"/>
<reference key="parent" ref="774585933"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">15</int>
<reference key="object" ref="837964520"/>
<reference key="object" ref="148607288"/>
<reference key="parent" ref="774585933"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">17</int>
<reference key="object" ref="103238070"/>
<reference key="parent" ref="774585933"/>
</object>
</object>
Expand All @@ -250,6 +284,9 @@
<string>12.IBPluginDependency</string>
<string>12.IBViewBoundsToFrameTransform</string>
<string>15.IBPluginDependency</string>
<string>15.IBViewBoundsToFrameTransform</string>
<string>17.IBPluginDependency</string>
<string>17.IBViewBoundsToFrameTransform</string>
<string>6.IBEditorWindowLastContentRect</string>
<string>6.IBPluginDependency</string>
<string>8.IBPluginDependency</string>
Expand All @@ -260,13 +297,20 @@
<string>UIResponder</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<object class="NSAffineTransform">
<bytes key="NSTransformStruct">AUGgAABD0AAAA</bytes>
<bytes key="NSTransformStruct">P4AAAL+AAABBoAAAw+GAAA</bytes>
</object>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<object class="NSAffineTransform">
<bytes key="NSTransformStruct">P4AAAL+AAABCyAAAw+GAAA</bytes>
</object>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<object class="NSAffineTransform">
<bytes key="NSTransformStruct">P4AAAL+AAABDVwAAw+GAAA</bytes>
</object>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<object class="NSAffineTransform">
<bytes key="NSTransformStruct">P4AAAL+AAABDbgAAw+UAAA</bytes>
</object>
<string>{{239, 276}, {320, 480}}</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
Expand All @@ -288,7 +332,7 @@
</object>
</object>
<nil key="sourceID"/>
<int key="maxID">16</int>
<int key="maxID">19</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
Expand All @@ -302,13 +346,15 @@
<bool key="EncodedWithXMLCoder">YES</bool>
<string>load2:</string>
<string>load3:</string>
<string>load4:</string>
<string>load:</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>id</string>
<string>id</string>
<string>id</string>
<string>id</string>
</object>
</object>
<object class="NSMutableDictionary" key="actionInfosByName">
Expand All @@ -317,6 +363,7 @@
<bool key="EncodedWithXMLCoder">YES</bool>
<string>load2:</string>
<string>load3:</string>
<string>load4:</string>
<string>load:</string>
</object>
<object class="NSMutableArray" key="dict.values">
Expand All @@ -329,6 +376,10 @@
<string key="name">load3:</string>
<string key="candidateClassName">id</string>
</object>
<object class="IBActionInfo">
<string key="name">load4:</string>
<string key="candidateClassName">id</string>
</object>
<object class="IBActionInfo">
<string key="name">load:</string>
<string key="candidateClassName">id</string>
Expand Down Expand Up @@ -440,7 +491,7 @@
</object>
<object class="IBPartialClassDescription">
<string key="className">NSObject</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier" id="618593175">
<object class="IBClassDescriptionSource" key="sourceIdentifier" id="647267277">
<string key="majorKey">IBFrameworkSource</string>
<string key="minorKey">UIKit.framework/Headers/UIResponder.h</string>
</object>
Expand All @@ -464,7 +515,7 @@
<object class="IBPartialClassDescription">
<string key="className">UIResponder</string>
<string key="superclassName">NSObject</string>
<reference key="sourceIdentifier" ref="618593175"/>
<reference key="sourceIdentifier" ref="647267277"/>
</object>
<object class="IBPartialClassDescription">
<string key="className">UISearchBar</string>
Expand Down
Binary file added DisplayingExcelFile/sample4.rtfd.zip
Binary file not shown.

0 comments on commit 4223dc5

Please sign in to comment.