Commit 79ca3578 authored by A. Wilcox's avatar A. Wilcox

iUI: ItemVC: Display Tags and Materials when tapped. Allow revision. etc.

parent 6f7371a3
......@@ -29,6 +29,7 @@
#include <Models/EtsyItem.h>
#include <Models/EtsySite.h>
#import "GANTracker.h"
#import "WTPrettyListViewController.h"
extern const char *site_names[3];
......@@ -2427,6 +2428,62 @@ extern const char *site_names[3];
[bridge release];
break;
}
case CELLTAG_TAGS:
{
EtsyItem *etsy = static_cast<EtsyItem *>(item);
NSMutableArray *tags;
if((tags = [changedKeys objectForKey:kItemPropertyTags]) == nil && etsy != nil)
{
tags = [[self tagsForEtsyItem:etsy] mutableCopy];
[changedKeys setObject:tags forKey:kItemPropertyTags];
[tags release];
}
WTPrettyListViewController *tagList = [[WTPrettyListViewController alloc] initWithList:tags];
tagList.editing = self.isEditing;
if(self.isEditing)
{
tagList.maxItems = 13;
tagList.objectName = @"Tag";
tagList.title = @"Listing Tags";
}
[self.navigationController pushViewController:tagList animated:YES];
[tagList release];
break;
}
case CELLTAG_MATERIALS:
{
EtsyItem *etsy = static_cast<EtsyItem *>(item);
NSMutableArray *materials;
if((materials = [changedKeys objectForKey:kItemPropertyMaterials]) == nil && etsy != nil)
{
materials = [[self materialsForEtsyItem:etsy] mutableCopy];
[changedKeys setObject:materials forKey:kItemPropertyMaterials];
[materials release];
}
WTPrettyListViewController *materialList = [[WTPrettyListViewController alloc] initWithList:materials];
materialList.editing = self.isEditing;
if(self.isEditing)
{
materialList.maxItems = 13;
materialList.objectName = @"Material";
materialList.title = @"Materials";
}
[self.navigationController pushViewController:materialList animated:YES];
[materialList release];
break;
}
}
switch (indexPath.section)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment