Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

cosmetic changes

  • Loading branch information...
commit 98a4f630b046b1de085c2e3ef2b948eced9a932f 1 parent 31cb5e2
@royclarkson royclarkson authored
View
1  Greenhouse/GHProfileMainViewController.h
@@ -30,6 +30,7 @@
@property (nonatomic, strong) IBOutlet UILabel *labelDisplayName;
@property (nonatomic, strong) IBOutlet GHTwitterConnectViewController *twitterConnectViewController;
+- (IBAction)actionViewGreenhouse:(id)sender;
- (IBAction)actionSignOut:(id)sender;
- (IBAction)actionConnectTwitter:(id)sender;
- (IBAction)actionRefresh:(id)sender;
View
24 Greenhouse/GHProfileMainViewController.m
@@ -45,6 +45,17 @@ @implementation GHProfileMainViewController
#pragma mark -
#pragma mark Public Instance methods
+- (IBAction)actionViewGreenhouse:(id)sender
+{
+ UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:nil
+ message:@"Exit and view web site?"
+ delegate:self
+ cancelButtonTitle:@"Cancel"
+ otherButtonTitles:@"OK", nil];
+ alertView.tag = 1;
+ [alertView show];
+}
+
- (IBAction)actionSignOut:(id)sender
{
UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:nil
@@ -52,6 +63,7 @@ - (IBAction)actionSignOut:(id)sender
delegate:self
cancelButtonTitle:@"Cancel"
otherButtonTitles:@"OK", nil];
+ alertView.tag = 2;
[alertView show];
}
@@ -70,6 +82,11 @@ - (IBAction)actionRefresh:(id)sender
#pragma mark -
#pragma mark Private Instance methods
+- (void)openGreenhouse
+{
+ [[UIApplication sharedApplication] openURL:[GHConnectionSettings urlWithFormat:@"/settings"]];
+}
+
- (void)signOut
{
[GHAuthController deleteAccessGrant];
@@ -98,7 +115,12 @@ - (void)fetchProfileDidFailWithError:(NSError *)error
- (void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex
{
- if (buttonIndex == 1)
+ if (alertView.tag == 1 && buttonIndex == 1)
+ {
+ [self openGreenhouse];
+ }
+
+ if (alertView.tag == 2 && buttonIndex == 1)
{
[self signOut];
}
View
2  Greenhouse/GHVenueDetailsViewController.m
@@ -45,7 +45,7 @@ @implementation GHVenueDetailsViewController
- (IBAction)actionGetDirections:(id)sender
{
self.alertView = [[UIAlertView alloc] initWithTitle:nil
- message:@"Exit and view in Google Maps?"
+ message:@"Exit and view maps?"
delegate:self
cancelButtonTitle:@"Cancel"
otherButtonTitles:@"OK", nil];
View
273 Greenhouse/en.lproj/GHAuthorizeViewController.xib
@@ -42,7 +42,6 @@
<int key="NSvFlags">288</int>
<string key="NSFrameSize">{320, 100}</string>
<reference key="NSSuperview" ref="191373211"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="349538651"/>
<bool key="IBUIUserInteractionEnabled">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
@@ -56,7 +55,6 @@
<int key="NSvFlags">266</int>
<string key="NSFrame">{{40, 260}, {240, 44}}</string>
<reference key="NSSuperview" ref="191373211"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="324728499"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIOpaque">NO</bool>
@@ -92,7 +90,6 @@
<int key="NSvFlags">266</int>
<string key="NSFrame">{{40, 318}, {240, 44}}</string>
<reference key="NSSuperview" ref="191373211"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="895353669"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIOpaque">NO</bool>
@@ -115,7 +112,6 @@
<int key="NSvFlags">264</int>
<string key="NSFrame">{{85, 405}, {150, 35}}</string>
<reference key="NSSuperview" ref="191373211"/>
- <reference key="NSWindow"/>
<bool key="IBUIUserInteractionEnabled">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
<object class="NSCustomResource" key="IBUIImage">
@@ -126,7 +122,6 @@
</array>
<string key="NSFrame">{{0, 20}, {320, 460}}</string>
<reference key="NSSuperview"/>
- <reference key="NSWindow"/>
<reference key="NSNextKeyView" ref="771868175"/>
<reference key="IBUIBackgroundColor" ref="338006581"/>
<object class="IBUISimulatedStatusBarMetrics" key="IBUISimulatedStatusBarMetrics"/>
@@ -296,273 +291,7 @@
<nil key="sourceID"/>
<int key="maxID">22</int>
</object>
- <object class="IBClassDescriber" key="IBDocument.Classes">
- <array class="NSMutableArray" key="referencedPartialClassDescriptions">
- <object class="IBPartialClassDescription">
- <string key="className">GHAuthorizeViewController</string>
- <string key="superclassName">UIViewController</string>
- <dictionary class="NSMutableDictionary" key="actions">
- <string key="actionJoinNow:">id</string>
- <string key="actionSignIn:">id</string>
- </dictionary>
- <dictionary class="NSMutableDictionary" key="actionInfosByName">
- <object class="IBActionInfo" key="actionJoinNow:">
- <string key="name">actionJoinNow:</string>
- <string key="candidateClassName">id</string>
- </object>
- <object class="IBActionInfo" key="actionSignIn:">
- <string key="name">actionSignIn:</string>
- <string key="candidateClassName">id</string>
- </object>
- </dictionary>
- <dictionary class="NSMutableDictionary" key="outlets">
- <string key="joinNowViewController">GHJoinNowViewController</string>
- <string key="signInViewController">GHSignInViewController</string>
- </dictionary>
- <dictionary class="NSMutableDictionary" key="toOneOutletInfosByName">
- <object class="IBToOneOutletInfo" key="joinNowViewController">
- <string key="name">joinNowViewController</string>
- <string key="candidateClassName">GHJoinNowViewController</string>
- </object>
- <object class="IBToOneOutletInfo" key="signInViewController">
- <string key="name">signInViewController</string>
- <string key="candidateClassName">GHSignInViewController</string>
- </object>
- </dictionary>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBProjectSource</string>
- <string key="minorKey">./Classes/GHAuthorizeViewController.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">GHFormTextFieldCell</string>
- <string key="superclassName">UITableViewCell</string>
- <dictionary class="NSMutableDictionary" key="outlets">
- <string key="formLabel">UILabel</string>
- <string key="formTextField">UITextField</string>
- </dictionary>
- <dictionary class="NSMutableDictionary" key="toOneOutletInfosByName">
- <object class="IBToOneOutletInfo" key="formLabel">
- <string key="name">formLabel</string>
- <string key="candidateClassName">UILabel</string>
- </object>
- <object class="IBToOneOutletInfo" key="formTextField">
- <string key="name">formTextField</string>
- <string key="candidateClassName">UITextField</string>
- </object>
- </dictionary>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBProjectSource</string>
- <string key="minorKey">./Classes/GHFormTextFieldCell.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">GHJoinNowViewController</string>
- <string key="superclassName">UIViewController</string>
- <dictionary class="NSMutableDictionary" key="actions">
- <string key="actionBirthdayValueChanged:">id</string>
- <string key="actionCancel:">id</string>
- <string key="actionDone:">id</string>
- <string key="actionNext:">id</string>
- <string key="actionPrevious:">id</string>
- <string key="actionSubmit:">id</string>
- </dictionary>
- <dictionary class="NSMutableDictionary" key="actionInfosByName">
- <object class="IBActionInfo" key="actionBirthdayValueChanged:">
- <string key="name">actionBirthdayValueChanged:</string>
- <string key="candidateClassName">id</string>
- </object>
- <object class="IBActionInfo" key="actionCancel:">
- <string key="name">actionCancel:</string>
- <string key="candidateClassName">id</string>
- </object>
- <object class="IBActionInfo" key="actionDone:">
- <string key="name">actionDone:</string>
- <string key="candidateClassName">id</string>
- </object>
- <object class="IBActionInfo" key="actionNext:">
- <string key="name">actionNext:</string>
- <string key="candidateClassName">id</string>
- </object>
- <object class="IBActionInfo" key="actionPrevious:">
- <string key="name">actionPrevious:</string>
- <string key="candidateClassName">id</string>
- </object>
- <object class="IBActionInfo" key="actionSubmit:">
- <string key="name">actionSubmit:</string>
- <string key="candidateClassName">id</string>
- </object>
- </dictionary>
- <dictionary class="NSMutableDictionary" key="outlets">
- <string key="birthdayCell">GHFormTextFieldCell</string>
- <string key="birthdayPickerView">UIDatePicker</string>
- <string key="birthdayTextField">UITextField</string>
- <string key="confirmEmailCell">GHFormTextFieldCell</string>
- <string key="confirmEmailTextField">UITextField</string>
- <string key="containerView">UIView</string>
- <string key="emailCell">GHFormTextFieldCell</string>
- <string key="emailTextField">UITextField</string>
- <string key="firstNameCell">GHFormTextFieldCell</string>
- <string key="firstNameTextField">UITextField</string>
- <string key="formToolbar">UIToolbar</string>
- <string key="genderCell">GHFormTextFieldCell</string>
- <string key="genderPickerView">UIPickerView</string>
- <string key="genderTextField">UITextField</string>
- <string key="lastNameCell">GHFormTextFieldCell</string>
- <string key="lastNameTextField">UITextField</string>
- <string key="passwordCell">GHFormTextFieldCell</string>
- <string key="passwordTextField">UITextField</string>
- <string key="signUpForm">UITableView</string>
- </dictionary>
- <dictionary class="NSMutableDictionary" key="toOneOutletInfosByName">
- <object class="IBToOneOutletInfo" key="birthdayCell">
- <string key="name">birthdayCell</string>
- <string key="candidateClassName">GHFormTextFieldCell</string>
- </object>
- <object class="IBToOneOutletInfo" key="birthdayPickerView">
- <string key="name">birthdayPickerView</string>
- <string key="candidateClassName">UIDatePicker</string>
- </object>
- <object class="IBToOneOutletInfo" key="birthdayTextField">
- <string key="name">birthdayTextField</string>
- <string key="candidateClassName">UITextField</string>
- </object>
- <object class="IBToOneOutletInfo" key="confirmEmailCell">
- <string key="name">confirmEmailCell</string>
- <string key="candidateClassName">GHFormTextFieldCell</string>
- </object>
- <object class="IBToOneOutletInfo" key="confirmEmailTextField">
- <string key="name">confirmEmailTextField</string>
- <string key="candidateClassName">UITextField</string>
- </object>
- <object class="IBToOneOutletInfo" key="containerView">
- <string key="name">containerView</string>
- <string key="candidateClassName">UIView</string>
- </object>
- <object class="IBToOneOutletInfo" key="emailCell">
- <string key="name">emailCell</string>
- <string key="candidateClassName">GHFormTextFieldCell</string>
- </object>
- <object class="IBToOneOutletInfo" key="emailTextField">
- <string key="name">emailTextField</string>
- <string key="candidateClassName">UITextField</string>
- </object>
- <object class="IBToOneOutletInfo" key="firstNameCell">
- <string key="name">firstNameCell</string>
- <string key="candidateClassName">GHFormTextFieldCell</string>
- </object>
- <object class="IBToOneOutletInfo" key="firstNameTextField">
- <string key="name">firstNameTextField</string>
- <string key="candidateClassName">UITextField</string>
- </object>
- <object class="IBToOneOutletInfo" key="formToolbar">
- <string key="name">formToolbar</string>
- <string key="candidateClassName">UIToolbar</string>
- </object>
- <object class="IBToOneOutletInfo" key="genderCell">
- <string key="name">genderCell</string>
- <string key="candidateClassName">GHFormTextFieldCell</string>
- </object>
- <object class="IBToOneOutletInfo" key="genderPickerView">
- <string key="name">genderPickerView</string>
- <string key="candidateClassName">UIPickerView</string>
- </object>
- <object class="IBToOneOutletInfo" key="genderTextField">
- <string key="name">genderTextField</string>
- <string key="candidateClassName">UITextField</string>
- </object>
- <object class="IBToOneOutletInfo" key="lastNameCell">
- <string key="name">lastNameCell</string>
- <string key="candidateClassName">GHFormTextFieldCell</string>
- </object>
- <object class="IBToOneOutletInfo" key="lastNameTextField">
- <string key="name">lastNameTextField</string>
- <string key="candidateClassName">UITextField</string>
- </object>
- <object class="IBToOneOutletInfo" key="passwordCell">
- <string key="name">passwordCell</string>
- <string key="candidateClassName">GHFormTextFieldCell</string>
- </object>
- <object class="IBToOneOutletInfo" key="passwordTextField">
- <string key="name">passwordTextField</string>
- <string key="candidateClassName">UITextField</string>
- </object>
- <object class="IBToOneOutletInfo" key="signUpForm">
- <string key="name">signUpForm</string>
- <string key="candidateClassName">UITableView</string>
- </object>
- </dictionary>
- <object class="NSMutableDictionary" key="toManyOutletInfosByName">
- <string key="NS.key.0">formTextFields</string>
- <object class="IBToManyOutletInfo" key="NS.object.0">
- <string key="name">formTextFields</string>
- <string key="candidateClassName">UITextField</string>
- <string key="collectionClassName">NSArray</string>
- </object>
- </object>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBProjectSource</string>
- <string key="minorKey">./Classes/GHJoinNowViewController.h</string>
- </object>
- </object>
- <object class="IBPartialClassDescription">
- <string key="className">GHSignInViewController</string>
- <string key="superclassName">UIViewController</string>
- <dictionary class="NSMutableDictionary" key="actions">
- <string key="actionCancel:">id</string>
- <string key="actionSubmit:">id</string>
- </dictionary>
- <dictionary class="NSMutableDictionary" key="actionInfosByName">
- <object class="IBActionInfo" key="actionCancel:">
- <string key="name">actionCancel:</string>
- <string key="candidateClassName">id</string>
- </object>
- <object class="IBActionInfo" key="actionSubmit:">
- <string key="name">actionSubmit:</string>
- <string key="candidateClassName">id</string>
- </object>
- </dictionary>
- <dictionary class="NSMutableDictionary" key="outlets">
- <string key="emailCell">UITableViewCell</string>
- <string key="emailTextField">UITextField</string>
- <string key="logoImage">UIImageView</string>
- <string key="passwordCell">UITableViewCell</string>
- <string key="passwordTextField">UITextField</string>
- <string key="signInForm">UITableView</string>
- </dictionary>
- <dictionary class="NSMutableDictionary" key="toOneOutletInfosByName">
- <object class="IBToOneOutletInfo" key="emailCell">
- <string key="name">emailCell</string>
- <string key="candidateClassName">UITableViewCell</string>
- </object>
- <object class="IBToOneOutletInfo" key="emailTextField">
- <string key="name">emailTextField</string>
- <string key="candidateClassName">UITextField</string>
- </object>
- <object class="IBToOneOutletInfo" key="logoImage">
- <string key="name">logoImage</string>
- <string key="candidateClassName">UIImageView</string>
- </object>
- <object class="IBToOneOutletInfo" key="passwordCell">
- <string key="name">passwordCell</string>
- <string key="candidateClassName">UITableViewCell</string>
- </object>
- <object class="IBToOneOutletInfo" key="passwordTextField">
- <string key="name">passwordTextField</string>
- <string key="candidateClassName">UITextField</string>
- </object>
- <object class="IBToOneOutletInfo" key="signInForm">
- <string key="name">signInForm</string>
- <string key="candidateClassName">UITableView</string>
- </object>
- </dictionary>
- <object class="IBClassDescriptionSource" key="sourceIdentifier">
- <string key="majorKey">IBProjectSource</string>
- <string key="minorKey">./Classes/GHSignInViewController.h</string>
- </object>
- </object>
- </array>
- </object>
+ <object class="IBClassDescriber" key="IBDocument.Classes"/>
<int key="IBDocument.localizationMode">0</int>
<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaTouchFramework</string>
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
View
55 Greenhouse/en.lproj/GHProfileMainViewController.xib
@@ -79,7 +79,7 @@
<string key="NSFrame">{{84, 129}, {152, 21}}</string>
<reference key="NSSuperview" ref="191373211"/>
<reference key="NSWindow"/>
- <reference key="NSNextKeyView" ref="349739317"/>
+ <reference key="NSNextKeyView" ref="650928317"/>
<bool key="IBUIOpaque">NO</bool>
<bool key="IBUIClipsSubviews">YES</bool>
<int key="IBUIContentMode">7</int>
@@ -111,7 +111,6 @@
<string key="NSFrame">{{40, 318}, {240, 44}}</string>
<reference key="NSSuperview" ref="191373211"/>
<reference key="NSWindow"/>
- <reference key="NSNextKeyView"/>
<string key="NSReuseIdentifierKey">_NS:9</string>
<bool key="IBUIOpaque">NO</bool>
<string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
@@ -127,20 +126,43 @@
<int key="NSColorSpace">1</int>
<bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
</object>
- <object class="NSColor" key="IBUINormalTitleShadowColor">
+ <object class="NSColor" key="IBUINormalTitleShadowColor" id="641912199">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MC41AA</bytes>
</object>
- <object class="IBUIFontDescription" key="IBUIFontDescription">
+ <object class="IBUIFontDescription" key="IBUIFontDescription" id="515815109">
<int key="type">2</int>
<double key="pointSize">15</double>
</object>
- <object class="NSFont" key="IBUIFont">
+ <object class="NSFont" key="IBUIFont" id="542960728">
<string key="NSName">Helvetica-Bold</string>
<double key="NSSize">15</double>
<int key="NSfFlags">16</int>
</object>
</object>
+ <object class="IBUIButton" id="650928317">
+ <reference key="NSNextResponder" ref="191373211"/>
+ <int key="NSvFlags">266</int>
+ <string key="NSFrame">{{40, 260}, {240, 44}}</string>
+ <reference key="NSSuperview" ref="191373211"/>
+ <reference key="NSWindow"/>
+ <reference key="NSNextKeyView" ref="349739317"/>
+ <string key="NSReuseIdentifierKey">_NS:9</string>
+ <bool key="IBUIOpaque">NO</bool>
+ <string key="targetRuntimeIdentifier">IBCocoaTouchFramework</string>
+ <int key="IBUIContentHorizontalAlignment">0</int>
+ <int key="IBUIContentVerticalAlignment">0</int>
+ <int key="IBUIButtonType">1</int>
+ <string key="IBUINormalTitle">View Greenhouse Web Site</string>
+ <reference key="IBUIHighlightedTitleColor" ref="444737327"/>
+ <object class="NSColor" key="IBUINormalTitleColor">
+ <int key="NSColorSpace">1</int>
+ <bytes key="NSRGB">MC4xOTYwNzg0MzQ2IDAuMzA5ODAzOTMyOSAwLjUyMTU2ODY1NgA</bytes>
+ </object>
+ <reference key="IBUINormalTitleShadowColor" ref="641912199"/>
+ <reference key="IBUIFontDescription" ref="515815109"/>
+ <reference key="IBUIFont" ref="542960728"/>
+ </object>
</array>
<string key="NSFrame">{{0, 20}, {320, 411}}</string>
<reference key="NSSuperview"/>
@@ -204,6 +226,15 @@
</object>
<int key="connectionID">49</int>
</object>
+ <object class="IBConnectionRecord">
+ <object class="IBCocoaTouchEventConnection" key="connection">
+ <string key="label">actionViewGreenhouse:</string>
+ <reference key="source" ref="650928317"/>
+ <reference key="destination" ref="372490531"/>
+ <int key="IBEventType">7</int>
+ </object>
+ <int key="connectionID">57</int>
+ </object>
</array>
<object class="IBMutableOrderedSet" key="objectRecords">
<array key="orderedObjects">
@@ -220,6 +251,7 @@
<reference ref="937595474"/>
<reference ref="783632806"/>
<reference ref="349739317"/>
+ <reference ref="650928317"/>
</array>
<reference key="parent" ref="0"/>
</object>
@@ -280,6 +312,11 @@
<reference key="object" ref="780558054"/>
<reference key="parent" ref="0"/>
</object>
+ <object class="IBObjectRecord">
+ <int key="objectID">56</int>
+ <reference key="object" ref="650928317"/>
+ <reference key="parent" ref="191373211"/>
+ </object>
</array>
</object>
<dictionary class="NSMutableDictionary" key="flattenedProperties">
@@ -298,12 +335,13 @@
<string key="48.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
<string key="54.CustomClassName">GHTwitterConnectViewController</string>
<string key="54.IBPluginDependency">com.apple.InterfaceBuilder.IBCocoaTouchPlugin</string>
+ <string key="56.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">55</int>
+ <int key="maxID">57</int>
</object>
<object class="IBClassDescriber" key="IBDocument.Classes">
<array class="NSMutableArray" key="referencedPartialClassDescriptions">
@@ -322,6 +360,7 @@
<string key="actionConnectTwitter:">id</string>
<string key="actionRefresh:">id</string>
<string key="actionSignOut:">id</string>
+ <string key="actionViewGreenhouse:">id</string>
</dictionary>
<dictionary class="NSMutableDictionary" key="actionInfosByName">
<object class="IBActionInfo" key="actionConnectTwitter:">
@@ -336,6 +375,10 @@
<string key="name">actionSignOut:</string>
<string key="candidateClassName">id</string>
</object>
+ <object class="IBActionInfo" key="actionViewGreenhouse:">
+ <string key="name">actionViewGreenhouse:</string>
+ <string key="candidateClassName">id</string>
+ </object>
</dictionary>
<dictionary class="NSMutableDictionary" key="outlets">
<string key="labelDisplayName">UILabel</string>
Please sign in to comment.
Something went wrong with that request. Please try again.