Creating Extensions for ios and OS X, Part Two

Size: px
Start display at page:

Download "Creating Extensions for ios and OS X, Part Two"

Transcription

1 Frameworks #WWDC14 Creating Extensions for ios and OS X, Part Two Architecture Session 217 Damien Sorresso Overloaded Operator 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple.

2 What Are Apps? Most important experience Own entire screen Installed/removed by user

3 What Are Apps? Most important experience Own entire screen Installed/removed by user

4 What Are Apps? Most important experience Own entire screen Installed/removed by user

5 Extensions Important to the user Not more important than the app Augment current experience Come and go with apps

6 Extensions Important to the user Not more important than the app Augment current experience Come and go with apps

7 Built Separately

8 Built Separately

9 Built Separately

10 Run Separately Different process Isolated address space Executes independently System optimizes separately extension

11 Run Separately Different process Isolated address space Executes independently System optimizes separately extension

12 Run Separately Different process extension Isolated address space Executes independently System optimizes separately

13

14

15 Cancel Network Post Message: Look at this great website I found! Location: San Francisco, CA

16 Extending the Experience

17 A Piece of Your App Focused experience Seamlessly merged with current app Reuse code from your app

18 Sharing Code Hope you used MVC! model controller view Same data model Same view controllers

19 Sharing Code Hope you used MVC! model controller view Same data model Same view controllers

20 What's the best way to share code?

21 Frameworks!

22 Embedded Frameworks Can ship frameworks in ios apps App and extensions can link Encrypted Already possible in OS X

23 Minimum Deployment Target Minimum deployment target may change App linkage requires ios 8 Not affected by extension linkage

24 Minimum Deployment Target Minimum deployment target may change App linkage requires ios 8 Not affected by extension linkage extension

25 Related Sessions Building Modern Frameworks Presidio Thursday 3:15PM

26 API Availability Vast majority of API is available Some exceptions Marked specifically with "unavailability" macro

27 Unavailability + (UIApplication *)sharedapplication NS_EXTENSION_UNAVAILABLE_IOS("Use view controller based solutions where appropriate instead.");

28 Unavailability OS_EXTENSION_UNAVAILABLE("Not available for extensions") extern void super_1337_api_with_underscores(const char *astring);

29 App and Extension Consistency

30 Consistency

31 Consistency Common resources Reflect changes Share data

32 Sharing Data Separate containers No access to app data Opt into data sharing

33 Shared Container App Group Shared storage area General data sharing Coordinate file access

34 Safely Sharing extension

35 ` Safely Sharing extension

36 Safely Sharing extension

37 Safely Sharing extension

38 Synchronization Technologies NSFileCoordination CoreData sqlite

39 NSUserDefaults Distinct user defaults from app Can set up shared domain NSUserDefaults *shareddefaults = [[NSUserDefaults alloc] initwithsuitename:@ com.mycompany.mygreatapp.shared ]; API coordinates access

40 Shared Keychains App Group Distinct keychain from app Can set up keychain access group Like sharing keychains between apps

41 Privacy Approval encompasses app and extensions Some exceptions User approves entirety of app

42 Best Practices

43 Be Lean Frontmost app is still most important Don't have full use of system resources Get in, get out

44 Be Stateless May be killed aggressively No general multitasking Support for short task-completion Flush state to disk

45 Be Awesome Make it seamless Make it useful Surprise and delight!

46 Action Extensions Aki Inoue Cocoa Senior Engineer

47 Action Extensions

48 Action Extensions

49 Action Extensions

50 Action Extensions

51 Describing Action Extensions

52 Describing Action Extensions

53 Describing Action Extensions

54 Principal View Controller View Controller

55 Principal View Controller View Controller Extension Context

56 Principal View Controller View Controller Extension Context Extension Item

57 Principal View Controller View Controller Extension Context Extension Item Item Provider

58 Describing Action Extensions

59 Describing Action Extensions

60 UI Action Setup - (void)viewdidload { [super viewdidload];! // Get NSExtensionContext NSExtensionContext *extensioncontext = self.extensioncontext;! // Get NSExtensionItem NSExtensionItem *inputitem = extensioncontext.inputitems.firstobject; // Get NSItemProvider NSItemProvider *itemprovider = inputitem.attachments.firstobject;

61 UI Action Setup - (void)viewdidload { [super viewdidload];! // Get NSExtensionContext NSExtensionContext *extensioncontext = self.extensioncontext; extensioncontext! // Get NSExtensionItem NSExtensionItem *inputitem = extensioncontext.inputitems.firstobject; // Get NSItemProvider NSItemProvider *itemprovider = inputitem.attachments.firstobject;

62 UI Action Setup - (void)viewdidload { [super viewdidload];! // Get NSExtensionContext NSExtensionContext *extensioncontext = self.extensioncontext;! // Get NSExtensionItem NSExtensionItem *inputitem = extensioncontext.inputitems.firstobject; inputitems // Get NSItemProvider NSItemProvider *itemprovider = inputitem.attachments.firstobject;

63 UI Action Setup - (void)viewdidload { [super viewdidload];! // Get NSExtensionContext NSExtensionContext *extensioncontext = self.extensioncontext;! // Get NSExtensionItem NSExtensionItem *inputitem = extensioncontext.inputitems.firstobject; // Get NSItemProvider NSItemProvider *itemprovider = inputitem.attachments.firstobject;

64 UI Action Setup (continued) } // Request document data [itemprovider loaditemfortypeidentifier:mydocumentuti options:nil completionhandler:^(nsdata *data, NSError *error) { if (data) self.contents = data; }];

65 UI Action Setup (continued) }! } // Request document data [itemprovider loaditemfortypeidentifier:mydocumentuti options:nil completionhandler:^(nsdata *data, NSError *error) { if (data) self.contents = data; }];

66 UI Action Setup (continued) }! } // Request document data [itemprovider loaditemfortypeidentifier:mydocumentuti options:nil completionhandler:^(nsdata *data, NSError *error) { if (data) self.contents = data; }];

67 UI Action Setup (continued) } // Request document data [itemprovider loaditemfortypeidentifier:mydocumentuti options:nil completionhandler:^(nsdata *data, NSError *error) { if (data) self.contents = data; }];

68 Editor UI Action Conclusion - (IBAction)done:(id)sender { NSData *data = self.contents; // Document contents! // Create NSItemProvider NSItemProvider *itemprovider = [[NSItemProvider alloc] initwithitem:data typeidentifier:mydocumentuti]; // Create NSExtensionItem NSExtensionItem *item = [[NSExtensionItem alloc] init]; item.attachments } // Send the data back [self.extensioncontext completerequestreturningitems:@[item] completionhandler:nil];

69 Editor UI Action Conclusion - (IBAction)done:(id)sender { NSData *data = self.contents; // Document contents! // Create NSItemProvider NSItemProvider *itemprovider = [[NSItemProvider alloc] initwithitem:data typeidentifier:mydocumentuti]; // Create NSExtensionItem NSExtensionItem *item = [[NSExtensionItem alloc] init]; item.attachments } // Send the data back [self.extensioncontext completerequestreturningitems:@[item] completionhandler:nil];

70 Editor UI Action Conclusion - (IBAction)done:(id)sender { NSData *data = self.contents; // Document contents! // Create NSItemProvider NSItemProvider *itemprovider = [[NSItemProvider alloc] initwithitem:data typeidentifier:mydocumentuti]; // Create NSExtensionItem NSExtensionItem *item = [[NSExtensionItem alloc] init]; item.attachments } // Send the data back [self.extensioncontext completerequestreturningitems:@[item] completionhandler:nil];

71 Editor UI Action Conclusion - (IBAction)done:(id)sender { NSData *data = self.contents; // Document contents! // Create NSItemProvider NSItemProvider *itemprovider = [[NSItemProvider alloc] initwithitem:data typeidentifier:mydocumentuti]; // Create NSExtensionItem NSExtensionItem *item = [[NSExtensionItem alloc] init]; item.attachments } // Send the data back [self.extensioncontext completerequestreturningitems:@[item] completionhandler:nil];

72 Viewer UI Action Conclusion - (IBAction)done:(id)sender { // Complete Viewer Action [self.extensioncontext completerequestreturningitems:nil completionhandler:nil]; }

73 Viewer UI Action Conclusion - (IBAction)done:(id)sender { // Complete Send the Viewer data back Action [self.extensioncontext completerequestreturningitems:nil completionhandler:nil]; }

74 UIActivityViewController

75 Receiving Result Items - (void)setupactivityviewcontroller { UIActivityViewController *controller; // initialize the controller here! // Specifies the completion handler block } controller.completionwithitemshandler = ^(NSString *activitytype, BOOL completed, NSArray *returneditems, NSError *error) { if (completed && (returneditems.count > 0)) { // process the result items } }];

76 Receiving Result Items - (void)setupactivityviewcontroller { UIActivityViewController *controller; // initialize the controller here! // Specifies the completion handler block } controller.completionwithitemshandler = ^(NSString *activitytype, BOOL completed, NSArray *returneditems, NSError *error) { if (completed && (returneditems.count > 0)) { // process the result items } }];

77 Receiving Result Items - (void)setupactivityviewcontroller { UIActivityViewController *controller; // initialize the controller here! // Specifies the completion handler block controller.completionwithitemshandler completionwithitemshandler = ^(NSString *activitytype, BOOL completed, NSArray *returneditems, NSError *error) { if (completed && (returneditems.count > 0)) { // process the result items } }]; }

78 Receiving Result Items - (void)setupactivityviewcontroller { UIActivityViewController *controller; // initialize the controller here! // Specifies the completion handler block } controller.completionwithitemshandler = ^(NSString *activitytype, BOOL completed, NSArray *returneditems, NSError *error) { if (completed && (returneditems.count > 0)) { // process the result items } }];

79 NSTextView OzarkTrailPrime

80 Demo OS X Action Extension

81 Supporting Multiple Data Types OzarkTrailPrime

82 Reacting to Data Types NSString *texttype = (NSString *)kuttypetext;! // is it text? if ([itemprovider hasitemconformingtotypeidentifier:texttype]) { [itemprovider loaditemfortypeidentifier:texttype options:nil completionhandler:^(nsattributedstring *string, NSError *error) { if (string) { // process text here } }]; }

83 Reacting to Data Types NSString *texttype = (NSString *)kuttypetext;! // is it text? if ([itemprovider hasitemconformingtotypeidentifier:texttype]) { [itemprovider loaditemfortypeidentifier:texttype options:nil completionhandler:^(nsattributedstring *string, NSError *error) { if (string) { // process text here } }]; }

84 Reacting to Data Types NSString *texttype = (NSString *)kuttypetext;! // is it text? if ([itemprovider hasitemconformingtotypeidentifier:texttype]) { [itemprovider loaditemfortypeidentifier:texttype options:nil completionhandler:^(nsattributedstring *string, NSError *error) { if (string) { // process text here } }]; }

85 Reacting to Data Types NSString *texttype = (NSString *)kuttypetext;! // is it text? if ([itemprovider hasitemconformingtotypeidentifier:texttype]) { [itemprovider loaditemfortypeidentifier:texttype options:nil completionhandler:^(nsattributedstring *string, NSError *error) { if (string) { // process text here } }]; }

86 Reacting to Data Types NSString *texttype = (NSString *)kuttypetext;! // is it text? if ([itemprovider hasitemconformingtotypeidentifier:texttype]) { [itemprovider loaditemfortypeidentifier:texttype options:nil completionhandler:^(nsattributedstring *string, NSError *error) { if (string) { // process text here } }]; }

87 Reacting to Data Types NSString *texttype = (NSString *)kuttypetext;! // is it text? if ([itemprovider hasitemconformingtotypeidentifier:texttype]) { [itemprovider loaditemfortypeidentifier:texttype options:nil completionhandler:^(nsattributedstring *string, NSError *error) { if (string) { // process text here } }]; }

88 Reacting to Data Types (continued) NSString *imagetype = (NSString *)kuttypeimage;! // is it image? if ([itemprovider hasitemconformingtotypeidentifier:imagetype]) { [itemprovider loaditemfortypeidentifier:imagetype options:nil completionhandler:^(uiimage *image, NSError *error) { if (image) { // process image here } }]; }

89 Reacting to Data Types (continued) NSString *imagetype = (NSString *)kuttypeimage;! // is it image? if ([itemprovider hasitemconformingtotypeidentifier:imagetype]) { [itemprovider loaditemfortypeidentifier:imagetype options:nil completionhandler:^(uiimage *image, NSError *error) { if (image) { // process image here } }]; }

90 Reacting to Data Types (continued) NSString *imagetype = (NSString *)kuttypeimage;! // is it image? if ([itemprovider hasitemconformingtotypeidentifier:imagetype]) { [itemprovider loaditemfortypeidentifier:imagetype options:nil completionhandler:^(uiimage *image, NSError *error) { if (image) { // process image here } }]; }

91 Reacting to Data Types (continued) NSString *imagetype = (NSString *)kuttypeimage;! // is it image? if ([itemprovider hasitemconformingtotypeidentifier:imagetype]) { [itemprovider loaditemfortypeidentifier:imagetype options:nil completionhandler:^(uiimage *image, NSError *error) { if (image) { // process image here } }]; }

92 Reacting to Data Types (continued) NSString *imagetype = (NSString *)kuttypeimage;! // is it image? if ([itemprovider hasitemconformingtotypeidentifier:imagetype]) { [itemprovider loaditemfortypeidentifier:imagetype options:nil completionhandler:^(uiimage *image, NSError *error) { if (image) { // process image here } }]; }

93 Overlay OS X enhancement

94 Specifying Extension Frame -viewdidload NSRect sourceframe = itemprovider.sourceframe; // original data frame! if (!NSIsEmptyRect(sourceFrame)) { // the host specifies the source frame // Adjust sourceframe based on extension UI margins sourceframe = NSInsetRect(sourceRect, HORIZ_MARGIN, VERT_MARGIN);! } self.preferredscreenorigin = sourceframe.origin; self.preferredcontentsize = sourceframe.size;

95 Specifying Extension Frame -viewdidload NSRect sourceframe = itemprovider.sourceframe; // original data frame! if (!NSIsEmptyRect(sourceFrame)) { // the host specifies the source frame // Adjust sourceframe based on extension UI margins sourceframe = NSInsetRect(sourceRect, HORIZ_MARGIN, VERT_MARGIN);! } self.preferredscreenorigin = sourceframe.origin; self.preferredcontentsize = sourceframe.size;

96 Specifying Extension Frame -viewdidload NSRect sourceframe = itemprovider.sourceframe; // original data frame! if (!NSIsEmptyRect(sourceFrame)) { // the host specifies the source frame // Adjust sourceframe based on extension UI margins sourceframe = NSInsetRect(sourceRect, HORIZ_MARGIN, VERT_MARGIN);! } self.preferredscreenorigin = sourceframe.origin; self.preferredcontentsize = sourceframe.size;

97 Specifying Extension Frame -viewdidload NSRect sourceframe = itemprovider.sourceframe; // original data frame! if (!NSIsEmptyRect(sourceFrame)) { // the host specifies the source frame // Adjust sourceframe based on extension UI margins sourceframe = NSInsetRect(sourceRect, HORIZ_MARGIN, VERT_MARGIN);! } self.preferredscreenorigin = sourceframe.origin; self.preferredcontentsize = sourceframe.size;

98 Specifying Extension Frame -viewdidload NSRect sourceframe = itemprovider.sourceframe; // original data frame! if (!NSIsEmptyRect(sourceFrame)) { // the host specifies the source frame // Adjust sourceframe based on extension UI margins sourceframe = NSInsetRect(sourceRect, HORIZ_MARGIN, VERT_MARGIN);! } self.preferredscreenorigin = sourceframe.origin; self.preferredcontentsize = sourceframe.size;

99 Actions and the Web Safari custom actions Ian Baird ios Frameworks Engineer

100

101

102 Safari Custom Actions Rich new functionality in Safari on ios

103 Safari Custom Actions Rich new functionality in Safari on ios Access the DOM

104 Safari Custom Actions Rich new functionality in Safari on ios Access the DOM Two types

105 Safari Custom Actions Rich new functionality in Safari on ios Access the DOM Two types View controller

106 Safari Custom Actions Rich new functionality in Safari on ios Access the DOM Two types View controller No view

107 Safari Custom Actions JavaScript

108 Safari Custom Actions JavaScript

109 Safari Custom Actions JavaScript var PreprocessingJavaScript = function() {! };! PreprocessingJavaScript.prototype = {! run: function(actionargs) { // Get all image URLs from the document. actionargs.completionfunction({"imageurls": imageurls, "baseuri": document.baseuri}); },

110 Safari Custom Actions JavaScript var PreprocessingJavaScript = function() {! };! PreprocessingJavaScript.prototype = {! run: function(actionargs) { // Get all image URLs from the document. actionargs.completionfunction({"imageurls": imageurls, "baseuri": document.baseuri}); },

111 Safari Custom Actions JavaScript

112 Safari Custom Actions JavaScript

113 Safari Custom Actions JavaScript var PreprocessingJavaScript = function() {! };! PreprocessingJavaScript.prototype = { finalize: function(actionargs) { alert(actionargs[ message"]); } };

114 Safari Custom Actions JavaScript var PreprocessingJavaScript = function() {! };! PreprocessingJavaScript.prototype = { finalize: function(actionargs) { alert(actionargs[ message"]); } };

115 Safari Custom Actions JavaScript var PreprocessingJavaScript = function() {! };! PreprocessingJavaScript.prototype = { };! var ExtensionPreprocessingJS = new PreprocessingJavaScript;

116 Safari Custom Actions JavaScript var PreprocessingJavaScript = function() {! };! PreprocessingJavaScript.prototype = { };! var ExtensionPreprocessingJS = new PreprocessingJavaScript;

117 Safari Custom Actions Global variable

118 Safari Custom Actions Global variable ExtensionPreprocessingJS

119 Demo Safari custom actions

120 Safari Custom Actions Summary Flexibility of the web

121 Safari Custom Actions Summary Flexibility of the web Power of extensions

122 Safari Custom Actions Summary Flexibility of the web Power of extensions Transform web data easily

123 Safari Custom Actions Summary Flexibility of the web Power of extensions Transform web data easily

124 Summary Rich workflows

125 Summary Rich workflows Security

126 Summary Rich workflows Security Fun!

127 More Information Jake Behrens App Frameworks Evangelist Documentation App Extension Programming Guide Apple Developer Forums

128 Labs Extensions Lab Frameworks Lab B Thursday 2:00PM

129

Introducing the Modern WebKit API

Introducing the Modern WebKit API Frameworks #WWDC14 Introducing the Modern WebKit API Session 206 Anders Carlsson Safari and WebKit Engineer 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written

More information

Accessibility on OS X

Accessibility on OS X Frameworks #WWDC14 Accessibility on OS X New Accessibility API Session 207 Patti Hoa Accessibility Engineer! Chris Dolan Accessibility Engineer 2014 Apple Inc. All rights reserved. Redistribution or public

More information

Seamless Linking to Your App

Seamless Linking to Your App App Frameworks #WWDC15 Seamless Linking to Your App Session 509 Conrad Shultz Safari and WebKit Software Engineer Jonathan Grynspan Core Services Software Engineer 2015 Apple Inc. All rights reserved.

More information

Accessibility on ios. Developing for everyone. Frameworks #WWDC14. Session 210 Clare Kasemset ios Accessibility

Accessibility on ios. Developing for everyone. Frameworks #WWDC14. Session 210 Clare Kasemset ios Accessibility Frameworks #WWDC14 Accessibility on ios Developing for everyone Session 210 Clare Kasemset ios Accessibility 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without

More information

Introducing the Photos Frameworks

Introducing the Photos Frameworks Media #WWDC14 Introducing the Photos Frameworks Session 511 Adam Swift ios Photos Frameworks 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Cross Platform Nearby Networking

Cross Platform Nearby Networking Core OS #WWDC14 Cross Platform Nearby Networking Session 709 Demijan Klinc Software Engineer 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Extending Your Apps with SiriKit

Extending Your Apps with SiriKit App Frameworks #WWDC16 Extending Your Apps with SiriKit Session 225 Vineet Khosla SiriKit Engineering Diana Huang SiriKit Engineering Scott Andrus SiriKit Engineering 2016 Apple Inc. All rights reserved.

More information

Using and Extending the Xcode Source Editor

Using and Extending the Xcode Source Editor Developer Tools #WWDC16 Using and Extending the Xcode Source Editor Session 414 Mike Swingler Xcode Infrastructure and Editors Chris Hanson Xcode Infrastructure and Editors 2016 Apple Inc. All rights reserved.

More information

Monetize and Promote Your App with iad

Monetize and Promote Your App with iad Media #WWDC15 Monetize and Promote Your App with iad From design to launch Session 503 Carol Teng Shashank Phadke 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without

More information

App Extension Best Practices

App Extension Best Practices App Frameworks #WWDC15 App Extension Best Practices Session 224 Sophia Teutschler UIKit Engineer Ian Baird CoreOS Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted

More information

Implementing UI Designs in Interface Builder

Implementing UI Designs in Interface Builder Developer Tools #WWDC15 Implementing UI Designs in Interface Builder Session 407 Kevin Cathey Interface Builder Engineer Tony Ricciardi Interface Builder Engineer 2015 Apple Inc. All rights reserved. Redistribution

More information

Data Delivery with Drag and Drop

Data Delivery with Drag and Drop Session App Frameworks #WWDC17 Data Delivery with Drag and Drop 227 Dave Rahardja, UIKit Tanu Singhal, UIKit 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without

More information

Storyboards and Controllers on OS X

Storyboards and Controllers on OS X Frameworks #WWDC14 Storyboards and Controllers on OS X Contain yourself Session 212 Mike Swingler Interface Builder Engineer Raleigh Ledet AppKit Engineer 2014 Apple Inc. All rights reserved. Redistribution

More information

Building Watch Apps #WWDC15. Featured. Session 108. Neil Desai watchos Engineer

Building Watch Apps #WWDC15. Featured. Session 108. Neil Desai watchos Engineer Featured #WWDC15 Building Watch Apps Session 108 Neil Desai watchos Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple. Agenda

More information

Adopting Advanced Features of the New UI

Adopting Advanced Features of the New UI Frameworks #WWDC14 Adopting Advanced Features of the New UI Session 220 Chris Dreessen AppKit Software Engineer! Corbin Dunn AppKit Software Engineer 2014 Apple Inc. All rights reserved. Redistribution

More information

Advanced Scrollviews and Touch Handling Techniques

Advanced Scrollviews and Touch Handling Techniques Frameworks #WWDC14 Advanced Scrollviews and Touch Handling Techniques Session 235 Josh Shaffer ios Apps and Frameworks Engineer Eliza Block ios Apps and Frameworks Engineer 2014 Apple Inc. All rights reserved.

More information

What's New in Core Spotlight

What's New in Core Spotlight Session System Frameworks #WWDC17 What's New in Core Spotlight Search on macos and ios 231 John Hörnkvist, Spotlight Lyn Fong, Spotlight 2017 Apple Inc. All rights reserved. Redistribution or public display

More information

What s New in Cocoa #WWDC14. Frameworks. Session 204 Ali Ozer Director of Cocoa Frameworks

What s New in Cocoa #WWDC14. Frameworks. Session 204 Ali Ozer Director of Cocoa Frameworks Frameworks #WWDC14 What s New in Cocoa Session 204 Ali Ozer Director of Cocoa Frameworks 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from

More information

JavaScript for Automation

JavaScript for Automation Services #WWDC14 JavaScript for Automation Session 306 Sal Soghoian Product Manger Automation Technologies 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written

More information

Advanced Cocoa Text Tips and Tricks. Aki Inoue Cocoa Engineer

Advanced Cocoa Text Tips and Tricks. Aki Inoue Cocoa Engineer Advanced Cocoa Text Tips and Tricks Aki Inoue Cocoa Engineer 2 Introduction Only on Mac OS Diving deeper Understanding the layout process Getting comfortable with extending and customizing base functionalities

More information

Introducing On Demand Resources

Introducing On Demand Resources App Frameworks #WWDC15 Introducing On Demand Resources An element of App Thinning Session 214 Steve Lewallen Frameworks Engineering Tony Parker Cocoa Frameworks 2015 Apple Inc. All rights reserved. Redistribution

More information

WatchKit In-Depth, Part 2

WatchKit In-Depth, Part 2 App Frameworks #WWDC15 WatchKit In-Depth, Part 2 Session 208 Nathan de Vries watchos Engineer Chloe Chang watchos Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted

More information

Managing Documents In Your ios Apps

Managing Documents In Your ios Apps Session #WWDC18 Managing Documents In Your ios Apps 216 Brandon Tennant, Software Engineer Thomas Deniau, Software Engineer Rony Fadel, Software Engineer 2018 Apple Inc. All rights reserved. Redistribution

More information

What s New in NSCollectionView Session 225

What s New in NSCollectionView Session 225 App Frameworks #WWDC15 What s New in NSCollectionView Session 225 Troy Stephens Application Frameworks Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without

More information

Enhancing your apps for the next dimension of touch

Enhancing your apps for the next dimension of touch App Frameworks #WWDC16 A Peek at 3D Touch Enhancing your apps for the next dimension of touch Session 228 Tyler Fox UIKit Frameworks Engineer Peter Hajas UIKit Frameworks Engineer 2016 Apple Inc. All rights

More information

What s New in Xcode App Signing

What s New in Xcode App Signing Developer Tools #WWDC16 What s New in Xcode App Signing Developing and distributing Session 401 Joshua Pennington Tools Engineering Manager Itai Rom Tools Engineer 2016 Apple Inc. All rights reserved.

More information

Improving the Accessibility and Usability of Complex Web Applications

Improving the Accessibility and Usability of Complex Web Applications Media #WWDC14 Improving the Accessibility and Usability of Complex Web Applications Session 516 Jesse Bunch Productivity Engineering 2014 Apple Inc. All rights reserved. Redistribution or public display

More information

Content Protection for HTTP Live Streaming

Content Protection for HTTP Live Streaming Media #WWDC15 Content Protection for HTTP Live Streaming Session 502 Roger Pantos HTTP Live Streaming Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without

More information

Adapting to the New UI of OS X Yosemite

Adapting to the New UI of OS X Yosemite Frameworks #WWDC14 Adapting to the New UI of OS X Yosemite Session 209 Mike Stern User Experience Evangelist! Rachel Goldeen Cocoa Software Engineer! Patrick Heynen Cocoa Engineering Manager 2014 Apple

More information

Introducing CloudKit. A how-to guide for icloud for your Apps. Frameworks #WWDC14. Session 208 Olivier Bonnet CloudKit Client Software

Introducing CloudKit. A how-to guide for icloud for your Apps. Frameworks #WWDC14. Session 208 Olivier Bonnet CloudKit Client Software Frameworks #WWDC14 Introducing CloudKit A how-to guide for icloud for your Apps Session 208 Olivier Bonnet CloudKit Client Software 2014 Apple Inc. All rights reserved. Redistribution or public display

More information

COSC$4355/6355$ $Introduction$to$Ubiquitous$Computing$ Exercise$3$ September!17,!2015!

COSC$4355/6355$ $Introduction$to$Ubiquitous$Computing$ Exercise$3$ September!17,!2015! COSC4355/6355 IntroductiontoUbiquitousComputing Exercise3 September17,2015 Objective Inthisexercise,youwilllearnhowtowriteunittestsforyourapplicationandalsohowtouse NSUserDefaults.WewillalsoimplementObjectiveCCcategories*welearntlastweek.

More information

Index. D, E Damn Vulnerable ios application (DVIA), Data Execution Prevention (DEP), 3 Data storage security,

Index. D, E Damn Vulnerable ios application (DVIA), Data Execution Prevention (DEP), 3 Data storage security, Index A Address Space Layout Randomization (ASLR), 3 Anti-debugging protections, 125 126 Application delegate protocol, 63 ApplicationDidFinishLaunching function, 113 App transport security, 6 Authentication,

More information

Mastering UIKit on tvos

Mastering UIKit on tvos App Frameworks #WWDC16 Mastering UIKit on tvos Session 210 Justin Voss UIKit Engineer 2016 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from

More information

Creating Complications with ClockKit Session 209

Creating Complications with ClockKit Session 209 App Frameworks #WWDC15 Creating Complications with ClockKit Session 209 Eliza Block watchos Engineer Paul Salzman watchos Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display

More information

Mastering Xcode for iphone OS Development Part 2. Marc Verstaen Sr. Manager, iphone Tools

Mastering Xcode for iphone OS Development Part 2. Marc Verstaen Sr. Manager, iphone Tools Mastering Xcode for iphone OS Development Part 2 Marc Verstaen Sr. Manager, iphone Tools 2 Tale of Two Sessions Part 1: Orientation: Tour of complete development cycle Part 2: Mastery: Details of several

More information

Getting the Most Out of HealthKit

Getting the Most Out of HealthKit App Frameworks #WWDC16 Getting the Most Out of HealthKit What s new and best practices Session 209 Matthew Salesi ios Software Engineer Joefrey Kibuule ios Software Engineer 2016 Apple Inc. All rights

More information

Cocoa Touch Best Practices

Cocoa Touch Best Practices App Frameworks #WWDC15 Cocoa Touch Best Practices Session 231 Luke Hiesterman UIKit Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Data IAP 2010 iphonedev.csail.mit.edu edward benson / Thursday, January 14, 2010

Data IAP 2010 iphonedev.csail.mit.edu edward benson / Thursday, January 14, 2010 Data IAP 2010 iphonedev.csail.mit.edu edward benson / eob@csail.mit.edu Today Property Lists User Defaults Settings Panels CoreData Property Lists Today Add persistence. plist 1. Using Property Lists in

More information

What s New in watchos

What s New in watchos Session App Frameworks #WWDC17 What s New in watchos 205 Ian Parks, watchos Engineering 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from

More information

Introducing the Contacts Framework

Introducing the Contacts Framework App Frameworks #WWDC15 Introducing the Contacts Framework For OS X, ios, and watchos Session 223 Bruce Stadnyk ios Contacts Engineer Dave Dribin OS X Contacts Engineer Julien Robert ios Contacts Engineer

More information

View Controller Advancements for ios8

View Controller Advancements for ios8 Frameworks #WWDC14 View Controller Advancements for ios8 Session 214 Bruce D. Nilo Manager, UIKit Fundamentals 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without

More information

What s New in CloudKit

What s New in CloudKit System Frameworks #WWDC15 What s New in CloudKit Session 704 Olivier Bonnet icloud Client Eric Krugler icloud Server 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted

More information

Creating Great App Previews

Creating Great App Previews Services #WWDC14 Creating Great App Previews Session 304 Paul Turner Sr. Operations Manager itunes Digital Supply Chain Engineering 2014 Apple Inc. All rights reserved. Redistribution or public display

More information

Building a Game with SceneKit

Building a Game with SceneKit Graphics and Games #WWDC14 Building a Game with SceneKit Session 610 Amaury Balliet Software Engineer 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written

More information

Engineering for Testability

Engineering for Testability Session Developer Tools #WWDC17 Engineering for Testability 414 Brian Croom, Xcode Engineer Greg Tracy, Xcode Engineer 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted

More information

ITP 342 Mobile App Development. Data Persistence

ITP 342 Mobile App Development. Data Persistence ITP 342 Mobile App Development Data Persistence Persistent Storage Want our app to save its data to persistent storage Any form of nonvolatile storage that survives a restart of the device Want a user

More information

What s New in Cocoa for macos

What s New in Cocoa for macos Session #WWDC18 What s New in Cocoa for macos 209 Ali Ozer, Cocoa Frameworks Chris Dreessen, Cocoa Frameworks Jesse Donaldson, Cocoa Frameworks 2018 Apple Inc. All rights reserved. Redistribution or public

More information

Stanford CS193p. Developing Applications for ios. Fall Stanford CS193p. Fall 2011

Stanford CS193p. Developing Applications for ios. Fall Stanford CS193p. Fall 2011 Developing Applications for ios Today Persistence How to make things stick around between launchings of your app (besides NSUserDefaults) Persistence Property Lists Use writetourl:atomically: and initwithcontentsofurl:

More information

ios Accessibility Developing for everyone Session 201 Ian Fisch ios Accessibility

ios Accessibility Developing for everyone Session 201 Ian Fisch ios Accessibility App Frameworks #WWDC15 ios Accessibility Developing for everyone Session 201 Ian Fisch ios Accessibility 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without written

More information

Designing for Apple Watch

Designing for Apple Watch Design #WWDC15 Designing for Apple Watch Session 802 Mike Stern User Experience Evangelist 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Media and Gaming Accessibility

Media and Gaming Accessibility Session System Frameworks #WWDC17 Media and Gaming Accessibility 217 Greg Hughes, Software Engineering Manager Charlotte Hill, Software Engineer 2017 Apple Inc. All rights reserved. Redistribution or public

More information

imessage Apps and Stickers, Part 2

imessage Apps and Stickers, Part 2 App Frameworks #WWDC16 imessage Apps and Stickers, Part 2 Interactive Messages Session 224 Alex Carter Messages Engineer Stephen Lottermoser Messages Engineer 2016 Apple Inc. All rights reserved. Redistribution

More information

Advanced Memory Analysis with Instruments. Daniel Delwood Performance Tools Engineer

Advanced Memory Analysis with Instruments. Daniel Delwood Performance Tools Engineer Advanced Memory Analysis with Instruments Daniel Delwood Performance Tools Engineer 2 Memory Analysis What s the issue? Memory is critical to performance Limited resource Especially on iphone OS 3 4 Memory

More information

Kevin van Vechten Core OS

Kevin van Vechten Core OS Kevin van Vechten Core OS 2 3 Bill Bumgarner 4 (lambda (a) (add a d)) 10 timesrepeat:[pen turn:d; draw] z.each { val puts(val + d.to_s)} repeat(10, ^{ putc('0'+ d); }); 5 6 7 8 ^ 9 [myset objectspassingtest:

More information

Mastering Drag and Drop

Mastering Drag and Drop Session App Frameworks #WWDC17 Mastering Drag and Drop 213 Tom Adriaenssen, UIKit Wenson Hsieh, WebKit Robb Böhnke, UIKit 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted

More information

Getting to Know Swift Package Manager

Getting to Know Swift Package Manager #WWDC18 Getting to Know Swift Package Manager Session 411 Rick Ballard, SwiftPM Release Manager Boris Buegling, Developer Tools Engineer 2018 Apple Inc. All rights reserved. Redistribution or public display

More information

Profiling in Depth. Do you know where your code is? Session 412. Kris Markel Performance Tools Engineer Chad Woolf Performance Tools Engineer

Profiling in Depth. Do you know where your code is? Session 412. Kris Markel Performance Tools Engineer Chad Woolf Performance Tools Engineer Developer Tools #WWDC15 Profiling in Depth Do you know where your code is? Session 412 Kris Markel Performance Tools Engineer Chad Woolf Performance Tools Engineer 2015 Apple Inc. All rights reserved.

More information

What's New in UIKit Dynamics and Visual Effects Session 229

What's New in UIKit Dynamics and Visual Effects Session 229 App Frameworks #WWDC15 What's New in UIKit Dynamics and Visual Effects Session 229 Michael Turner UIKit Engineer David Duncan UIKit Engineer 2015 Apple Inc. All rights reserved. Redistribution or public

More information

CloudKit Tips And Tricks

CloudKit Tips And Tricks System Frameworks #WWDC15 CloudKit Tips And Tricks Session 715 Nihar Sharma CloudKit Engineer 2015 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Stanford CS193p. Developing Applications for ios. Fall Stanford CS193p. Fall 2011

Stanford CS193p. Developing Applications for ios. Fall Stanford CS193p. Fall 2011 Developing Applications for ios Today icloud Sharing documents among a user s devices Fundamentally: nothing more than a URL of a shared directory However, since it is over the network, there are lots

More information

Advanced Debugging and the Address Sanitizer

Advanced Debugging and the Address Sanitizer Developer Tools #WWDC15 Advanced Debugging and the Address Sanitizer Finding your undocumented features Session 413 Mike Swingler Xcode UI Infrastructure Anna Zaks LLVM Program Analysis 2015 Apple Inc.

More information

Introduction to Siri Shortcuts

Introduction to Siri Shortcuts #WWDC8 Introduction to Siri Shortcuts Session 2 Ari Weinstein, Siri Willem Mattelaer, Siri 208 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Mastering Xcode for iphone OS Development Part 1. Todd Fernandez Sr. Manager, IDEs

Mastering Xcode for iphone OS Development Part 1. Todd Fernandez Sr. Manager, IDEs Mastering Xcode for iphone OS Development Part 1 Todd Fernandez Sr. Manager, IDEs 2 3 Customer Reviews Write a Review Current Version (1) All Versions (24) Gorgeous and Addictive Report a Concern by Play

More information

What s New in Core Data?

What s New in Core Data? Session App Frameworks #WWDC17 What s New in Core? Persisting since 2004 210 Melissa Turner, Core Engineer Rishi Verma, Core Engineer 2017 Apple Inc. All rights reserved. Redistribution or public display

More information

Login with Amazon. Getting Started Guide for ios apps

Login with Amazon. Getting Started Guide for ios apps Login with Amazon Getting Started Guide for ios apps Login with Amazon: Getting Started Guide for ios Copyright 2017 Amazon.com, Inc., or its affiliates. All rights reserved. Amazon and the Amazon logo

More information

What s New in Foundation for Swift Session 207

What s New in Foundation for Swift Session 207 App Frameworks #WWDC16 What s New in Foundation for Swift Session 207 Tony Parker Foundation, Apple Michael LeHew Foundation, Apple 2016 Apple Inc. All rights reserved. Redistribution or public display

More information

Creating Content with iad JS

Creating Content with iad JS Creating Content with iad JS Part 2 The iad JS Framework Antoine Quint iad JS Software Engineer ios Apps and Frameworks 2 Agenda Motivations and Features of iad JS Core JavaScript Enhancements Working

More information

What s New in Testing

What s New in Testing #WWDC18 What s New in Testing Session 403 Honza Dvorsky, Xcode Engineer Ethan Vaughan, Xcode Engineer 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written

More information

Introducing Password AutoFill for Apps

Introducing Password AutoFill for Apps Session App Frameworks #WWDC17 Introducing Password AutoFill for Apps Reducing friction for your users 206 Ricky Mondello, ios Engineer 2017 Apple Inc. All rights reserved. Redistribution or public display

More information

What s New in Notifications

What s New in Notifications System Frameworks #WWDC15 What s New in Notifications Session 720 Michele Campeotto ios Notifications Gokul Thirumalai Apple Push Notification Service 2015 Apple Inc. All rights reserved. Redistribution

More information

Localizing with Xcode 6

Localizing with Xcode 6 Tools #WWDC14 Localizing with Xcode 6 Best practices and new workflows Session 412 Zoltan Foley-Fisher Xcode Software Engineer! Chris Hanson Xcode Software Engineer 2014 Apple Inc. All rights reserved.

More information

What s New in imessage Apps

What s New in imessage Apps Session App Frameworks #WWDC17 What s New in imessage Apps 234 Eugene Bistolas, Messages Engineer Jay Chae, Messages Engineer Stephen Lottermoser, Messages Engineer 2017 Apple Inc. All rights reserved.

More information

Introducing Search APIs

Introducing Search APIs System Frameworks #WWDC15 Introducing Search APIs Increase app usage and discoverability Session 709 Vipul Ved Prakash Siri Dave Salim Siri Jason Douglas Siri 2015 Apple Inc. All rights reserved. Redistribution

More information

What s New in Core Location

What s New in Core Location Core OS What s New in Core Location Session 706 Stephen Rhee Engineering Manager 2014 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple.

More information

New UIKit Support for International User Interfaces

New UIKit Support for International User Interfaces App Frameworks #WWDC15 New UIKit Support for International User Interfaces Session 222 Sara Radi Internationalization Software Engineer Aaltan Ahmad Internationalization Software Engineer Paul Borokhov

More information

Networking with NSURLSession

Networking with NSURLSession System Frameworks #WWDC15 Networking with NSURLSession Session 711 Luke Case Software Engineer Andreas Garkuscha Software Engineer Dan Vinegrad Software Engineer 2015 Apple Inc. All rights reserved. Redistribution

More information

Vision Framework. Building on Core ML. Media #WWDC17. Brett Keating, Apple Manager Frank Doepke, He who wires things together

Vision Framework. Building on Core ML. Media #WWDC17. Brett Keating, Apple Manager Frank Doepke, He who wires things together Session Media #WWDC17 Vision Framework Building on Core ML 506 Brett Keating, Apple Manager Frank Doepke, He who wires things together 2017 Apple Inc. All rights reserved. Redistribution or public display

More information

Modern User Interaction on ios

Modern User Interaction on ios App Frameworks #WWDC17 Modern User Interaction on ios Mastering the UIKit UIGesture System Session 219 Dominik Wagner, UIKit Engineer Michael Turner, UIKit Engineer Glen Low, UIKit Engineer 2017 Apple

More information

What s New in SiriKit

What s New in SiriKit Session App Frameworks #WWDC17 What s New in SiriKit 214 Sirisha Yerroju, SiriKit Engineer Tin Tran, SiriKit Engineer 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted

More information

Thread Sanitizer and Static Analysis

Thread Sanitizer and Static Analysis Developer Tools #WWDC16 Thread Sanitizer and Static Analysis Help with finding bugs in your code Session 412 Anna Zaks Manager, Program Analysis Team Devin Coughlin Engineer, Program Analysis Team 2016

More information

App SandBox Directory

App SandBox Directory Data Persistence Sisoft Technologies Pvt Ltd SRC E7, Shipra Riviera Bazar, Gyan Khand-3, Indirapuram, Ghaziabad Website: www.sisoft.in Email:info@sisoft.in Phone: +91-9999-283-283 App SandBox Directory

More information

Your Apps and the Future of macos Security

Your Apps and the Future of macos Security #WWDC18 Your Apps and the Future of macos Security Pierre-Olivier Martel, Security Engineering Manager Kelly Yancey, OS Security Garrett Jacobson, Trusted Execution 2018 Apple Inc. All rights reserved.

More information

ios Application Development Course Details

ios Application Development Course Details ios Application Development Course Details By Besant Technologies Course Name Category Venue ios Application Development Mobile Application Development Besant Technologies No.24, Nagendra Nagar, Velachery

More information

Finding Bugs Using Xcode Runtime Tools

Finding Bugs Using Xcode Runtime Tools Session Developer Tools #WWDC17 Finding Bugs Using Xcode Runtime Tools 406 Kuba Mracek, Program Analysis Engineer Vedant Kumar, Compiler Engineer 2017 Apple Inc. All rights reserved. Redistribution or

More information

Understanding Undefined Behavior

Understanding Undefined Behavior Session Developer Tools #WWDC17 Understanding Undefined Behavior 407 Fred Riss, Clang Team Ryan Govostes, Security Engineering and Architecture Team Anna Zaks, Program Analysis Team 2017 Apple Inc. All

More information

Game Center Techniques, Part 1

Game Center Techniques, Part 1 Game Center Techniques, Part 1 Get Your Game On Gabriel Belinsky Senior Software Engineer 2 Game Center Friends Leaderboards Achievements Multiplayer gaming 3 What You ll Learn Game Center API basics Authenticate

More information

Announcements. Today s Topics

Announcements. Today s Topics Announcements Lab 2 is due tonight by 11:59 PM Late policy is 10% of lab total per day late So -7.5 points per day late for lab 2 Labs 3 and 4 are posted on the course website Extensible Networking Platform

More information

Cisco StadiumVision Mobile API for Apple ios

Cisco StadiumVision Mobile API for Apple ios CHAPTER 1 Revised: March 28, 2013 Introduction to The ios SDK is provided as a set of static libraries, header files, and an a sample ios app (with a complete Xcode project). This API uses Objective-C

More information

Multitasking Support on the ios Platform

Multitasking Support on the ios Platform Multitasking Support on the ios Platform Priya Rajagopal Invicara (www.invicara.com) @rajagp Multitasking on ios? Multitasking allows apps to perform certain tasks in the background while you're using

More information

ITP 342 Mobile App Development. Singleton

ITP 342 Mobile App Development. Singleton ITP 342 Mobile App Development Singleton Shared Model Object A singleton is a special kind of class where only one instance of the class exists for the current process. In the case of an iphone app, the

More information

Core ML in Depth. System Frameworks #WWDC17. Krishna Sridhar, Core ML Zach Nation, Core ML

Core ML in Depth. System Frameworks #WWDC17. Krishna Sridhar, Core ML Zach Nation, Core ML System Frameworks #WWDC17 Core ML in Depth Krishna Sridhar, Core ML Zach Nation, Core ML 2017 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from

More information

ITP 342 Mobile App Development. Data Persistence

ITP 342 Mobile App Development. Data Persistence ITP 342 Mobile App Development Data Persistence Persistent Storage Want our app to save its data to persistent storage Any form of nonvolatile storage that survives a restart of the device Want a user

More information

What s New in TVMLKit

What s New in TVMLKit #WWDC18 What s New in TVMLKit Session 238 Jeremy Foo, tvos Engineering 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission from Apple. Web Inspector

More information

Creating Audio Apps for watchos

Creating Audio Apps for watchos Session #WWDC18 Creating Audio Apps for watchos 504 Neil Desai, watchos Frameworks Engineer 2018 Apple Inc. All rights reserved. Redistribution or public display not permitted without written permission

More information

Leveraging Touch Input on ios

Leveraging Touch Input on ios App Frameworks #WWDC16 Leveraging Touch Input on ios And getting the most out of Apple Pencil Session 220 Dominik Wagner UIKit Engineer 2016 Apple Inc. All rights reserved. Redistribution or public display

More information

Getting the Most out of Playgrounds in Xcode

Getting the Most out of Playgrounds in Xcode #WWDC18 Getting the Most out of Playgrounds in Xcode Session 402 Tibet Rooney-Rabdau, Xcode Engineer Alex Brown, Core OS Engineer TJ Usiyan, Xcode Engineer 2018 Apple Inc. All rights reserved. Redistribution

More information

Address Book for iphone

Address Book for iphone Address Book for iphone The people s framework Alexandre Aybes iphone Software Engineer 2 3 Address Book for iphone The people s framework Alexandre Aybes iphone Software Engineer 4 What We Will Cover

More information

Creating Extensions for Safari

Creating Extensions for Safari Creating Extensions for Safari Part One Timothy Hatcher Safari and WebKit Engineer 2 3 HTML5 CSS3 JavaScript Native Code 4 Cross Platform Secure Crashes 5 What You ll Learn When to make a Safari Extension

More information

ArcGIS Viewer for Microsoft Silverlight An Introduction

ArcGIS Viewer for Microsoft Silverlight An Introduction Esri International User Conference San Diego, CA Technical Workshops July 12, 2011 ArcGIS Viewer for Microsoft Silverlight An Introduction Art Haddad, Rich Zwaap, and Derek Law Agenda Background Product

More information

Improving your Existing Apps with Swift

Improving your Existing Apps with Swift Developer Tools #WWDC15 Improving your Existing Apps with Swift Getting Swifty with It Session 403 Woody L. in the Sea of Swift 2015 Apple Inc. All rights reserved. Redistribution or public display not

More information