aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPContentFilterManager.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-01-09 14:23:53 +0000
committerBibiko <bibiko@eva.mpg.de>2010-01-09 14:23:53 +0000
commit604efb07d3cbbc46e93148c2bebb9ae95dd1de5f (patch)
tree01716ce13fc0ce0c3a98e68bf5643d70299a8568 /Source/SPContentFilterManager.m
parent9004533ba1d84d670a77cbfc9eae401b66e9dd0e (diff)
downloadsequelpro-604efb07d3cbbc46e93148c2bebb9ae95dd1de5f.tar.gz
sequelpro-604efb07d3cbbc46e93148c2bebb9ae95dd1de5f.tar.bz2
sequelpro-604efb07d3cbbc46e93148c2bebb9ae95dd1de5f.zip
removed/refactored three instances of calling a method of untyped (id) objects
Diffstat (limited to 'Source/SPContentFilterManager.m')
-rw-r--r--Source/SPContentFilterManager.m8
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/SPContentFilterManager.m b/Source/SPContentFilterManager.m
index 5ef8695c..e1d7e389 100644
--- a/Source/SPContentFilterManager.m
+++ b/Source/SPContentFilterManager.m
@@ -424,9 +424,11 @@
- (void)tableView:(NSTableView *)aTableView setObjectValue:(id)anObject forTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex
{
- if([[aTableColumn identifier] isEqualToString:@"MenuLabel"] && [anObject length]) {
- [[contentFilters objectAtIndex:rowIndex] setObject:[anObject description] forKey:@"MenuLabel"];
- [contentFilterNameTextField setStringValue:[anObject description]];
+ if([[aTableColumn identifier] isEqualToString:@"MenuLabel"]) {
+ if([anObject isKindOfClass:[NSString class]] && [(NSString *)anObject length]) {
+ [[contentFilters objectAtIndex:rowIndex] setObject:anObject forKey:@"MenuLabel"];
+ [contentFilterNameTextField setStringValue:anObject];
+ }
}
[contentFilterTableView reloadData];