Permalink
Browse files

Added settings bundle for username and API token

  • Loading branch information...
1 parent b98189b commit 7b0a5758b9ddfa5fdf51eae53a311f157ec535c4 @dbloete dbloete committed Mar 28, 2009
View
3 Classes/AppConstants.h
@@ -0,0 +1,3 @@
+// settings
+#define kUsernameDefaultsKey @"username"
+#define kTokenDefaultsKey @"token"
View
55 Settings.bundle/Root.plist
@@ -0,0 +1,55 @@
+<?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>Title</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>StringsTable</key>
+ <string>Root</string>
+ <key>PreferenceSpecifiers</key>
+ <array>
+ <dict>
+ <key>Type</key>
+ <string>PSGroupSpecifier</string>
+ <key>Title</key>
+ <string>Authentication</string>
+ </dict>
+ <dict>
+ <key>Type</key>
+ <string>PSTextFieldSpecifier</string>
+ <key>Title</key>
+ <string>Username</string>
+ <key>Key</key>
+ <string>username</string>
+ <key>DefaultValue</key>
+ <string></string>
+ <key>IsSecure</key>
+ <false/>
+ <key>KeyboardType</key>
+ <string>Alphabet</string>
+ <key>AutocapitalizationType</key>
+ <string>None</string>
+ <key>AutocorrectionType</key>
+ <string>No</string>
+ </dict>
+ <dict>
+ <key>Type</key>
+ <string>PSTextFieldSpecifier</string>
+ <key>Title</key>
+ <string>API Token</string>
+ <key>Key</key>
+ <string>token</string>
+ <key>DefaultValue</key>
+ <string></string>
+ <key>IsSecure</key>
+ <false/>
+ <key>KeyboardType</key>
+ <string>Alphabet</string>
+ <key>AutocapitalizationType</key>
+ <string>None</string>
+ <key>AutocorrectionType</key>
+ <string>No</string>
+ </dict>
+ </array>
+</dict>
+</plist>
View
BIN Settings.bundle/en.lproj/Root.strings
Binary file not shown.
View
6 iOctocat.xcodeproj/project.pbxproj
@@ -15,6 +15,7 @@
28C286E10D94DF7D0034E888 /* RootViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 28C286E00D94DF7D0034E888 /* RootViewController.m */; };
6F1DC3510F7E4E6A00FCD26D /* iTunesArtWork.png in Resources */ = {isa = PBXBuildFile; fileRef = 6F1DC3500F7E4E6A00FCD26D /* iTunesArtWork.png */; };
6F1DC36F0F7E4F5200FCD26D /* SystemConfiguration.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6F1DC36E0F7E4F5200FCD26D /* SystemConfiguration.framework */; };
+ 6F1DC39B0F7E52F000FCD26D /* Settings.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 6F1DC39A0F7E52F000FCD26D /* Settings.bundle */; };
6FB7FEA40F7E2C4D00E8D702 /* Icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 6FB7FEA20F7E2C4D00E8D702 /* Icon.png */; };
6FB7FEAB0F7E2C8700E8D702 /* MainWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 6FB7FEA90F7E2C8700E8D702 /* MainWindow.xib */; };
6FB7FEAC0F7E2C8700E8D702 /* RootViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 6FB7FEAA0F7E2C8700E8D702 /* RootViewController.xib */; };
@@ -35,6 +36,8 @@
29B97316FDCFA39411CA2CEA /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
6F1DC3500F7E4E6A00FCD26D /* iTunesArtWork.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = iTunesArtWork.png; path = Images/iTunesArtWork.png; sourceTree = "<group>"; };
6F1DC36E0F7E4F5200FCD26D /* SystemConfiguration.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SystemConfiguration.framework; path = System/Library/Frameworks/SystemConfiguration.framework; sourceTree = SDKROOT; };
+ 6F1DC39A0F7E52F000FCD26D /* Settings.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = Settings.bundle; sourceTree = "<group>"; };
+ 6F1DC3FC0F7E569F00FCD26D /* AppConstants.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppConstants.h; sourceTree = "<group>"; };
6FB7FEA20F7E2C4D00E8D702 /* Icon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = Icon.png; path = Images/Icon.png; sourceTree = "<group>"; };
6FB7FEA90F7E2C8700E8D702 /* MainWindow.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = MainWindow.xib; path = IBFiles/MainWindow.xib; sourceTree = "<group>"; };
6FB7FEAA0F7E2C8700E8D702 /* RootViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = RootViewController.xib; path = IBFiles/RootViewController.xib; sourceTree = "<group>"; };
@@ -61,6 +64,7 @@
080E96DDFE201D6D7F000001 /* Classes */ = {
isa = PBXGroup;
children = (
+ 6F1DC3FC0F7E569F00FCD26D /* AppConstants.h */,
28C286DF0D94DF7D0034E888 /* RootViewController.h */,
28C286E00D94DF7D0034E888 /* RootViewController.m */,
1D3623240D0F684500981E51 /* iOctocatAppDelegate.h */,
@@ -85,6 +89,7 @@
29B97317FDCFA39411CA2CEA /* Resources */,
29B97323FDCFA39411CA2CEA /* Frameworks */,
19C28FACFE9D520D11CA2CBB /* Products */,
+ 6F1DC39A0F7E52F000FCD26D /* Settings.bundle */,
);
comments = "Open Source iPhone app for the awesome GitHub.com";
name = CustomTemplate;
@@ -195,6 +200,7 @@
6FB7FEEC0F7E31AC00E8D702 /* Default.png in Resources */,
6FB7FEED0F7E31AC00E8D702 /* NoConnection.png in Resources */,
6F1DC3510F7E4E6A00FCD26D /* iTunesArtWork.png in Resources */,
+ 6F1DC39B0F7E52F000FCD26D /* Settings.bundle in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
View
9 main.m
@@ -1,13 +1,6 @@
-//
-// main.m
-// iOctocat
-//
-// Created by Dennis Blöte on 28.03.09.
-// Copyright neuland bremen GmbH 2009. All rights reserved.
-//
-
#import <UIKit/UIKit.h>
+
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];

0 comments on commit 7b0a575

Please sign in to comment.