Changeset 258
- Timestamp:
- 03/09/09 17:00:08 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
apps/iphone/my.tel/trunk/Classes/RecordEditController.m
r257 r258 33 33 [theRecord release]; 34 34 if (!aRec) { // new 35 theRecord = [[NSMutableDictionary dictionaryWithCapacity:8] retain];36 35 barHeader.title = @"New Item"; 37 36 rValue.text = @""; 38 37 rLabel.text = @""; 39 38 rVisibility.on = TRUE; 40 [theRecord setObject:@"0" forKey:@"apiId"]; 41 [theRecord setObject:[VIPConnect sharedInstance].selectedDomain forKey:@"domainName"]; 42 [theRecord setObject:[NSArray array] forKey:@"profiles"]; 43 [theRecord setObject:[NSArray array] forKey:@"groups"]; 39 theRecord = [[NSMutableDictionary dictionaryWithObjectsAndKeys: 40 @"0", @"apiId", 41 [VIPConnect sharedInstance].selectedDomain, @"domainName", 42 [NSArray arrayWithObject:@"voice"], @"serviceKeys", 43 @"", @"label", 44 [NSArray array], @"locations", 45 [NSArray array], @"profiles", 46 [NSArray array], @"groups", 47 @"1", @"terminal", 48 nil] retain]; 44 49 } else { // edit 45 50 if (!aRec) { … … 59 64 [theRecord setObject:[NSArray arrayWithObject:@"ntn"] forKey:@"serviceKeys"]; 60 65 } else { 61 [theRecord setObject:[NSArray arrayWithObject:@" "] forKey:@"serviceKeys"];66 [theRecord setObject:[NSArray arrayWithObject:@"voice"] forKey:@"serviceKeys"]; 62 67 } 63 68 }








