Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Auctions
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Wilcox Technologies
Auctions
Commits
c26bc962
Commit
c26bc962
authored
Jul 21, 2012
by
A. Wilcox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iUI: NewItemVC: Use tags/materials code from ItemVC, it's the same now.
parent
e81620d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
32 deletions
+6
-32
iPhone/MobileAuctions/MobileAuctions/Common/View Controllers/NewItemViewController.mm
...Auctions/Common/View Controllers/NewItemViewController.mm
+6
-32
No files found.
iPhone/MobileAuctions/MobileAuctions/Common/View Controllers/NewItemViewController.mm
View file @
c26bc962
...
...
@@ -128,7 +128,11 @@ extern const char *site_names[3];
[
changedKeys
setObject
:[
NSValue
valueWithPointer
:
shipping_services
]
forKey
:
kItemPropertyShipping
];
if
(
site
->
siteCode
()
==
SITE_ETSY
)
{
[
changedKeys
setObject
:[
NSNumber
numberWithInt
:
1
]
forKey
:
kItemPropertyType
];
[
changedKeys
setObject
:[
NSMutableArray
array
]
forKey
:
kItemPropertyTags
];
[
changedKeys
setObject
:[
NSMutableArray
array
]
forKey
:
kItemPropertyMaterials
];
}
else
[
changedKeys
setObject
:[
NSNumber
numberWithInt
:
0
]
forKey
:
kItemPropertyType
];
...
...
@@ -1287,6 +1291,8 @@ extern const char *site_names[3];
case
CELLTAG_CATEGORY
:
case
CELLTAG_CONDITION
:
case
CELLTAG_SHOPSECTION
:
case
CELLTAG_TAGS
:
case
CELLTAG_MATERIALS
:
{
[
super
tableView
:
tableView
didSelectRowAtIndexPath
:
indexPath
];
break
;
...
...
@@ -1414,38 +1420,6 @@ extern const char *site_names[3];
[
pickerController
release
];
break
;
}
case
CELLTAG_TAGS
:
{
assert
(
site
->
siteCode
()
==
SITE_ETSY
);
if
([
changedKeys
objectForKey
:
kItemPropertyTags
]
==
nil
)
[
changedKeys
setObject
:[
NSMutableArray
array
]
forKey
:
kItemPropertyTags
];
WTPrettyListViewController
*
tagList
=
[[
WTPrettyListViewController
alloc
]
initWithList
:[
changedKeys
objectForKey
:
kItemPropertyTags
]];
tagList
.
maxItems
=
13
;
tagList
.
objectName
=
@"Tag"
;
tagList
.
title
=
@"Listing Tags"
;
[
self
.
navigationController
pushViewController
:
tagList
animated
:
YES
];
[
tagList
release
];
break
;
}
case
CELLTAG_MATERIALS
:
{
assert
(
site
->
siteCode
()
==
SITE_ETSY
);
if
([
changedKeys
objectForKey
:
kItemPropertyMaterials
]
==
nil
)
[
changedKeys
setObject
:[
NSMutableArray
array
]
forKey
:
kItemPropertyMaterials
];
WTPrettyListViewController
*
materialList
=
[[
WTPrettyListViewController
alloc
]
initWithList
:[
changedKeys
objectForKey
:
kItemPropertyMaterials
]];
materialList
.
maxItems
=
13
;
materialList
.
objectName
=
@"Material"
;
materialList
.
title
=
@"Materials"
;
[
self
.
navigationController
pushViewController
:
materialList
animated
:
YES
];
[
materialList
release
];
break
;
}
}
switch
(
indexPath
.
section
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment