Skip to content

Commit

Permalink
Merge branch 'development/WMM2015'
Browse files Browse the repository at this point in the history
Conflicts:
	ObjectiveWMM/WMM/GeomagnetismHeader.h
	ObjectiveWMM/WMM/WMM.COF
	ObjectiveWMMTests/DeclinationTests.m
  • Loading branch information
stephent committed Jun 19, 2015
2 parents 4680cc1 + 0eb3982 commit 3997354
Show file tree
Hide file tree
Showing 66 changed files with 429 additions and 4,587 deletions.
19 changes: 0 additions & 19 deletions LICENSE

This file was deleted.

538 changes: 263 additions & 275 deletions ObjectiveWMM.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,15 @@
<key>orderHint</key>
<integer>0</integer>
</dict>
<key>ObjectiveWMMTests.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>DC846C25169F66C10074A10B</key>
<key>DC71D8D0197E067F00C665CB</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>DC846C8C169F81590074A10B</key>
<key>DC71D8DB197E067F00C665CB</key>
<dict>
<key>primary</key>
<true/>
Expand Down
15 changes: 0 additions & 15 deletions ObjectiveWMM/CCAppDelegate.h

This file was deleted.

46 changes: 0 additions & 46 deletions ObjectiveWMM/CCAppDelegate.m

This file was deleted.

8 changes: 6 additions & 2 deletions ObjectiveWMM/CCMagneticModel.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

NSString *fn = [NSString stringWithCString:fileName encoding:NSUTF8StringEncoding];
NSString *fe = [NSString stringWithCString:fileExtension encoding:NSUTF8StringEncoding];

NSString *path = [[NSBundle mainBundle] pathForResource:fn ofType:fe];

return [path cStringUsingEncoding:NSUTF8StringEncoding];
Expand Down Expand Up @@ -63,7 +64,10 @@ - (id) init {
int epochs = 1;
int numTerms, nMax = 0;

char *filename = (char *) getPathForResource("WMM", "COF");
NSBundle *bundle = [NSBundle bundleWithIdentifier:@"com.crookneckconsulting.ObjectiveWMM"];
NSString *path = [bundle pathForResource:@"WMM" ofType:@"COF"];

char *filename = (char *) [path cStringUsingEncoding:NSUTF8StringEncoding];

MAG_robustReadMagModels(filename, &_magneticModels, epochs);

Expand Down Expand Up @@ -197,7 +201,7 @@ - (NSDate *) dateForYear:(NSInteger)year month:(NSInteger)month day:(NSInteger)d
[comps setDay:day];
[comps setMonth:month];
[comps setYear:year];
NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar];
NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSCalendarIdentifierGregorian];
NSDate *date = [gregorian dateFromComponents:comps];

return date;
Expand Down
13 changes: 0 additions & 13 deletions ObjectiveWMM/CCViewController.h

This file was deleted.

36 changes: 0 additions & 36 deletions ObjectiveWMM/CCViewController.m

This file was deleted.

Binary file removed ObjectiveWMM/[email protected]
Binary file not shown.
Binary file removed ObjectiveWMM/Default.png
Binary file not shown.
Binary file removed ObjectiveWMM/[email protected]
Binary file not shown.
1 change: 0 additions & 1 deletion ObjectiveWMM/GHUnitIOS.framework/GHUnitIOS

This file was deleted.

1 change: 0 additions & 1 deletion ObjectiveWMM/GHUnitIOS.framework/Headers

This file was deleted.

1 change: 0 additions & 1 deletion ObjectiveWMM/GHUnitIOS.framework/Resources

This file was deleted.

Binary file not shown.
Loading

0 comments on commit 3997354

Please sign in to comment.