Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of github.com:NashXam/wallet-sized

  • Loading branch information...
commit 9275751760ca544084fd07bf1d98af04b7be0249 2 parents 7374156 + 58af9b1
@bryanhunter bryanhunter authored
View
54 pblasucci/WalletSized.Core/Library.fs
@@ -0,0 +1,54 @@
+//
+// Library.fs
+//
+// Author:
+// Paulmichael Blasucci <pblasucci@gmail.com>
+//
+// Copyright (c) 2014
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+namespace WalletSized.Core
+
+open System
+
+type WalletItem =
+ { Name :string
+ Stamp :DateTime
+ Value :WalletItemValue }
+
+ override item.ToString () =
+ sprintf "{WalletItem.Name=%s; Stamp=%A; Value=%A}"
+ item.Name
+ item.Stamp
+ item.Value
+
+and WalletItemValue =
+ | Note of string
+ | Link of string
+ | Photo of string
+
+ override item.ToString () =
+ match item with
+ | Note value -> sprintf "Note %s" value
+ | Link value -> sprintf "Link %s" value
+ | Photo value -> sprintf "Photo %s" value
+
+// extensions to simplfy being called from languages other than F#
+type WalletItem with
+ static member Note (name,value) =
+ {Name=name; Stamp=DateTime.UtcNow; Value=Note value}
+ static member Link (name,value) =
+ {Name=name; Stamp=DateTime.UtcNow; Value=Link value}
+ static member Photo (name,value) =
+ {Name=name; Stamp=DateTime.UtcNow; Value=Photo value}
View
50 pblasucci/WalletSized.Core/WalletSized.Core.fsproj
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>12.0.0</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{53AFDF04-58BC-4F73-80CF-E23A8CC92719}</ProjectGuid>
+ <ProjectTypeGuids>{6BC8ED88-2882-458C-8E55-DFD12B67127B};{4925A630-B079-445D-BCD4-3A9C94FE9307}</ProjectTypeGuids>
+ <OutputType>Library</OutputType>
+ <RootNamespace>WalletSized.Core</RootNamespace>
+ <IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
+ <AssemblyName>WalletSized.Core</AssemblyName>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <OutputPath>bin\Debug</OutputPath>
+ <DefineConstants>DEBUG</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <PlatformTarget>
+ </PlatformTarget>
+ <ConsolePause>false</ConsolePause>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release</OutputPath>
+ <ErrorReport>prompt</ErrorReport>
+ <PlatformTarget>
+ </PlatformTarget>
+ <ConsolePause>false</ConsolePause>
+ <Tailcalls>true</Tailcalls>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Xml" />
+ <Reference Include="System.Core" />
+ <Reference Include="FSharp.Core" />
+ <Reference Include="monotouch" />
+ </ItemGroup>
+ <ItemGroup>
+ <Folder Include="Resources\" />
+ </ItemGroup>
+ <Import Project="$(MSBuildExtensionsPath32)\..\Microsoft F#\v4.0\Microsoft.FSharp.Targets" />
+ <ItemGroup>
+ <Compile Include="Library.fs" />
+ </ItemGroup>
+</Project>
View
46 pblasucci/WalletSized.sln
@@ -0,0 +1,46 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2012
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WalletSized", "WalletSized\WalletSized.csproj", "{25CBCB8F-0F42-4E18-BC8E-0890E2E28B7D}"
+EndProject
+Project("{4925A630-B079-445d-BCD4-3A9C94FE9307}") = "WalletSized.Core", "WalletSized.Core\WalletSized.Core.fsproj", "{53AFDF04-58BC-4F73-80CF-E23A8CC92719}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|iPhoneSimulator = Debug|iPhoneSimulator
+ Release|iPhoneSimulator = Release|iPhoneSimulator
+ Debug|iPhone = Debug|iPhone
+ Release|iPhone = Release|iPhone
+ Ad-Hoc|iPhone = Ad-Hoc|iPhone
+ AppStore|iPhone = AppStore|iPhone
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {25CBCB8F-0F42-4E18-BC8E-0890E2E28B7D}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
+ {25CBCB8F-0F42-4E18-BC8E-0890E2E28B7D}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
+ {25CBCB8F-0F42-4E18-BC8E-0890E2E28B7D}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
+ {25CBCB8F-0F42-4E18-BC8E-0890E2E28B7D}.AppStore|iPhone.Build.0 = AppStore|iPhone
+ {25CBCB8F-0F42-4E18-BC8E-0890E2E28B7D}.Debug|iPhone.ActiveCfg = Debug|iPhone
+ {25CBCB8F-0F42-4E18-BC8E-0890E2E28B7D}.Debug|iPhone.Build.0 = Debug|iPhone
+ {25CBCB8F-0F42-4E18-BC8E-0890E2E28B7D}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
+ {25CBCB8F-0F42-4E18-BC8E-0890E2E28B7D}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
+ {25CBCB8F-0F42-4E18-BC8E-0890E2E28B7D}.Release|iPhone.ActiveCfg = Release|iPhone
+ {25CBCB8F-0F42-4E18-BC8E-0890E2E28B7D}.Release|iPhone.Build.0 = Release|iPhone
+ {25CBCB8F-0F42-4E18-BC8E-0890E2E28B7D}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
+ {25CBCB8F-0F42-4E18-BC8E-0890E2E28B7D}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
+ {53AFDF04-58BC-4F73-80CF-E23A8CC92719}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU
+ {53AFDF04-58BC-4F73-80CF-E23A8CC92719}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU
+ {53AFDF04-58BC-4F73-80CF-E23A8CC92719}.AppStore|iPhone.ActiveCfg = Release|Any CPU
+ {53AFDF04-58BC-4F73-80CF-E23A8CC92719}.AppStore|iPhone.Build.0 = Release|Any CPU
+ {53AFDF04-58BC-4F73-80CF-E23A8CC92719}.Debug|iPhone.ActiveCfg = Debug|Any CPU
+ {53AFDF04-58BC-4F73-80CF-E23A8CC92719}.Debug|iPhone.Build.0 = Debug|Any CPU
+ {53AFDF04-58BC-4F73-80CF-E23A8CC92719}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
+ {53AFDF04-58BC-4F73-80CF-E23A8CC92719}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
+ {53AFDF04-58BC-4F73-80CF-E23A8CC92719}.Release|iPhone.ActiveCfg = Release|Any CPU
+ {53AFDF04-58BC-4F73-80CF-E23A8CC92719}.Release|iPhone.Build.0 = Release|Any CPU
+ {53AFDF04-58BC-4F73-80CF-E23A8CC92719}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
+ {53AFDF04-58BC-4F73-80CF-E23A8CC92719}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(MonoDevelopProperties) = preSolution
+ StartupItem = WalletSized\WalletSized.csproj
+ EndGlobalSection
+EndGlobal
View
13 pblasucci/WalletSized.userprefs
@@ -0,0 +1,13 @@
+<Properties>
+ <MonoDevelop.Ide.Workspace ActiveConfiguration="Debug|iPhoneSimulator" PreferredExecutionTarget="MonoDevelop.IPhone.IPhoneSimulatorTarget.IPhoneRetina4.7.0" />
+ <MonoDevelop.Ide.Workbench ActiveDocument="WalletSized/MasterViewController.cs">
+ <Files>
+ <File FileName="WalletSized/MasterViewController.cs" Line="72" Column="67" />
+ <File FileName="WalletSized/DetailViewController.cs" Line="55" Column="6" />
+ </Files>
+ </MonoDevelop.Ide.Workbench>
+ <MonoDevelop.Ide.DebuggingService.Breakpoints>
+ <BreakpointStore />
+ </MonoDevelop.Ide.DebuggingService.Breakpoints>
+ <MonoDevelop.Ide.DebuggingService.PinnedWatches />
+</Properties>
View
57 pblasucci/WalletSized/AppDelegate.cs
@@ -0,0 +1,57 @@
+//
+// AppDelegate.cs
+//
+// Author:
+// Paulmichael Blasucci <pblasucci@gmail.com>
+//
+// Copyright (c) 2014
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using MonoTouch.Foundation;
+using MonoTouch.UIKit;
+
+namespace WalletSized {
+ // The UIApplicationDelegate for the application. This class is responsible for launching the
+ // User Interface of the application, as well as listening (and optionally responding) to
+ // application events from iOS.
+ [Register ("AppDelegate")]
+ public partial class AppDelegate : UIApplicationDelegate {
+ // class-level declarations
+ UINavigationController navigationController;
+ UIWindow window;
+ //
+ // This method is invoked when the application has loaded and is ready to run. In this
+ // method you should instantiate the window, load the UI into it and then make the window
+ // visible.
+ //
+ // You have 17 seconds to return from this method, or iOS will terminate your application.
+ //
+ public override bool FinishedLaunching (UIApplication app,NSDictionary options) {
+ window = new UIWindow (UIScreen.MainScreen.Bounds);
+
+ var controller = new MasterViewController ();
+ navigationController = new UINavigationController (controller);
+ window.RootViewController = navigationController;
+
+ // make the window visible
+ window.MakeKeyAndVisible ();
+
+ return true;
+ }
+ }
+}
+
View
72 pblasucci/WalletSized/DetailViewController.cs
@@ -0,0 +1,72 @@
+//
+// DetailViewController.cs
+//
+// Author:
+// Paulmichael Blasucci <pblasucci@gmail.com>
+//
+// Copyright (c) 2014
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+using System;
+using System.Drawing;
+using System.Collections.Generic;
+using MonoTouch.Foundation;
+using MonoTouch.UIKit;
+
+using WalletSized.Core;
+
+namespace WalletSized {
+ public partial class DetailViewController : UIViewController {
+ WalletItem detailItem;
+
+ public DetailViewController () : base ("DetailViewController",null) {
+ Title = NSBundle.MainBundle.LocalizedString ("Details","Details");
+
+ // Custom initialization
+ }
+
+ public void SetDetailItem (object newDetailItem) {
+ if (detailItem != newDetailItem) {
+ detailItem = (WalletItem) newDetailItem;
+
+ // Update the view
+ ConfigureView ();
+ }
+ }
+
+ void ConfigureView () {
+ // Update the user interface for the detail item
+ if (IsViewLoaded && detailItem != null)
+ detailDescriptionLabel.Text = String.Format ("[{1}] {0}: {2}"
+ ,detailItem.Name
+ ,detailItem.Stamp
+ ,detailItem.Value);
+ }
+
+ public override void DidReceiveMemoryWarning () {
+ // Releases the view if it doesn't have a superview.
+ base.DidReceiveMemoryWarning ();
+
+ // Release any cached data, images, etc that aren't in use.
+ }
+
+ public override void ViewDidLoad () {
+ base.ViewDidLoad ();
+
+ // Perform any additional setup after loading the view, typically from a nib.
+ ConfigureView ();
+ }
+ }
+}
+
View
24 pblasucci/WalletSized/DetailViewController.designer.cs
@@ -0,0 +1,24 @@
+//
+// This file has been generated automatically by MonoDevelop to store outlets and
+// actions made in the Xcode designer. If it is removed, they will be lost.
+// Manual changes to this file may not be handled correctly.
+//
+using MonoTouch.Foundation;
+using System.CodeDom.Compiler;
+
+namespace WalletSized {
+ [Register ("DetailViewController")]
+ partial class DetailViewController {
+ [Outlet]
+ [GeneratedCodeAttribute ("iOS Designer","1.0")]
+ MonoTouch.UIKit.UILabel detailDescriptionLabel { get; set; }
+
+ void ReleaseDesignerOutlets () {
+ if (detailDescriptionLabel != null) {
+ detailDescriptionLabel.Dispose ();
+ detailDescriptionLabel = null;
+ }
+ }
+ }
+}
+
View
189 pblasucci/WalletSized/DetailViewController.xib
@@ -0,0 +1,189 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00">
+ <data>
+ <int key="IBDocument.SystemTarget">1296</int>
+ <string key="IBDocument.SystemVersion">11D50</string>
+ <string key="IBDocument.InterfaceBuilderVersion">2182</string>
+ <string key="IBDocument.AppKitVersion">1138.32</string>
+ <string key="IBDocument.HIToolboxVersion">568.00</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="NS.object.0">1179</string>
+ </object>
+ <array key="IBDocument.IntegratedClassDependencies">
+ <string>IBProxyObject</string>
+ <string>IBUIView</string>
+ <string>IBUILabel</string>
+ </array>
+ <array key="IBDocument.PluginDependencies">
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ </array>
+ <object class="NSMutableDictionary" key="IBDocument.Metadata">
+ <string key="NS.key.0">PluginDependencyRecalculationVersion</string>
+ <integer value="1" key="NS.object.0"/>
+ </object>
+ <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">274</int>
+ <array class="NSMutableArray" key="NSSubviews">
+ <object class="IBUILabel" id="741552823">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">298</int>
+ <string key="NSFrame">{{20, 221}, {280, 18}}</string>
+ <reference key="NSSuperview" ref="191373211"/>
+ <reference key="NSWindow"/>
+ <object class="NSColor" key="IBUIBackgroundColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MQA</bytes>
+ </object>
+ <bool key="IBUIClipsSubviews">YES</bool>
+ <bool key="IBUIUserInteractionEnabled">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <string key="IBUIText">Detail view content goes here</string>
+ <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>
+ <int key="IBUITextAlignment">1</int>
+ <object class="IBUIFontDescription" key="IBUIFontDescription">
+ <int key="type">1</int>
+ <int key="size">4</int>
+ </object>
+ <object class="NSFont" key="IBUIFont">
+ <string key="NSName">Helvetica</string>
+ <double key="NSSize">14</double>
+ <int key="NSfFlags">16</int>
+ </object>
+ </object>
+ </array>
+ <string key="NSFrame">{{0, 20}, {320, 460}}</string>
+ <reference key="NSSuperview"/>
+ <reference key="NSWindow"/>
+ <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>
+ <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
+ <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="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">detailDescriptionLabel</string>
+ <reference key="source" ref="372490531"/>
+ <reference key="destination" ref="741552823"/>
+ </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="741552823"/>
+ </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="741552823"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
+ </array>
+ </object>
+ <dictionary class="NSMutableDictionary" key="flattenedProperties">
+ <string key="-1.CustomClassName">DetailViewController</string>
+ <string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="-2.CustomClassName">UIResponder</string>
+ <string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="4.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ </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">DetailViewController</string>
+ <string key="superclassName">UIViewController</string>
+ <object class="NSMutableDictionary" key="outlets">
+ <string key="NS.key.0">detailDescriptionLabel</string>
+ <string key="NS.object.0">UILabel</string>
+ </object>
+ <object class="NSMutableDictionary" key="toOneOutletInfosByName">
+ <string key="NS.key.0">detailDescriptionLabel</string>
+ <object class="IBToOneOutletInfo" key="NS.object.0">
+ <string key="name">detailDescriptionLabel</string>
+ <string key="candidateClassName">UILabel</string>
+ </object>
+ </object>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">./Classes/DetailViewController.h</string>
+ </object>
+ </object>
+ </array>
+ </object>
+ <int key="IBDocument.localizationMode">0</int>
+ <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS</string>
+ <real value="1296" key="NS.object.0"/>
+ </object>
+ <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string>
+ <real value="4200" key="NS.object.0"/>
+ </object>
+ <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
+ <int key="IBDocument.defaultPropertyAccessControl">3</int>
+ <string key="IBCocoaTouchPluginVersion">1179</string>
+ </data>
+</archive>
View
6 pblasucci/WalletSized/Entitlements.plist
@@ -0,0 +1,6 @@
+<?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>
+</dict>
+</plist>
View
32 pblasucci/WalletSized/Info.plist
@@ -0,0 +1,32 @@
+<?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>CFBundleDisplayName</key>
+ <string>WalletSized</string>
+ <key>CFBundleIdentifier</key>
+ <string>com.your-company.WalletSized</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0</string>
+ <key>CFBundleVersion</key>
+ <string>1.0</string>
+ <key>LSRequiresIPhoneOS</key>
+ <true/>
+ <key>MinimumOSVersion</key>
+ <string>7.0</string>
+ <key>UIDeviceFamily</key>
+ <array>
+ <integer>1</integer>
+ </array>
+ <key>UIRequiredDeviceCapabilities</key>
+ <array>
+ <string>armv7</string>
+ </array>
+ <key>UISupportedInterfaceOrientations</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+</dict>
+</plist>
View
36 pblasucci/WalletSized/Main.cs
@@ -0,0 +1,36 @@
+//
+// Main.cs
+//
+// Author:
+// Paulmichael Blasucci <pblasucci@gmail.com>
+//
+// Copyright (c) 2014
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using MonoTouch.Foundation;
+using MonoTouch.UIKit;
+
+namespace WalletSized {
+ public class Application {
+ // This is the main entry point of the application.
+ static void Main (string[] args) {
+ // if you want to use a different Application Delegate class from "AppDelegate"
+ // you can specify it here.
+ UIApplication.Main (args,null,"AppDelegate");
+ }
+ }
+}
View
142 pblasucci/WalletSized/MasterViewController.cs
@@ -0,0 +1,142 @@
+//
+// MasterViewController.cs
+//
+// Author:
+// Paulmichael Blasucci <pblasucci@gmail.com>
+//
+// Copyright (c) 2014
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Lesser General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+using System;
+using System.Drawing;
+using System.Collections.Generic;
+using MonoTouch.UIKit;
+using MonoTouch.Foundation;
+
+using WalletSized.Core;
+
+namespace WalletSized {
+ public partial class MasterViewController : UITableViewController {
+ DataSource dataSource;
+
+ public MasterViewController () : base ("MasterViewController",null) {
+ Title = NSBundle.MainBundle.LocalizedString ("WalletSized","WalletSized");
+
+ // Custom initialization
+ }
+
+ public DetailViewController DetailViewController {
+ get;
+ set;
+ }
+
+ void AddNewItem (object sender,EventArgs args) {
+ dataSource.Objects.Insert (0,WalletItem.Note("Test","Test"));
+
+ using (var indexPath = NSIndexPath.FromRowSection (0,0))
+ TableView.InsertRows (new NSIndexPath[] { indexPath },UITableViewRowAnimation.Automatic);
+ }
+
+ public override void DidReceiveMemoryWarning () {
+ // Releases the view if it doesn't have a superview.
+ base.DidReceiveMemoryWarning ();
+
+ // Release any cached data, images, etc that aren't in use.
+ }
+
+ public override void ViewDidLoad () {
+ base.ViewDidLoad ();
+
+ // Perform any additional setup after loading the view, typically from a nib.
+ NavigationItem.LeftBarButtonItem = EditButtonItem;
+
+ var addButton = new UIBarButtonItem (UIBarButtonSystemItem.Add,AddNewItem);
+ NavigationItem.RightBarButtonItem = addButton;
+
+ TableView.Source = dataSource = new DataSource (this);
+ }
+
+ class DataSource : UITableViewSource {
+ static readonly NSString CellIdentifier = new NSString ("Cell");
+ readonly List<WalletItem> objects = new List<WalletItem> (10);
+ readonly MasterViewController controller;
+
+ public DataSource (MasterViewController controller) {
+ this.controller = controller;
+ }
+
+ public IList<WalletItem> Objects {
+ get { return objects; }
+ }
+ // Customize the number of sections in the table view.
+ public override int NumberOfSections (UITableView tableView) {
+ return 1;
+ }
+
+ public override int RowsInSection (UITableView tableview,int section) {
+ return objects.Count;
+ }
+ // Customize the appearance of table view cells.
+ public override UITableViewCell GetCell (UITableView tableView,NSIndexPath indexPath) {
+ var cell = tableView.DequeueReusableCell (CellIdentifier);
+ if (cell == null) {
+ cell = new UITableViewCell (UITableViewCellStyle.Default,CellIdentifier);
+ cell.Accessory = UITableViewCellAccessory.DisclosureIndicator;
+ }
+
+ cell.TextLabel.Text = objects[indexPath.Row].Name;
+ //TODO: extend with picture
+ return cell;
+ }
+
+ public override bool CanEditRow (UITableView tableView,NSIndexPath indexPath) {
+ // Return false if you do not want the specified item to be editable.
+ return true;
+ }
+
+ public override void CommitEditingStyle (UITableView tableView,UITableViewCellEditingStyle editingStyle,NSIndexPath indexPath) {
+ if (editingStyle == UITableViewCellEditingStyle.Delete) {
+ // Delete the row from the data source.
+ objects.RemoveAt (indexPath.Row);
+ controller.TableView.DeleteRows (new NSIndexPath[] { indexPath },UITableViewRowAnimation.Fade);
+ } else if (editingStyle == UITableViewCellEditingStyle.Insert) {
+ // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view.
+ }
+ }
+ /*
+ // Override to support rearranging the table view.
+ public override void MoveRow (UITableView tableView, NSIndexPath sourceIndexPath, NSIndexPath destinationIndexPath)
+ {
+ }
+ */
+ /*
+ // Override to support conditional rearranging of the table view.
+ public override bool CanMoveRow (UITableView tableView, NSIndexPath indexPath)
+ {
+ // Return false if you do not want the item to be re-orderable.
+ return true;
+ }
+ */
+ public override void RowSelected (UITableView tableView,NSIndexPath indexPath) {
+ if (controller.DetailViewController == null)
+ controller.DetailViewController = new DetailViewController ();
+
+ controller.DetailViewController.SetDetailItem (objects [indexPath.Row]);
+
+ // Pass the selected object to the new view controller.
+ controller.NavigationController.PushViewController (controller.DetailViewController,true);
+ }
+ }
+ }
+}
View
16 pblasucci/WalletSized/MasterViewController.designer.cs
@@ -0,0 +1,16 @@
+// WARNING
+//
+// This file has been generated automatically by MonoDevelop to store outlets and
+// actions made in the Xcode designer. If it is removed, they will be lost.
+// Manual changes to this file may not be handled correctly.
+//
+using MonoTouch.Foundation;
+
+namespace WalletSized {
+ [Register ("MasterViewController")]
+ partial class MasterViewController {
+ void ReleaseDesignerOutlets () {
+ }
+ }
+}
+
View
147 pblasucci/WalletSized/MasterViewController.xib
@@ -0,0 +1,147 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<archive type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="8.00">
+ <data>
+ <int key="IBDocument.SystemTarget">1296</int>
+ <string key="IBDocument.SystemVersion">11D50</string>
+ <string key="IBDocument.InterfaceBuilderVersion">2182</string>
+ <string key="IBDocument.AppKitVersion">1138.32</string>
+ <string key="IBDocument.HIToolboxVersion">568.00</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginVersions">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="NS.object.0">1179</string>
+ </object>
+ <array key="IBDocument.IntegratedClassDependencies">
+ <string>IBProxyObject</string>
+ <string>IBUITableView</string>
+ </array>
+ <array key="IBDocument.PluginDependencies">
+ <string>com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ </array>
+ <object class="NSMutableDictionary" key="IBDocument.Metadata">
+ <string key="NS.key.0">PluginDependencyRecalculationVersion</string>
+ <integer value="1" key="NS.object.0"/>
+ </object>
+ <array class="NSMutableArray" key="IBDocument.RootObjects" id="1000">
+ <object class="IBProxyObject" id="841351856">
+ <string key="IBProxiedObjectIdentifier">IBFilesOwner</string>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ <object class="IBProxyObject" id="371349661">
+ <string key="IBProxiedObjectIdentifier">IBFirstResponder</string>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ </object>
+ <object class="IBUITableView" id="709618507">
+ <reference key="NSNextResponder"/>
+ <int key="NSvFlags">274</int>
+ <string key="NSFrame">{{0, 20}, {320, 460}}</string>
+ <reference key="NSSuperview"/>
+ <reference key="NSWindow"/>
+ <object class="NSColor" key="IBUIBackgroundColor">
+ <int key="NSColorSpace">3</int>
+ <bytes key="NSWhite">MQA</bytes>
+ </object>
+ <bool key="IBUIClipsSubviews">YES</bool>
+ <object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <bool key="IBUIAlwaysBounceVertical">YES</bool>
+ <int key="IBUISeparatorStyle">1</int>
+ <int key="IBUISectionIndexMinimumDisplayRowCount">0</int>
+ <bool key="IBUIShowsSelectionImmediatelyOnTouchBegin">YES</bool>
+ <float key="IBUIRowHeight">44</float>
+ <float key="IBUISectionHeaderHeight">22</float>
+ <float key="IBUISectionFooterHeight">22</float>
+ </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="841351856"/>
+ <reference key="destination" ref="709618507"/>
+ </object>
+ <int key="connectionID">3</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">dataSource</string>
+ <reference key="source" ref="709618507"/>
+ <reference key="destination" ref="841351856"/>
+ </object>
+ <int key="connectionID">4</int>
+ </object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchOutletConnection" key="connection">
+ <string key="label">delegate</string>
+ <reference key="source" ref="709618507"/>
+ <reference key="destination" ref="841351856"/>
+ </object>
+ <int key="connectionID">5</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="841351856"/>
+ <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="371349661"/>
+ <reference key="parent" ref="0"/>
+ </object>
+ <object class="IBObjectRecord">
+ <int key="objectID">2</int>
+ <reference key="object" ref="709618507"/>
+ <reference key="parent" ref="0"/>
+ </object>
+ </array>
+ </object>
+ <dictionary class="NSMutableDictionary" key="flattenedProperties">
+ <string key="-1.CustomClassName">MasterViewController</string>
+ <string key="-1.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="-2.CustomClassName">UIResponder</string>
+ <string key="-2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="2.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ </dictionary>
+ <dictionary class="NSMutableDictionary" key="unlocalizedProperties"/>
+ <nil key="activeLocalization"/>
+ <dictionary class="NSMutableDictionary" key="localizations"/>
+ <nil key="sourceID"/>
+ <int key="maxID">5</int>
+ </object>
+ <object class="IBClassDescriber" key="IBDocument.Classes">
+ <array class="NSMutableArray" key="referencedPartialClassDescriptions">
+ <object class="IBPartialClassDescription">
+ <string key="className">MasterViewController</string>
+ <string key="superclassName">UITableViewController</string>
+ <object class="IBClassDescriptionSource" key="sourceIdentifier">
+ <string key="majorKey">IBProjectSource</string>
+ <string key="minorKey">./Classes/MasterViewController.h</string>
+ </object>
+ </object>
+ </array>
+ </object>
+ <int key="IBDocument.localizationMode">0</int>
+ <string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.iPhoneOS</string>
+ <real value="1296" key="NS.object.0"/>
+ </object>
+ <object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
+ <string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string>
+ <real value="4200" key="NS.object.0"/>
+ </object>
+ <bool key="IBDocument.PluginDeclaredDependenciesTrackSystemTargetVersion">YES</bool>
+ <int key="IBDocument.defaultPropertyAccessControl">3</int>
+ <string key="IBCocoaTouchPluginVersion">1179</string>
+ </data>
+</archive>
View
BIN  pblasucci/WalletSized/Resources/Default-568h@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
124 pblasucci/WalletSized/WalletSized.csproj
@@ -0,0 +1,124 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform>
+ <ProductVersion>12.0.0</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{25CBCB8F-0F42-4E18-BC8E-0890E2E28B7D}</ProjectGuid>
+ <ProjectTypeGuids>{6BC8ED88-2882-458C-8E55-DFD12B67127B};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+ <OutputType>Exe</OutputType>
+ <RootNamespace>WalletSized</RootNamespace>
+ <IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
+ <AssemblyName>WalletSized</AssemblyName>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhoneSimulator' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\iPhoneSimulator\Debug</OutputPath>
+ <DefineConstants>DEBUG;__MOBILE__;__IOS__;</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>false</ConsolePause>
+ <MtouchLink>None</MtouchLink>
+ <CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
+ <MtouchDebug>true</MtouchDebug>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
+ <DebugType>full</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\iPhoneSimulator\Release</OutputPath>
+ <DefineConstants>__MOBILE__;__IOS__;</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <MtouchLink>None</MtouchLink>
+ <ConsolePause>false</ConsolePause>
+ <CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhone' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\iPhone\Debug</OutputPath>
+ <DefineConstants>DEBUG;__MOBILE__;__IOS__;</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>false</ConsolePause>
+ <CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
+ <MtouchDebug>true</MtouchDebug>
+ <CodesignKey>iPhone Developer</CodesignKey>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
+ <DebugType>full</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\iPhone\Release</OutputPath>
+ <DefineConstants>__MOBILE__;__IOS__;</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
+ <ConsolePause>false</ConsolePause>
+ <CodesignKey>iPhone Developer</CodesignKey>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Ad-Hoc|iPhone' ">
+ <DebugType>full</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\iPhone\Ad-Hoc</OutputPath>
+ <DefineConstants>__MOBILE__;__IOS__;</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>false</ConsolePause>
+ <CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
+ <BuildIpa>true</BuildIpa>
+ <CodesignProvision>Automatic:AdHoc</CodesignProvision>
+ <CodesignKey>iPhone Distribution</CodesignKey>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'AppStore|iPhone' ">
+ <DebugType>full</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\iPhone\AppStore</OutputPath>
+ <DefineConstants>__MOBILE__;__IOS__;</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ <ConsolePause>false</ConsolePause>
+ <CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
+ <CodesignProvision>Automatic:AppStore</CodesignProvision>
+ <CodesignKey>iPhone Distribution</CodesignKey>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Xml" />
+ <Reference Include="System.Core" />
+ <Reference Include="monotouch" />
+ </ItemGroup>
+ <ItemGroup>
+ <BundleResource Include="Resources\Default-568h%402x.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="Info.plist" />
+ <None Include="Entitlements.plist" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Main.cs" />
+ <Compile Include="AppDelegate.cs" />
+ <Compile Include="MasterViewController.cs" />
+ <Compile Include="MasterViewController.designer.cs">
+ <DependentUpon>MasterViewController.cs</DependentUpon>
+ </Compile>
+ <Compile Include="DetailViewController.cs" />
+ <Compile Include="DetailViewController.designer.cs">
+ <DependentUpon>DetailViewController.cs</DependentUpon>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <InterfaceDefinition Include="MasterViewController.xib" />
+ <InterfaceDefinition Include="DetailViewController.xib" />
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+ <ItemGroup>
+ <ProjectReference Include="..\WalletSized.Core\WalletSized.Core.fsproj">
+ <Project>{53AFDF04-58BC-4F73-80CF-E23A8CC92719}</Project>
+ <Name>WalletSized.Core</Name>
+ </ProjectReference>
+ </ItemGroup>
+</Project>
Please sign in to comment.
Something went wrong with that request. Please try again.