├── .gitignore ├── Flights.xcodeproj └── project.pbxproj ├── Flights ├── AppDelegate.h ├── AppDelegate.m ├── Assets.xcassets │ ├── AppIcon.appiconset │ │ ├── Contents.json │ │ ├── icon_128x128.png │ │ ├── icon_128x128@2x.png │ │ ├── icon_16x16.png │ │ ├── icon_16x16@2x.png │ │ ├── icon_256x256.png │ │ ├── icon_256x256@2x.png │ │ ├── icon_32x32.png │ │ ├── icon_32x32@2x.png │ │ ├── icon_512x512.png │ │ └── icon_512x512@2x.png │ ├── Contents.json │ └── airplane.imageset │ │ ├── Contents.json │ │ └── airplane.pdf ├── Base.lproj │ └── MainMenu.xib ├── Controllers │ ├── FLMainWindowController.h │ ├── FLMainWindowController.m │ ├── FLMainWindowController.xib │ ├── FLSearchBarController.h │ ├── FLSearchBarController.m │ └── FLSearchBarController.xib ├── Info.plist ├── PrivateHeaders │ └── FlightUtilities.h └── main.m ├── LICENSE ├── README.md ├── Releases └── flights_latest.zip └── Resources ├── Flights Icon.sketch └── screenshot.png /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | __MACOSX 3 | *.pbxuser 4 | !default.pbxuser 5 | *.mode1v3 6 | !default.mode1v3 7 | *.mode2v3 8 | !default.mode2v3 9 | *.perspectivev3 10 | !default.perspectivev3 11 | *.xcworkspace 12 | !default.xcworkspace 13 | xcuserdata 14 | profile 15 | *.moved-aside 16 | DerivedData 17 | .idea/ -------------------------------------------------------------------------------- /Flights.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | DDDDFBCB1CA60DE8004372ED /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = DDDDFBCA1CA60DE8004372ED /* AppDelegate.m */; }; 11 | DDDDFBCE1CA60DE8004372ED /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = DDDDFBCD1CA60DE8004372ED /* main.m */; }; 12 | DDDDFBD01CA60DE8004372ED /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = DDDDFBCF1CA60DE8004372ED /* Assets.xcassets */; }; 13 | DDDDFBD31CA60DE8004372ED /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = DDDDFBD11CA60DE8004372ED /* MainMenu.xib */; }; 14 | DDDDFBDB1CA60DEF004372ED /* FlightUtilities.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = DDDDFBDA1CA60DEF004372ED /* FlightUtilities.framework */; }; 15 | DDDDFBE31CA61325004372ED /* FLMainWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = DDDDFBE11CA61325004372ED /* FLMainWindowController.m */; }; 16 | DDDDFBE41CA61325004372ED /* FLMainWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = DDDDFBE21CA61325004372ED /* FLMainWindowController.xib */; }; 17 | DDDDFBEA1CA6162E004372ED /* FLSearchBarController.m in Sources */ = {isa = PBXBuildFile; fileRef = DDDDFBE81CA6162E004372ED /* FLSearchBarController.m */; }; 18 | DDDDFBEB1CA6162E004372ED /* FLSearchBarController.xib in Resources */ = {isa = PBXBuildFile; fileRef = DDDDFBE91CA6162E004372ED /* FLSearchBarController.xib */; }; 19 | /* End PBXBuildFile section */ 20 | 21 | /* Begin PBXFileReference section */ 22 | DDDDFBC61CA60DE8004372ED /* Flights.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Flights.app; sourceTree = BUILT_PRODUCTS_DIR; }; 23 | DDDDFBC91CA60DE8004372ED /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; 24 | DDDDFBCA1CA60DE8004372ED /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; 25 | DDDDFBCD1CA60DE8004372ED /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; 26 | DDDDFBCF1CA60DE8004372ED /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 27 | DDDDFBD21CA60DE8004372ED /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = ""; }; 28 | DDDDFBD41CA60DE8004372ED /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 29 | DDDDFBDA1CA60DEF004372ED /* FlightUtilities.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = FlightUtilities.framework; path = ../../../../../System/Library/PrivateFrameworks/FlightUtilities.framework; sourceTree = ""; }; 30 | DDDDFBDE1CA612EE004372ED /* FlightUtilities.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = FlightUtilities.h; path = PrivateHeaders/FlightUtilities.h; sourceTree = ""; }; 31 | DDDDFBE01CA61325004372ED /* FLMainWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = FLMainWindowController.h; path = Controllers/FLMainWindowController.h; sourceTree = ""; }; 32 | DDDDFBE11CA61325004372ED /* FLMainWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = FLMainWindowController.m; path = Controllers/FLMainWindowController.m; sourceTree = ""; }; 33 | DDDDFBE21CA61325004372ED /* FLMainWindowController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = FLMainWindowController.xib; path = Controllers/FLMainWindowController.xib; sourceTree = ""; }; 34 | DDDDFBE71CA6162E004372ED /* FLSearchBarController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = FLSearchBarController.h; path = Controllers/FLSearchBarController.h; sourceTree = ""; }; 35 | DDDDFBE81CA6162E004372ED /* FLSearchBarController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = FLSearchBarController.m; path = Controllers/FLSearchBarController.m; sourceTree = ""; }; 36 | DDDDFBE91CA6162E004372ED /* FLSearchBarController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = FLSearchBarController.xib; path = Controllers/FLSearchBarController.xib; sourceTree = ""; }; 37 | /* End PBXFileReference section */ 38 | 39 | /* Begin PBXFrameworksBuildPhase section */ 40 | DDDDFBC31CA60DE8004372ED /* Frameworks */ = { 41 | isa = PBXFrameworksBuildPhase; 42 | buildActionMask = 2147483647; 43 | files = ( 44 | DDDDFBDB1CA60DEF004372ED /* FlightUtilities.framework in Frameworks */, 45 | ); 46 | runOnlyForDeploymentPostprocessing = 0; 47 | }; 48 | /* End PBXFrameworksBuildPhase section */ 49 | 50 | /* Begin PBXGroup section */ 51 | DDDDFBBD1CA60DE8004372ED = { 52 | isa = PBXGroup; 53 | children = ( 54 | DDDDFBDA1CA60DEF004372ED /* FlightUtilities.framework */, 55 | DDDDFBC81CA60DE8004372ED /* Flights */, 56 | DDDDFBC71CA60DE8004372ED /* Products */, 57 | ); 58 | sourceTree = ""; 59 | }; 60 | DDDDFBC71CA60DE8004372ED /* Products */ = { 61 | isa = PBXGroup; 62 | children = ( 63 | DDDDFBC61CA60DE8004372ED /* Flights.app */, 64 | ); 65 | name = Products; 66 | sourceTree = ""; 67 | }; 68 | DDDDFBC81CA60DE8004372ED /* Flights */ = { 69 | isa = PBXGroup; 70 | children = ( 71 | DDDDFBE61CA6133A004372ED /* Bootstrap */, 72 | DDDDFBE51CA6132A004372ED /* Resources */, 73 | DDDDFBDF1CA6130D004372ED /* Controllers */, 74 | DDDDFBDD1CA612DE004372ED /* PrivateHeaders */, 75 | DDDDFBCC1CA60DE8004372ED /* Supporting Files */, 76 | ); 77 | path = Flights; 78 | sourceTree = ""; 79 | }; 80 | DDDDFBCC1CA60DE8004372ED /* Supporting Files */ = { 81 | isa = PBXGroup; 82 | children = ( 83 | DDDDFBCD1CA60DE8004372ED /* main.m */, 84 | ); 85 | name = "Supporting Files"; 86 | sourceTree = ""; 87 | }; 88 | DDDDFBDD1CA612DE004372ED /* PrivateHeaders */ = { 89 | isa = PBXGroup; 90 | children = ( 91 | DDDDFBDE1CA612EE004372ED /* FlightUtilities.h */, 92 | ); 93 | name = PrivateHeaders; 94 | sourceTree = ""; 95 | }; 96 | DDDDFBDF1CA6130D004372ED /* Controllers */ = { 97 | isa = PBXGroup; 98 | children = ( 99 | DDDDFBE01CA61325004372ED /* FLMainWindowController.h */, 100 | DDDDFBE11CA61325004372ED /* FLMainWindowController.m */, 101 | DDDDFBE71CA6162E004372ED /* FLSearchBarController.h */, 102 | DDDDFBE81CA6162E004372ED /* FLSearchBarController.m */, 103 | ); 104 | name = Controllers; 105 | sourceTree = ""; 106 | }; 107 | DDDDFBE51CA6132A004372ED /* Resources */ = { 108 | isa = PBXGroup; 109 | children = ( 110 | DDDDFBCF1CA60DE8004372ED /* Assets.xcassets */, 111 | DDDDFBD41CA60DE8004372ED /* Info.plist */, 112 | DDDDFBD11CA60DE8004372ED /* MainMenu.xib */, 113 | DDDDFBE21CA61325004372ED /* FLMainWindowController.xib */, 114 | DDDDFBE91CA6162E004372ED /* FLSearchBarController.xib */, 115 | ); 116 | name = Resources; 117 | sourceTree = ""; 118 | }; 119 | DDDDFBE61CA6133A004372ED /* Bootstrap */ = { 120 | isa = PBXGroup; 121 | children = ( 122 | DDDDFBC91CA60DE8004372ED /* AppDelegate.h */, 123 | DDDDFBCA1CA60DE8004372ED /* AppDelegate.m */, 124 | ); 125 | name = Bootstrap; 126 | sourceTree = ""; 127 | }; 128 | /* End PBXGroup section */ 129 | 130 | /* Begin PBXNativeTarget section */ 131 | DDDDFBC51CA60DE8004372ED /* Flights */ = { 132 | isa = PBXNativeTarget; 133 | buildConfigurationList = DDDDFBD71CA60DE8004372ED /* Build configuration list for PBXNativeTarget "Flights" */; 134 | buildPhases = ( 135 | DDDDFBC21CA60DE8004372ED /* Sources */, 136 | DDDDFBC31CA60DE8004372ED /* Frameworks */, 137 | DDDDFBC41CA60DE8004372ED /* Resources */, 138 | ); 139 | buildRules = ( 140 | ); 141 | dependencies = ( 142 | ); 143 | name = Flights; 144 | productName = Flights; 145 | productReference = DDDDFBC61CA60DE8004372ED /* Flights.app */; 146 | productType = "com.apple.product-type.application"; 147 | }; 148 | /* End PBXNativeTarget section */ 149 | 150 | /* Begin PBXProject section */ 151 | DDDDFBBE1CA60DE8004372ED /* Project object */ = { 152 | isa = PBXProject; 153 | attributes = { 154 | LastUpgradeCheck = 0730; 155 | ORGANIZATIONNAME = "Guilherme Rambo"; 156 | TargetAttributes = { 157 | DDDDFBC51CA60DE8004372ED = { 158 | CreatedOnToolsVersion = 7.3; 159 | DevelopmentTeam = 8C7439RJLG; 160 | }; 161 | }; 162 | }; 163 | buildConfigurationList = DDDDFBC11CA60DE8004372ED /* Build configuration list for PBXProject "Flights" */; 164 | compatibilityVersion = "Xcode 3.2"; 165 | developmentRegion = English; 166 | hasScannedForEncodings = 0; 167 | knownRegions = ( 168 | en, 169 | Base, 170 | ); 171 | mainGroup = DDDDFBBD1CA60DE8004372ED; 172 | productRefGroup = DDDDFBC71CA60DE8004372ED /* Products */; 173 | projectDirPath = ""; 174 | projectRoot = ""; 175 | targets = ( 176 | DDDDFBC51CA60DE8004372ED /* Flights */, 177 | ); 178 | }; 179 | /* End PBXProject section */ 180 | 181 | /* Begin PBXResourcesBuildPhase section */ 182 | DDDDFBC41CA60DE8004372ED /* Resources */ = { 183 | isa = PBXResourcesBuildPhase; 184 | buildActionMask = 2147483647; 185 | files = ( 186 | DDDDFBD01CA60DE8004372ED /* Assets.xcassets in Resources */, 187 | DDDDFBD31CA60DE8004372ED /* MainMenu.xib in Resources */, 188 | DDDDFBE41CA61325004372ED /* FLMainWindowController.xib in Resources */, 189 | DDDDFBEB1CA6162E004372ED /* FLSearchBarController.xib in Resources */, 190 | ); 191 | runOnlyForDeploymentPostprocessing = 0; 192 | }; 193 | /* End PBXResourcesBuildPhase section */ 194 | 195 | /* Begin PBXSourcesBuildPhase section */ 196 | DDDDFBC21CA60DE8004372ED /* Sources */ = { 197 | isa = PBXSourcesBuildPhase; 198 | buildActionMask = 2147483647; 199 | files = ( 200 | DDDDFBCE1CA60DE8004372ED /* main.m in Sources */, 201 | DDDDFBCB1CA60DE8004372ED /* AppDelegate.m in Sources */, 202 | DDDDFBE31CA61325004372ED /* FLMainWindowController.m in Sources */, 203 | DDDDFBEA1CA6162E004372ED /* FLSearchBarController.m in Sources */, 204 | ); 205 | runOnlyForDeploymentPostprocessing = 0; 206 | }; 207 | /* End PBXSourcesBuildPhase section */ 208 | 209 | /* Begin PBXVariantGroup section */ 210 | DDDDFBD11CA60DE8004372ED /* MainMenu.xib */ = { 211 | isa = PBXVariantGroup; 212 | children = ( 213 | DDDDFBD21CA60DE8004372ED /* Base */, 214 | ); 215 | name = MainMenu.xib; 216 | sourceTree = ""; 217 | }; 218 | /* End PBXVariantGroup section */ 219 | 220 | /* Begin XCBuildConfiguration section */ 221 | DDDDFBD51CA60DE8004372ED /* Debug */ = { 222 | isa = XCBuildConfiguration; 223 | buildSettings = { 224 | ALWAYS_SEARCH_USER_PATHS = NO; 225 | CLANG_ANALYZER_NONNULL = YES; 226 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 227 | CLANG_CXX_LIBRARY = "libc++"; 228 | CLANG_ENABLE_MODULES = YES; 229 | CLANG_ENABLE_OBJC_ARC = YES; 230 | CLANG_WARN_BOOL_CONVERSION = YES; 231 | CLANG_WARN_CONSTANT_CONVERSION = YES; 232 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 233 | CLANG_WARN_EMPTY_BODY = YES; 234 | CLANG_WARN_ENUM_CONVERSION = YES; 235 | CLANG_WARN_INT_CONVERSION = YES; 236 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 237 | CLANG_WARN_UNREACHABLE_CODE = YES; 238 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 239 | CODE_SIGN_IDENTITY = "-"; 240 | COPY_PHASE_STRIP = NO; 241 | DEBUG_INFORMATION_FORMAT = dwarf; 242 | ENABLE_STRICT_OBJC_MSGSEND = YES; 243 | ENABLE_TESTABILITY = YES; 244 | GCC_C_LANGUAGE_STANDARD = gnu99; 245 | GCC_DYNAMIC_NO_PIC = NO; 246 | GCC_NO_COMMON_BLOCKS = YES; 247 | GCC_OPTIMIZATION_LEVEL = 0; 248 | GCC_PREPROCESSOR_DEFINITIONS = ( 249 | "DEBUG=1", 250 | "$(inherited)", 251 | ); 252 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 253 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 254 | GCC_WARN_UNDECLARED_SELECTOR = YES; 255 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 256 | GCC_WARN_UNUSED_FUNCTION = YES; 257 | GCC_WARN_UNUSED_VARIABLE = YES; 258 | MACOSX_DEPLOYMENT_TARGET = 10.11; 259 | MTL_ENABLE_DEBUG_INFO = YES; 260 | ONLY_ACTIVE_ARCH = YES; 261 | SDKROOT = macosx; 262 | }; 263 | name = Debug; 264 | }; 265 | DDDDFBD61CA60DE8004372ED /* Release */ = { 266 | isa = XCBuildConfiguration; 267 | buildSettings = { 268 | ALWAYS_SEARCH_USER_PATHS = NO; 269 | CLANG_ANALYZER_NONNULL = YES; 270 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 271 | CLANG_CXX_LIBRARY = "libc++"; 272 | CLANG_ENABLE_MODULES = YES; 273 | CLANG_ENABLE_OBJC_ARC = YES; 274 | CLANG_WARN_BOOL_CONVERSION = YES; 275 | CLANG_WARN_CONSTANT_CONVERSION = YES; 276 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 277 | CLANG_WARN_EMPTY_BODY = YES; 278 | CLANG_WARN_ENUM_CONVERSION = YES; 279 | CLANG_WARN_INT_CONVERSION = YES; 280 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 281 | CLANG_WARN_UNREACHABLE_CODE = YES; 282 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 283 | CODE_SIGN_IDENTITY = "-"; 284 | COPY_PHASE_STRIP = NO; 285 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 286 | ENABLE_NS_ASSERTIONS = NO; 287 | ENABLE_STRICT_OBJC_MSGSEND = YES; 288 | GCC_C_LANGUAGE_STANDARD = gnu99; 289 | GCC_NO_COMMON_BLOCKS = YES; 290 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 291 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 292 | GCC_WARN_UNDECLARED_SELECTOR = YES; 293 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 294 | GCC_WARN_UNUSED_FUNCTION = YES; 295 | GCC_WARN_UNUSED_VARIABLE = YES; 296 | MACOSX_DEPLOYMENT_TARGET = 10.11; 297 | MTL_ENABLE_DEBUG_INFO = NO; 298 | SDKROOT = macosx; 299 | }; 300 | name = Release; 301 | }; 302 | DDDDFBD81CA60DE8004372ED /* Debug */ = { 303 | isa = XCBuildConfiguration; 304 | buildSettings = { 305 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 306 | CODE_SIGN_IDENTITY = "Developer ID Application"; 307 | COMBINE_HIDPI_IMAGES = YES; 308 | FRAMEWORK_SEARCH_PATHS = ( 309 | "$(inherited)", 310 | "$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks", 311 | ); 312 | INFOPLIST_FILE = Flights/Info.plist; 313 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; 314 | PRODUCT_BUNDLE_IDENTIFIER = br.com.guilhermerambo.Flights; 315 | PRODUCT_NAME = "$(TARGET_NAME)"; 316 | }; 317 | name = Debug; 318 | }; 319 | DDDDFBD91CA60DE8004372ED /* Release */ = { 320 | isa = XCBuildConfiguration; 321 | buildSettings = { 322 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 323 | CODE_SIGN_IDENTITY = "Developer ID Application"; 324 | COMBINE_HIDPI_IMAGES = YES; 325 | FRAMEWORK_SEARCH_PATHS = ( 326 | "$(inherited)", 327 | "$(SYSTEM_LIBRARY_DIR)/PrivateFrameworks", 328 | ); 329 | INFOPLIST_FILE = Flights/Info.plist; 330 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks"; 331 | PRODUCT_BUNDLE_IDENTIFIER = br.com.guilhermerambo.Flights; 332 | PRODUCT_NAME = "$(TARGET_NAME)"; 333 | }; 334 | name = Release; 335 | }; 336 | /* End XCBuildConfiguration section */ 337 | 338 | /* Begin XCConfigurationList section */ 339 | DDDDFBC11CA60DE8004372ED /* Build configuration list for PBXProject "Flights" */ = { 340 | isa = XCConfigurationList; 341 | buildConfigurations = ( 342 | DDDDFBD51CA60DE8004372ED /* Debug */, 343 | DDDDFBD61CA60DE8004372ED /* Release */, 344 | ); 345 | defaultConfigurationIsVisible = 0; 346 | defaultConfigurationName = Release; 347 | }; 348 | DDDDFBD71CA60DE8004372ED /* Build configuration list for PBXNativeTarget "Flights" */ = { 349 | isa = XCConfigurationList; 350 | buildConfigurations = ( 351 | DDDDFBD81CA60DE8004372ED /* Debug */, 352 | DDDDFBD91CA60DE8004372ED /* Release */, 353 | ); 354 | defaultConfigurationIsVisible = 0; 355 | }; 356 | /* End XCConfigurationList section */ 357 | }; 358 | rootObject = DDDDFBBE1CA60DE8004372ED /* Project object */; 359 | } 360 | -------------------------------------------------------------------------------- /Flights/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // Flights 4 | // 5 | // Created by Guilherme Rambo on 25/03/16. 6 | // Copyright © 2016 Guilherme Rambo. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : NSObject 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /Flights/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // Flights 4 | // 5 | // Created by Guilherme Rambo on 25/03/16. 6 | // Copyright © 2016 Guilherme Rambo. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | #import "FLMainWindowController.h" 12 | 13 | @interface AppDelegate () 14 | 15 | @property (strong) FLMainWindowController *mainWC; 16 | 17 | 18 | @end 19 | 20 | @implementation AppDelegate 21 | 22 | - (void)applicationDidFinishLaunching:(NSNotification *)aNotification { 23 | [self showMainWindowController]; 24 | } 25 | 26 | - (BOOL)applicationShouldHandleReopen:(NSApplication *)sender hasVisibleWindows:(BOOL)flag 27 | { 28 | [self showMainWindowController]; 29 | 30 | return YES; 31 | } 32 | 33 | - (void)showMainWindowController { 34 | if (!self.mainWC) self.mainWC = [[FLMainWindowController alloc] init]; 35 | 36 | [self.mainWC showWindow:self]; 37 | } 38 | 39 | @end 40 | -------------------------------------------------------------------------------- /Flights/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "size" : "16x16", 5 | "idiom" : "mac", 6 | "filename" : "icon_16x16.png", 7 | "scale" : "1x" 8 | }, 9 | { 10 | "size" : "16x16", 11 | "idiom" : "mac", 12 | "filename" : "icon_16x16@2x.png", 13 | "scale" : "2x" 14 | }, 15 | { 16 | "size" : "32x32", 17 | "idiom" : "mac", 18 | "filename" : "icon_32x32.png", 19 | "scale" : "1x" 20 | }, 21 | { 22 | "size" : "32x32", 23 | "idiom" : "mac", 24 | "filename" : "icon_32x32@2x.png", 25 | "scale" : "2x" 26 | }, 27 | { 28 | "size" : "128x128", 29 | "idiom" : "mac", 30 | "filename" : "icon_128x128.png", 31 | "scale" : "1x" 32 | }, 33 | { 34 | "size" : "128x128", 35 | "idiom" : "mac", 36 | "filename" : "icon_128x128@2x.png", 37 | "scale" : "2x" 38 | }, 39 | { 40 | "size" : "256x256", 41 | "idiom" : "mac", 42 | "filename" : "icon_256x256.png", 43 | "scale" : "1x" 44 | }, 45 | { 46 | "size" : "256x256", 47 | "idiom" : "mac", 48 | "filename" : "icon_256x256@2x.png", 49 | "scale" : "2x" 50 | }, 51 | { 52 | "size" : "512x512", 53 | "idiom" : "mac", 54 | "filename" : "icon_512x512.png", 55 | "scale" : "1x" 56 | }, 57 | { 58 | "size" : "512x512", 59 | "idiom" : "mac", 60 | "filename" : "icon_512x512@2x.png", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /Flights/Assets.xcassets/AppIcon.appiconset/icon_128x128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/insidegui/Flights/a122d594882116fd9835d06cc1f7927bf5ee9dec/Flights/Assets.xcassets/AppIcon.appiconset/icon_128x128.png -------------------------------------------------------------------------------- /Flights/Assets.xcassets/AppIcon.appiconset/icon_128x128@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/insidegui/Flights/a122d594882116fd9835d06cc1f7927bf5ee9dec/Flights/Assets.xcassets/AppIcon.appiconset/icon_128x128@2x.png -------------------------------------------------------------------------------- /Flights/Assets.xcassets/AppIcon.appiconset/icon_16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/insidegui/Flights/a122d594882116fd9835d06cc1f7927bf5ee9dec/Flights/Assets.xcassets/AppIcon.appiconset/icon_16x16.png -------------------------------------------------------------------------------- /Flights/Assets.xcassets/AppIcon.appiconset/icon_16x16@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/insidegui/Flights/a122d594882116fd9835d06cc1f7927bf5ee9dec/Flights/Assets.xcassets/AppIcon.appiconset/icon_16x16@2x.png -------------------------------------------------------------------------------- /Flights/Assets.xcassets/AppIcon.appiconset/icon_256x256.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/insidegui/Flights/a122d594882116fd9835d06cc1f7927bf5ee9dec/Flights/Assets.xcassets/AppIcon.appiconset/icon_256x256.png -------------------------------------------------------------------------------- /Flights/Assets.xcassets/AppIcon.appiconset/icon_256x256@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/insidegui/Flights/a122d594882116fd9835d06cc1f7927bf5ee9dec/Flights/Assets.xcassets/AppIcon.appiconset/icon_256x256@2x.png -------------------------------------------------------------------------------- /Flights/Assets.xcassets/AppIcon.appiconset/icon_32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/insidegui/Flights/a122d594882116fd9835d06cc1f7927bf5ee9dec/Flights/Assets.xcassets/AppIcon.appiconset/icon_32x32.png -------------------------------------------------------------------------------- /Flights/Assets.xcassets/AppIcon.appiconset/icon_32x32@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/insidegui/Flights/a122d594882116fd9835d06cc1f7927bf5ee9dec/Flights/Assets.xcassets/AppIcon.appiconset/icon_32x32@2x.png -------------------------------------------------------------------------------- /Flights/Assets.xcassets/AppIcon.appiconset/icon_512x512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/insidegui/Flights/a122d594882116fd9835d06cc1f7927bf5ee9dec/Flights/Assets.xcassets/AppIcon.appiconset/icon_512x512.png -------------------------------------------------------------------------------- /Flights/Assets.xcassets/AppIcon.appiconset/icon_512x512@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/insidegui/Flights/a122d594882116fd9835d06cc1f7927bf5ee9dec/Flights/Assets.xcassets/AppIcon.appiconset/icon_512x512@2x.png -------------------------------------------------------------------------------- /Flights/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Flights/Assets.xcassets/airplane.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "airplane.pdf", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | }, 21 | "properties" : { 22 | "template-rendering-intent" : "template" 23 | } 24 | } -------------------------------------------------------------------------------- /Flights/Assets.xcassets/airplane.imageset/airplane.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/insidegui/Flights/a122d594882116fd9835d06cc1f7927bf5ee9dec/Flights/Assets.xcassets/airplane.imageset/airplane.pdf -------------------------------------------------------------------------------- /Flights/Base.lproj/MainMenu.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | 335 | 336 | 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | 345 | 346 | 347 | 348 | 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | 365 | 366 | 367 | 368 | 369 | 370 | 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 419 | 420 | 421 | 422 | 423 | 424 | 425 | 426 | 427 | 428 | 429 | 430 | 431 | 432 | 433 | 434 | 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | 467 | 468 | 469 | 470 | 471 | 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | 496 | 497 | 498 | 499 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 509 | 510 | 511 | 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | 520 | 521 | 522 | 523 | 524 | 525 | 526 | 527 | 528 | 529 | 530 | 531 | 532 | 533 | 534 | 535 | Default 536 | 537 | 538 | 539 | 540 | 541 | 542 | Left to Right 543 | 544 | 545 | 546 | 547 | 548 | 549 | Right to Left 550 | 551 | 552 | 553 | 554 | 555 | 556 | 557 | 558 | 559 | 560 | Default 561 | 562 | 563 | 564 | 565 | 566 | 567 | Left to Right 568 | 569 | 570 | 571 | 572 | 573 | 574 | Right to Left 575 | 576 | 577 | 578 | 579 | 580 | 581 | 582 | 583 | 584 | 585 | 586 | 587 | 588 | 589 | 590 | 591 | 592 | 593 | 594 | 595 | 596 | 597 | 598 | 599 | 600 | 601 | 602 | 603 | 604 | 605 | 606 | 607 | 608 | 609 | 610 | 611 | 612 | 613 | 614 | 615 | 616 | 617 | 618 | 619 | 620 | 621 | 622 | 623 | 624 | 625 | 626 | 627 | 628 | 629 | 630 | 631 | 632 | 633 | 634 | 635 | 636 | 637 | 638 | 639 | 640 | 641 | 642 | 643 | 644 | 645 | 646 | 647 | 648 | 649 | 650 | 651 | 652 | 653 | 654 | 655 | 656 | 657 | 658 | 659 | 660 | 661 | 662 | 663 | 664 | 665 | 666 | 667 | 668 | -------------------------------------------------------------------------------- /Flights/Controllers/FLMainWindowController.h: -------------------------------------------------------------------------------- 1 | // 2 | // FLMainWindowController.h 3 | // Flights 4 | // 5 | // Created by Guilherme Rambo on 25/03/16. 6 | // Copyright © 2016 Guilherme Rambo. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface FLMainWindowController : NSWindowController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Flights/Controllers/FLMainWindowController.m: -------------------------------------------------------------------------------- 1 | // 2 | // FLMainWindowController.m 3 | // Flights 4 | // 5 | // Created by Guilherme Rambo on 25/03/16. 6 | // Copyright © 2016 Guilherme Rambo. All rights reserved. 7 | // 8 | 9 | #import "FLMainWindowController.h" 10 | 11 | #import "FlightUtilities.h" 12 | #import "FLSearchBarController.h" 13 | 14 | @interface FLMainWindowController () 15 | 16 | @property (strong) FUFlightViewController *flightVC; 17 | @property (strong) FLSearchBarController *searchVC; 18 | 19 | @property (weak) IBOutlet NSVisualEffectView *backgroundView; 20 | @property (weak) IBOutlet NSView *containerView; 21 | 22 | @property (weak) IBOutlet NSImageView *emptyImageView; 23 | 24 | @end 25 | 26 | @implementation FLMainWindowController 27 | 28 | - (instancetype)init 29 | { 30 | self = [super initWithWindowNibName:NSStringFromClass([self class])]; 31 | 32 | return self; 33 | } 34 | 35 | - (void)windowDidLoad { 36 | [super windowDidLoad]; 37 | 38 | self.window.movableByWindowBackground = YES; 39 | 40 | self.window.titlebarAppearsTransparent = YES; 41 | self.window.titleVisibility = NSWindowTitleHidden; 42 | 43 | self.searchVC = [[FLSearchBarController alloc] init]; 44 | [self.searchVC.view setFrameOrigin:NSMakePoint(0, NSHeight(self.window.contentView.bounds) - NSHeight(self.searchVC.view.bounds) - 22.0)]; 45 | [self.backgroundView addSubview:self.searchVC.view]; 46 | 47 | __weak typeof(self) weakSelf = self; 48 | [self.searchVC setCallback:^(NSString *airline, NSUInteger flight) { 49 | [weakSelf findFlightWithCode:flight airlineCode:airline]; 50 | }]; 51 | } 52 | 53 | - (void)findFlightWithCode:(NSUInteger)code airlineCode:(NSString *)airlineCode 54 | { 55 | [NSAnimationContext runAnimationGroup:^(NSAnimationContext * _Nonnull context) { 56 | self.emptyImageView.animator.alphaValue = 0.0; 57 | self.flightVC.view.animator.alphaValue = 0.0; 58 | } completionHandler:^{ 59 | if (self.flightVC) { 60 | [self.flightVC.view removeFromSuperview]; 61 | self.flightVC = nil; 62 | } 63 | 64 | self.flightVC = [[FUFlightViewController alloc] initWithFlightCode:code airlineCode:airlineCode]; 65 | [self.containerView addSubview:self.flightVC.view]; 66 | }]; 67 | } 68 | 69 | @end 70 | -------------------------------------------------------------------------------- /Flights/Controllers/FLMainWindowController.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | -------------------------------------------------------------------------------- /Flights/Controllers/FLSearchBarController.h: -------------------------------------------------------------------------------- 1 | // 2 | // FLSearchBarController.h 3 | // Flights 4 | // 5 | // Created by Guilherme Rambo on 25/03/16. 6 | // Copyright © 2016 Guilherme Rambo. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface FLSearchBarController : NSViewController 12 | 13 | @property (nonatomic, copy) void (^callback)(NSString *airlineCode, NSUInteger flightCode); 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Flights/Controllers/FLSearchBarController.m: -------------------------------------------------------------------------------- 1 | // 2 | // FLSearchBarController.m 3 | // Flights 4 | // 5 | // Created by Guilherme Rambo on 25/03/16. 6 | // Copyright © 2016 Guilherme Rambo. All rights reserved. 7 | // 8 | 9 | #import "FLSearchBarController.h" 10 | 11 | @interface FLSearchBarController () 12 | @property (weak) IBOutlet NSSearchField *searchField; 13 | 14 | @end 15 | 16 | @implementation FLSearchBarController 17 | 18 | - (instancetype)init 19 | { 20 | self = [super initWithNibName:NSStringFromClass([self class]) bundle:nil]; 21 | 22 | return self; 23 | } 24 | 25 | - (void)viewDidLoad { 26 | [super viewDidLoad]; 27 | // Do view setup here. 28 | } 29 | 30 | - (void)viewDidAppear 31 | { 32 | [super viewDidAppear]; 33 | 34 | [self.view.window makeFirstResponder:self.searchField]; 35 | } 36 | 37 | - (IBAction)searchFieldAction:(id)sender { 38 | if (self.searchField.stringValue.length < 4) return; 39 | 40 | NSString *airlineCode = [self.searchField.stringValue substringWithRange:NSMakeRange(0, 2)]; 41 | NSString *flightCode = [self.searchField.stringValue substringWithRange:NSMakeRange(2, self.searchField.stringValue.length - 2)]; 42 | NSUInteger flightCodeNumber = (NSUInteger)[flightCode integerValue]; 43 | 44 | if (flightCodeNumber <= 0) return; 45 | 46 | self.callback(airlineCode, flightCodeNumber); 47 | } 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /Flights/Controllers/FLSearchBarController.xib: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /Flights/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIconFile 10 | 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | $(PRODUCT_NAME) 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1 25 | LSMinimumSystemVersion 26 | $(MACOSX_DEPLOYMENT_TARGET) 27 | NSHumanReadableCopyright 28 | Copyright © 2016 Guilherme Rambo. All rights reserved. 29 | NSMainNibFile 30 | MainMenu 31 | NSPrincipalClass 32 | NSApplication 33 | 34 | 35 | -------------------------------------------------------------------------------- /Flights/PrivateHeaders/FlightUtilities.h: -------------------------------------------------------------------------------- 1 | // 2 | // FlightUtilities.h 3 | // Flights 4 | // 5 | // Created by Guilherme Rambo on 25/03/16. 6 | // Copyright © 2016 Guilherme Rambo. All rights reserved. 7 | // 8 | 9 | @import Cocoa; 10 | 11 | @interface FUFlightViewController : NSViewController 12 | 13 | - (instancetype)initWithFlightCode:(NSUInteger)flightCode airlineCode:(NSString *)airlineCode; 14 | 15 | @end -------------------------------------------------------------------------------- /Flights/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // Flights 4 | // 5 | // Created by Guilherme Rambo on 25/03/16. 6 | // Copyright © 2016 Guilherme Rambo. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | int main(int argc, const char * argv[]) { 12 | return NSApplicationMain(argc, argv); 13 | } 14 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016 Guilherme Rambo 2 | 3 | Redistribution and use in source and binary forms, with or without 4 | modification, are permitted provided that the following conditions are met: 5 | 6 | - Redistributions of source code must retain the above copyright notice, this 7 | list of conditions and the following disclaimer. 8 | 9 | - Redistributions in binary form must reproduce the above copyright notice, 10 | this list of conditions and the following disclaimer in the documentation 11 | and/or other materials provided with the distribution. 12 | 13 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 14 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 16 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 17 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 19 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 20 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 21 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 22 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Flights 2 | 3 | Simple flight information tracker for OS X. 4 | 5 | [Download Latest Release](https://github.com/insidegui/Flights/raw/master/Releases/flights_latest.zip) 6 | 7 | This is a toy project made in half an hour to demonstrate what can be done with Apple's `FlightUtilities` private framework 😁 8 | 9 | ![screenshot](https://raw.githubusercontent.com/insidegui/Flights/master/Resources/screenshot.png) 10 | 11 | ## Usage 12 | 13 | Just launch the app and type a flight code (including the airline code). Example: `AA24` for American Airlines flight number 24. 14 | 15 | ### Disclaimer 16 | 17 | This is just a toy project I made to test the FlightUtilities framework added to OS X on version 10.11.4. The framework is private and I should not be using It 😅 18 | 19 | Apple will probably add something to OS X (or macOS?) in the future which uses this framework. -------------------------------------------------------------------------------- /Releases/flights_latest.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/insidegui/Flights/a122d594882116fd9835d06cc1f7927bf5ee9dec/Releases/flights_latest.zip -------------------------------------------------------------------------------- /Resources/Flights Icon.sketch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/insidegui/Flights/a122d594882116fd9835d06cc1f7927bf5ee9dec/Resources/Flights Icon.sketch -------------------------------------------------------------------------------- /Resources/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/insidegui/Flights/a122d594882116fd9835d06cc1f7927bf5ee9dec/Resources/screenshot.png --------------------------------------------------------------------------------