Skip to content

Commit

Permalink
[#52603957] detail/edit view updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Singer committed Jul 14, 2013
1 parent c781180 commit eeb98ac
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 39 deletions.
1 change: 1 addition & 0 deletions src/ArtAround/Classes/DataManagement/AAAPIManager.h
Expand Up @@ -28,6 +28,7 @@
- (void)submitFlagForSlug:(NSString*)slug withText:(NSString*)text target:(id)target callback:(SEL)callback failCallback:(SEL)failCallback;

- (NSArray *)categories;
- (NSArray *)commissioners;
- (NSArray *)neighborhoods;
- (NSArray *)titles;
- (NSArray *)artists;
Expand Down
4 changes: 4 additions & 0 deletions src/ArtAround/Classes/DataManagement/AAAPIManager.m
Expand Up @@ -156,6 +156,10 @@ - (NSArray *)categories
return categories;
}

- (NSArray *)commissioners
{
return [self arrayForSQL:"SELECT DISTINCT ZCOMMISSIONEDBY FROM ZART WHERE ZCOMMISSIONEDBY IS NOT NULL ORDER BY ZCOMMISSIONEDBY"];
}
- (NSArray *)neighborhoods
{
return [self arrayForSQL:"SELECT DISTINCT ZTITLE FROM ZNEIGHBORHOOD WHERE ZTITLE IS NOT NULL ORDER BY ZTITLE"];
Expand Down
Expand Up @@ -26,16 +26,17 @@

typedef enum _ArtDetailRow {
ArtDetailRowPhotos = 0,
ArtDetailRowTitle = 1,
ArtDetailRowArtist = 2,
ArtDetailRowYear = 3,
ArtDetailRowCategory = 4,
ArtDetailRowDescription = 5,
ArtDetailRowLocationType = 6,
ArtDetailRowLocationDescription = 7,
ArtDetailRowLocationMap = 8,
ArtDetailRowLink = 9,
ArtDetailRowCommissioned = 10
ArtDetailRowBuffer = 1,
ArtDetailRowTitle = 2,
ArtDetailRowArtist = 3,
ArtDetailRowYear = 4,
ArtDetailRowCategory = 5,
ArtDetailRowLink = 6,
ArtDetailRowCommissioned = 7,
ArtDetailRowLocationType = 8,
ArtDetailRowDescription = 9,
ArtDetailRowLocationDescription = 10,
ArtDetailRowLocationMap = 11
} ArtDetailRow;

@interface DetailTableControllerViewController : UITableViewController <UITextViewDelegate, UITextFieldDelegate, PhotoImageViewDelegate, UIActionSheetDelegate, UIImagePickerControllerDelegate, FlickrNameViewControllerDelegate, SearchTableViewDelegate, UIScrollViewDelegate, ArtLocationSelectionViewViewControllerDelegate, UIPickerViewDataSource, UIPickerViewDelegate, FlagViewControllerDelegate, UINavigationControllerDelegate, MKMapViewDelegate>
Expand Down

0 comments on commit eeb98ac

Please sign in to comment.