Developer Area

Changeset 423

Show
Ignore:
Timestamp:
06/28/09 15:05:35 (5 years ago)
Author:
henri
Message:

Use pathForResource instead of looking for path directly

Location:
apps/iphone/my.tel/trunk/Classes
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • apps/iphone/my.tel/trunk/Classes/KeywordViewController.m

    r313 r423  
    277277        if (!parsedJson) { 
    278278                // We're loading the data statically (not from the network) 
    279                 self.validKeywordTypes = [NSMutableDictionary dictionaryWithContentsOfFile:[[[NSBundle mainBundle] resourcePath] 
    280                                                                                                                                                            stringByAppendingPathComponent:@"KeywordTypes.plist"]]; 
     279                self.validKeywordTypes = [NSMutableDictionary dictionaryWithContentsOfFile:[[NSBundle mainBundle] 
     280                                                                                                                                                                         pathForResource:@"KeywordTypes" ofType:@"plist"]]; 
    281281        } else { 
    282282                if ([[parsedJson valueForKey:@"success"] integerValue] == 1) { 
  • apps/iphone/my.tel/trunk/Classes/RecordViewController.m

    r313 r423  
    445445                // We're loading the data statically (not from the network) 
    446446                skeysDict = [NSMutableDictionary dictionaryWithContentsOfFile: 
    447                                          [[[NSBundle mainBundle] resourcePath] 
    448                                           stringByAppendingPathComponent:@"ServiceTypes.plist"]]; 
     447                                         [[NSBundle mainBundle] pathForResource:@"ServiceTypes" ofType:@"plist"]]; 
    449448        } else { 
    450449                // load from a json response, and reduce some of the string sizes 
     
    475474                // We're loading the data statically (not from the network) 
    476475                liDict = [NSMutableDictionary dictionaryWithContentsOfFile: 
    477                                   [[[NSBundle mainBundle] resourcePath] 
    478                                    stringByAppendingPathComponent:@"LocationIndicators.plist"]]; 
     476                                  [[NSBundle mainBundle] pathForResource:@"LocationIndicators" ofType:@"plist"]]; 
    479477        } else { 
    480478                // load from a json response 
Telnic
Search This Site
Partners
Neustar
ICANN
Main site | WHOIS | Sell .tel | FAQ | Archived Site | About Telnic | Contact Us