Created
December 14, 2009 23:55
-
-
Save ejknapp/256579 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Datasource array for table view | |
| - (void)createDataSourceArray { | |
| NSDictionary *credentials = [self.flakManager.settingsManager loginCredentials]; | |
| NSDictionary *loginDictionary = [[NSDictionary alloc] initWithObjectsAndKeys: | |
| @"Logged in as:", @"sectionTitle", | |
| [NSArray arrayWithObjects: | |
| [credentials objectForKey:@"currentLoggedInUserByName"], | |
| nil], @"rowArray", | |
| nil]; | |
| NSDictionary *hostDictionary = [[NSDictionary alloc] initWithObjectsAndKeys: | |
| @"Current Host:", @"sectionTitle", | |
| [NSArray arrayWithObjects: | |
| [self.flakManager.settingsManager currentHostURL], | |
| nil], @"rowArray", | |
| nil]; | |
| NSArray *dataArray = [[NSArray alloc] initWithObjects:loginDictionary, hostDictionary, nil]; | |
| self.dataSourceArray = dataArray; | |
| [dataArray release]; | |
| [loginDictionary release]; | |
| [hostDictionary release]; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment