Try the search, it's linked to some great forums

Monday, July 30, 2012

Panoramio - javascript example


Photo widget JavaScript version

Tuesday, July 17, 2012

County Viewer notes

This is some baseline info about my KML app;

KML Google code snippets;https://kml-samples.googlecode.com/svn/trunk/interactive/index.html
 
Shape files source - http://www2.census.gov/geo/tiger/KML/2010_Proto/2010county_dt/

 
US census website (great place for data) - http://www.census.gov/geo/www/

 

Monday, July 16, 2012

.sqlite' is not under version control

Apparently if the file is within the project directory, this error message can occur when adding a file to your project.

I just moved the files somewhere else, and then did the drag & drop.  Worked fine?!?!

Thursday, July 5, 2012

Creating a tableView Index

This implementation is from a tableView that is using coreData & fetchRequests as the model. It's necessary to implement the following dataSource delegate methods. Also there is a simple method in the table's data class which selects for 'first character'.

 in WordsTableViewController.m - implement the following delegate methods
#pragma mark - UITableViewDataSource indexList Methods
- (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView {
    return [self.fetchedResultsController sectionIndexTitles];
}
- (NSInteger)tableView:(UITableView *)tableView sectionForSectionIndexTitle:(NSString *)title atIndex:(NSInteger)index {
    return [self.fetchedResultsController sectionForSectionIndexTitle:title atIndex:index];
}

 in Items.m - this method uses the 1st character of each word as it's index
-(NSString *)firstChar {
    return [self.word substringToIndex:1U];
}

in WordTableViewController.m - And most importantly in the (void)setupFetchedResultsController method  the firstChar is used as the sort parameter.
    self.fetchedResultsController = [[NSFetchedResultsController alloc]
            initWithFetchRequest:request
            managedObjectContext:self.wordDictionary.managedObjectContext
            sectionNameKeyPath:@"firstChar"
            cacheName:nil];

ref: myDictionary by CPL