Are you over 18 and want to see adult content?
More Annotations
A complete backup of karatashaliyikama.com
Are you over 18 and want to see adult content?
A complete backup of credit-agricole.fr
Are you over 18 and want to see adult content?
A complete backup of catholicphilly.com
Are you over 18 and want to see adult content?
A complete backup of windycitizen.com
Are you over 18 and want to see adult content?
A complete backup of needmagazine.com
Are you over 18 and want to see adult content?
A complete backup of webdirections.org
Are you over 18 and want to see adult content?
Favourite Annotations
A complete backup of linguistixtank.com
Are you over 18 and want to see adult content?
A complete backup of westherrdodge.net
Are you over 18 and want to see adult content?
A complete backup of dailynebraskan.com
Are you over 18 and want to see adult content?
A complete backup of fiebredecabina.com
Are you over 18 and want to see adult content?
A complete backup of jetsetparking.com
Are you over 18 and want to see adult content?
Text
OLE BEGEMANN
My favorite books 2020. Mostly non-fiction books this year. Some in English, some in German. More >. December 31, 2020. HOW ORDEREDSET WORKS The new Swift Collections library provides efficient Swift implementations for useful data structures, starting with Deque, OrderedSet, and OrderedDictionary in the initial release.. The documentation for OrderedSet says this about the implementation:. An OrderedSet stores its members in a regular Array value (exposed by the elements property). It also maintains a standalone hash table SANITIZING GPX FILES FOR PUBLIC SHARING ROY FIELDING’S REST DISSERTATION MEASUREMENTS AND UNITS IN FOUNDATION C CALLBACKS IN SWIFT C Callbacks in Swift. Update November 12, 2017: In the iOS 11 and macOS 10.13 SDKs, Apple added new CGPath.applyWithBlock (_:) (Swift) and CGPathApplyWithBlock (C/Objective-C) APIs. This means this article is no longer relevant for this particular example (unless you need to support older OS versions). However, the principles I discuss here HOW TO IMPORT A C LIBRARY IN SWIFT USING THE SWIFT PACKAGE At the time of writing, cmark 0.28.3 was the most recent version. 2. Wrapping cmark in a module. In C, you’d now #include one or more of the library’s header files to make their declarations visible to your own code. Swift can’t handle C header files directly; it expects dependencies to be modules.For a C or Objective-C library to be visible to the Swift compiler, the library must 10 THINGS YOU NEED TO KNOW ABOUT COCOA AUTO LAYOUT Adopting Auto Layout can be a pain even for experienced Cocoa developers. Interface Builder seems to have a mind of its own, and working with layout constraints in code and for animations requires a major rethinking. Here are a few simple rules that A BETTER NSMANAGEDOBJECTCONTEXT .PERFORMANDWAIT APPLE ON APP ANALYTICS AND PRIVACY In the Platforms State of the Union session at WWDC yesterday, Apple announced that they are going to offer app analytics in iTunes Connect to developers later in 2014: These analytics will tell you how many users visited your store pages; how many users went on and purchased your app; how many remained active over time. And best of allOLE BEGEMANN
My favorite books 2020. Mostly non-fiction books this year. Some in English, some in German. More >. December 31, 2020. HOW ORDEREDSET WORKS The new Swift Collections library provides efficient Swift implementations for useful data structures, starting with Deque, OrderedSet, and OrderedDictionary in the initial release.. The documentation for OrderedSet says this about the implementation:. An OrderedSet stores its members in a regular Array value (exposed by the elements property). It also maintains a standalone hash table SANITIZING GPX FILES FOR PUBLIC SHARING ROY FIELDING’S REST DISSERTATION MEASUREMENTS AND UNITS IN FOUNDATION C CALLBACKS IN SWIFT C Callbacks in Swift. Update November 12, 2017: In the iOS 11 and macOS 10.13 SDKs, Apple added new CGPath.applyWithBlock (_:) (Swift) and CGPathApplyWithBlock (C/Objective-C) APIs. This means this article is no longer relevant for this particular example (unless you need to support older OS versions). However, the principles I discuss here HOW TO IMPORT A C LIBRARY IN SWIFT USING THE SWIFT PACKAGE At the time of writing, cmark 0.28.3 was the most recent version. 2. Wrapping cmark in a module. In C, you’d now #include one or more of the library’s header files to make their declarations visible to your own code. Swift can’t handle C header files directly; it expects dependencies to be modules.For a C or Objective-C library to be visible to the Swift compiler, the library must 10 THINGS YOU NEED TO KNOW ABOUT COCOA AUTO LAYOUT Adopting Auto Layout can be a pain even for experienced Cocoa developers. Interface Builder seems to have a mind of its own, and working with layout constraints in code and for animations requires a major rethinking. Here are a few simple rules that A BETTER NSMANAGEDOBJECTCONTEXT .PERFORMANDWAIT APPLE ON APP ANALYTICS AND PRIVACY In the Platforms State of the Union session at WWDC yesterday, Apple announced that they are going to offer app analytics in iTunes Connect to developers later in 2014: These analytics will tell you how many users visited your store pages; how many users went on and purchased your app; how many remained active over time. And best of allOLE BEGEMANN
My favorite books 2020. Mostly non-fiction books this year. Some in English, some in German. More >. December 31, 2020. HOW ORDEREDSET WORKS The new Swift Collections library provides efficient Swift implementations for useful data structures, starting with Deque, OrderedSet, and OrderedDictionary in the initial release.. The documentation for OrderedSet says this about the implementation:. An OrderedSet stores its members in a regular Array value (exposed by the elements property). It also maintains a standalone hash table WHERE IS END-TO-END ENCRYPTION FOR ICLOUD? If you enable iMessage syncing via iCloud, Apple will use end-to-end encryption to store your messages and will no longer include Messages data in iCloud backups. But that doesn’t change the fundamental problem because iCloud backups will still include a decryption key for your “end-to-end encrypted” messages: Messages in iCloud also uses THE RAWREPRESENTABLE PROTOCOL IN SWIFT The raw value syntax for enums in Swift is “just” a shorthand for conformance to the RawRepresentable protocol. It’s easy to add this manually if you want to use otherwise unsupported types as raw values. When you define an enum in Swift, you can choose to have each enum case “backed” by a raw value. For example, here’s an enum that ENUMERATING ENUM CASES IN SWIFT Enumerating enum cases in Swift. New in Swift 4.2, the compiler can generate a collection of an enum’s cases, relieving you from the error-prone task of maintaining such a list yourself. The Swift Evolution proposal that introduced this feature is SE-0194.CGPATH HIT TESTING
In Mac OS X 10.7 and iOS 5.0, Apple added a function named CGPathCreateCopyByStrokingPath() to the Core Graphics framework that is surprisingly useful. In this post, we cover the usage of this function for hit testing on CGPath outlines and for stroking theoutline of a
PLEASE DON'T USE URL SHORTENERS ON TWITTER Short URLs don’t save characters anymore. For almost a year now, Twitter has been wrapping every URL in a t.co link. All URLs cost the same amount of characters. 2. , regardless of their original length. The one reason why link shorteners got so popular (indispensable, in fact) on Twitter is no longer valid. Thankfully, Twitter was smart STARTING WITH BLUETOOTH LOW ENERGY DEVELOPMENT ON IOS If you want to start with Bluetooth LE development, you need a few things: An iOS device with hardware support for Bluetooth 4.0. All devices Apple released since the iPhone 4S (including the 4S) do, the older ones don’t. See the per-device feature list on Wikipedia for details. The iOS Simulator only supports Core Bluetooth if yourMac’s
APPLE ON APP ANALYTICS AND PRIVACY In the Platforms State of the Union session at WWDC yesterday, Apple announced that they are going to offer app analytics in iTunes Connect to developers later in 2014: These analytics will tell you how many users visited your store pages; how many users went on and purchased your app; how many remained active over time. And best of all HOW TO TEST A SWIFT PACKAGE ON LINUX USING DOCKER Speaking of testing on Linux, how do you test your Swift package on Linux when your development machine is a Mac? Here’s a quick way to set up a Linux testing environment using Docker containers. I’m assuming for the following that you have an existing project that works with the Swift Package Manager, i.e. you can run swift build and swift test from the project directory on your Mac.OLE BEGEMANN
My favorite books 2020. Mostly non-fiction books this year. Some in English, some in German. More >. December 31, 2020. HOW ORDEREDSET WORKS The new Swift Collections library provides efficient Swift implementations for useful data structures, starting with Deque, OrderedSet, and OrderedDictionary in the initial release.. The documentation for OrderedSet says this about the implementation:. An OrderedSet stores its members in a regular Array value (exposed by the elements property). It also maintains a standalone hash tableADVANCED SWIFT
Hopefully, once you’ve read our book, you’ll have gone from being aware of the basics of the language to knowing about many advanced features and having a much better understanding of how Swift works. Here’s a chapter overview: Built-in Collections. Optionals.Functions.
ROY FIELDING’S REST DISSERTATION WHERE IS END-TO-END ENCRYPTION FOR ICLOUD? If you enable iMessage syncing via iCloud, Apple will use end-to-end encryption to store your messages and will no longer include Messages data in iCloud backups. But that doesn’t change the fundamental problem because iCloud backups will still include a decryption key for your “end-to-end encrypted” messages: Messages in iCloud also usesSTRINGS IN SWIFT 3
This is an excerpt from the Strings chapter in Advanced Swift. Chris Eidhof and I are currently updating the book for Swift 3 (and improving it in the process). This section on strings was originally written by Airspeed Velocity for the first edition of the book, and Chris and myself updated it for the upcoming edition.. I first wrote about Strings in Swift 1 two years ago (and about Unicode HOW TO IMPORT A C LIBRARY IN SWIFT USING THE SWIFT PACKAGE At the time of writing, cmark 0.28.3 was the most recent version. 2. Wrapping cmark in a module. In C, you’d now #include one or more of the library’s header files to make their declarations visible to your own code. Swift can’t handle C header files directly; it expects dependencies to be modules.For a C or Objective-C library to be visible to the Swift compiler, the library must C CALLBACKS IN SWIFT C Callbacks in Swift. Update November 12, 2017: In the iOS 11 and macOS 10.13 SDKs, Apple added new CGPath.applyWithBlock (_:) (Swift) and CGPathApplyWithBlock (C/Objective-C) APIs. This means this article is no longer relevant for this particular example (unless you need to support older OS versions). However, the principles I discuss here 10 THINGS YOU NEED TO KNOW ABOUT COCOA AUTO LAYOUT Adopting Auto Layout can be a pain even for experienced Cocoa developers. Interface Builder seems to have a mind of its own, and working with layout constraints in code and for animations requires a major rethinking. Here are a few simple rules that HOW DROPBOX USES C++ FOR CROSS-PLATFORM IOS AND ANDROIDSEE MORE ONOLEB.NET
OLE BEGEMANN
My favorite books 2020. Mostly non-fiction books this year. Some in English, some in German. More >. December 31, 2020. HOW ORDEREDSET WORKS The new Swift Collections library provides efficient Swift implementations for useful data structures, starting with Deque, OrderedSet, and OrderedDictionary in the initial release.. The documentation for OrderedSet says this about the implementation:. An OrderedSet stores its members in a regular Array value (exposed by the elements property). It also maintains a standalone hash tableADVANCED SWIFT
Hopefully, once you’ve read our book, you’ll have gone from being aware of the basics of the language to knowing about many advanced features and having a much better understanding of how Swift works. Here’s a chapter overview: Built-in Collections. Optionals.Functions.
ROY FIELDING’S REST DISSERTATION WHERE IS END-TO-END ENCRYPTION FOR ICLOUD? If you enable iMessage syncing via iCloud, Apple will use end-to-end encryption to store your messages and will no longer include Messages data in iCloud backups. But that doesn’t change the fundamental problem because iCloud backups will still include a decryption key for your “end-to-end encrypted” messages: Messages in iCloud also usesSTRINGS IN SWIFT 3
This is an excerpt from the Strings chapter in Advanced Swift. Chris Eidhof and I are currently updating the book for Swift 3 (and improving it in the process). This section on strings was originally written by Airspeed Velocity for the first edition of the book, and Chris and myself updated it for the upcoming edition.. I first wrote about Strings in Swift 1 two years ago (and about Unicode HOW TO IMPORT A C LIBRARY IN SWIFT USING THE SWIFT PACKAGE At the time of writing, cmark 0.28.3 was the most recent version. 2. Wrapping cmark in a module. In C, you’d now #include one or more of the library’s header files to make their declarations visible to your own code. Swift can’t handle C header files directly; it expects dependencies to be modules.For a C or Objective-C library to be visible to the Swift compiler, the library must C CALLBACKS IN SWIFT C Callbacks in Swift. Update November 12, 2017: In the iOS 11 and macOS 10.13 SDKs, Apple added new CGPath.applyWithBlock (_:) (Swift) and CGPathApplyWithBlock (C/Objective-C) APIs. This means this article is no longer relevant for this particular example (unless you need to support older OS versions). However, the principles I discuss here 10 THINGS YOU NEED TO KNOW ABOUT COCOA AUTO LAYOUT Adopting Auto Layout can be a pain even for experienced Cocoa developers. Interface Builder seems to have a mind of its own, and working with layout constraints in code and for animations requires a major rethinking. Here are a few simple rules that HOW DROPBOX USES C++ FOR CROSS-PLATFORM IOS AND ANDROIDSEE MORE ONOLEB.NET
ADVANCED SWIFT
Hopefully, once you’ve read our book, you’ll have gone from being aware of the basics of the language to knowing about many advanced features and having a much better understanding of how Swift works. Here’s a chapter overview: Built-in Collections. Optionals.Functions.
THE RAWREPRESENTABLE PROTOCOL IN SWIFT The raw value syntax for enums in Swift is “just” a shorthand for conformance to the RawRepresentable protocol. It’s easy to add this manually if you want to use otherwise unsupported types as raw values. When you define an enum in Swift, you can choose to have each enum case “backed” by a raw value. For example, here’s an enum that SCROLL VIEWS INSIDE SCROLL VIEWS In this article, I am introducing OLEContainerScrollView, a UIScrollView subclass that allows you to add multiple scroll views, table views, or collection views to the same container.. Use Cases. You can use OLEContainerScrollView to achieve the following things:. Place multiple scroll views (or table views, or collection views) below each other so that their scrolling behavior still feels 10 THINGS YOU NEED TO KNOW ABOUT COCOA AUTO LAYOUT Adopting Auto Layout can be a pain even for experienced Cocoa developers. Interface Builder seems to have a mind of its own, and working with layout constraints in code and for animations requires a major rethinking. Here are a few simple rules that HOW DROPBOX USES C++ FOR CROSS-PLATFORM IOS AND ANDROID Update August 15, 2019: Five years after I wrote this, Dropbox’s Eyal Guthmann announced that Dropbox has completely backed off from this strategy of using C++ for code sharing between iOS and Android in favor of using each platform’s native languages and SDKs directly. Eyal’s article is a very honest account of the downsides of choosing a non-standard tech stack, from integrating with STEVE JOBS ON NATIVE APPS Here’s another Steve Jobs quote from the collection of Jobs’s appearances at the D conference, this time from the 2007 interview he gave together with Bill Gates.. Starting at minute 37:27, Walt Mossberg asks Jobs and Gates about rich vs. thin clients. PASSING DATA BETWEEN VIEW CONTROLLERS Others proposed to declare a custom datasource protocol that DestinationViewController uses to obtain the data it needs from its data source (usually its parent view controller), much like UITableView works. This is also a good suggestion. It involves a few more lines of code but makes the coupling between the objects evenlooser.
A BETTER NSMANAGEDOBJECTCONTEXT .PERFORMANDWAIT We can use the same trick for our problem. Check out the relevant code in the Swift repository. And here’s the verbatim copy of the code (I only changed the function names) for performAndWait: extension NSManagedObjectContext { func performAndWait(_ block: () throws -> T) rethrows -> T { return try _performAndWaitHelper( fn: performAndWait CORE DATA CONCURRENCY DEBUGGING Core Data Concurrency Debugging. In iOS 8 and OS X Yosemite, Core Data gains the ability to detect and report violations of its concurrency model. 1. I think this is a very valuable feature because accessing a managed object context from the wrong queue is a simple mistake to make and can be fatal if it causes your users’ data to get PLEASE DON'T USE URL SHORTENERS ON TWITTER Short URLs don’t save characters anymore. For almost a year now, Twitter has been wrapping every URL in a t.co link. All URLs cost the same amount of characters. 2. , regardless of their original length. The one reason why link shorteners got so popular (indispensable, in fact) on Twitter is no longer valid. Thankfully, Twitter was smartOLE BEGEMANN
My favorite books 2020. Mostly non-fiction books this year. Some in English, some in German. More >. December 31, 2020. SANITIZING GPX FILES FOR PUBLIC SHARING ROY FIELDING’S REST DISSERTATION WHERE IS END-TO-END ENCRYPTION FOR ICLOUD? If you enable iMessage syncing via iCloud, Apple will use end-to-end encryption to store your messages and will no longer include Messages data in iCloud backups. But that doesn’t change the fundamental problem because iCloud backups will still include a decryption key for your “end-to-end encrypted” messages: Messages in iCloud also uses MEASUREMENTS AND UNITS IN FOUNDATION HOW TO IMPORT A C LIBRARY IN SWIFT USING THE SWIFT PACKAGE At the time of writing, cmark 0.28.3 was the most recent version. 2. Wrapping cmark in a module. In C, you’d now #include one or more of the library’s header files to make their declarations visible to your own code. Swift can’t handle C header files directly; it expects dependencies to be modules.For a C or Objective-C library to be visible to the Swift compiler, the library must C CALLBACKS IN SWIFT C Callbacks in Swift. Update November 12, 2017: In the iOS 11 and macOS 10.13 SDKs, Apple added new CGPath.applyWithBlock (_:) (Swift) and CGPathApplyWithBlock (C/Objective-C) APIs. This means this article is no longer relevant for this particular example (unless you need to support older OS versions). However, the principles I discuss here THE RAWREPRESENTABLE PROTOCOL IN SWIFT The raw value syntax for enums in Swift is “just” a shorthand for conformance to the RawRepresentable protocol. It’s easy to add this manually if you want to use otherwise unsupported types as raw values. When you define an enum in Swift, you can choose to have each enum case “backed” by a raw value. For example, here’s an enum that 10 THINGS YOU NEED TO KNOW ABOUT COCOA AUTO LAYOUT Adopting Auto Layout can be a pain even for experienced Cocoa developers. Interface Builder seems to have a mind of its own, and working with layout constraints in code and for animations requires a major rethinking. Here are a few simple rules that A BETTER NSMANAGEDOBJECTCONTEXT .PERFORMANDWAITOLE BEGEMANN
My favorite books 2020. Mostly non-fiction books this year. Some in English, some in German. More >. December 31, 2020. SANITIZING GPX FILES FOR PUBLIC SHARING ROY FIELDING’S REST DISSERTATION WHERE IS END-TO-END ENCRYPTION FOR ICLOUD? If you enable iMessage syncing via iCloud, Apple will use end-to-end encryption to store your messages and will no longer include Messages data in iCloud backups. But that doesn’t change the fundamental problem because iCloud backups will still include a decryption key for your “end-to-end encrypted” messages: Messages in iCloud also uses MEASUREMENTS AND UNITS IN FOUNDATION HOW TO IMPORT A C LIBRARY IN SWIFT USING THE SWIFT PACKAGE At the time of writing, cmark 0.28.3 was the most recent version. 2. Wrapping cmark in a module. In C, you’d now #include one or more of the library’s header files to make their declarations visible to your own code. Swift can’t handle C header files directly; it expects dependencies to be modules.For a C or Objective-C library to be visible to the Swift compiler, the library must C CALLBACKS IN SWIFT C Callbacks in Swift. Update November 12, 2017: In the iOS 11 and macOS 10.13 SDKs, Apple added new CGPath.applyWithBlock (_:) (Swift) and CGPathApplyWithBlock (C/Objective-C) APIs. This means this article is no longer relevant for this particular example (unless you need to support older OS versions). However, the principles I discuss here THE RAWREPRESENTABLE PROTOCOL IN SWIFT The raw value syntax for enums in Swift is “just” a shorthand for conformance to the RawRepresentable protocol. It’s easy to add this manually if you want to use otherwise unsupported types as raw values. When you define an enum in Swift, you can choose to have each enum case “backed” by a raw value. For example, here’s an enum that 10 THINGS YOU NEED TO KNOW ABOUT COCOA AUTO LAYOUT Adopting Auto Layout can be a pain even for experienced Cocoa developers. Interface Builder seems to have a mind of its own, and working with layout constraints in code and for animations requires a major rethinking. Here are a few simple rules that A BETTER NSMANAGEDOBJECTCONTEXT .PERFORMANDWAITOLE BEGEMANN
My favorite books 2020. Mostly non-fiction books this year. Some in English, some in German. More >. December 31, 2020. AUTOMATIC TEST DISCOVERY IN SWIFT ON LINUX In 2017, I wrote an article titled Keeping XCTest in sync on Linux.In it, I proposed to add some code to your test classes that would alert you when you forget to update the allTests array after adding a test method.. Swift 5.1 ships with a much better solution: automatic test discovery on non-Apple platforms, such as Linux and Windows. 10 THINGS YOU NEED TO KNOW ABOUT COCOA AUTO LAYOUT Adopting Auto Layout can be a pain even for experienced Cocoa developers. Interface Builder seems to have a mind of its own, and working with layout constraints in code and for animations requires a major rethinking. Here are a few simple rules that ENUMERATING ENUM CASES IN SWIFT Enumerating enum cases in Swift. New in Swift 4.2, the compiler can generate a collection of an enum’s cases, relieving you from the error-prone task of maintaining such a list yourself. The Swift Evolution proposal that introduced this feature is SE-0194.CGPATH HIT TESTING
In Mac OS X 10.7 and iOS 5.0, Apple added a function named CGPathCreateCopyByStrokingPath() to the Core Graphics framework that is surprisingly useful. In this post, we cover the usage of this function for hit testing on CGPath outlines and for stroking theoutline of a
STARTING WITH BLUETOOTH LOW ENERGY DEVELOPMENT ON IOS This is another option that is both cheaper and more flexible. The Texas Instruments CC2541 SensorTag is a small gadget (about the size of a remote car key) and includes a temperature sensor (IR), a humidity sensor, an accelerometer, a gyroscope, a magnetometer and two buttons, all of which you can query via Bluetooth LE. And the best part: it’s only $25, including worldwide shipping! HOW DROPBOX USES C++ FOR CROSS-PLATFORM IOS AND ANDROID Update August 15, 2019: Five years after I wrote this, Dropbox’s Eyal Guthmann announced that Dropbox has completely backed off from this strategy of using C++ for code sharing between iOS and Android in favor of using each platform’s native languages and SDKs directly. Eyal’s article is a very honest account of the downsides of choosing a non-standard tech stack, from integrating with PLEASE DON'T USE URL SHORTENERS ON TWITTER Short URLs don’t save characters anymore. For almost a year now, Twitter has been wrapping every URL in a t.co link. All URLs cost the same amount of characters. 2. , regardless of their original length. The one reason why link shorteners got so popular (indispensable, in fact) on Twitter is no longer valid. Thankfully, Twitter was smart HOW TO TEST A SWIFT PACKAGE ON LINUX USING DOCKER Speaking of testing on Linux, how do you test your Swift package on Linux when your development machine is a Mac? Here’s a quick way to set up a Linux testing environment using Docker containers. I’m assuming for the following that you have an existing project that works with the Swift Package Manager, i.e. you can run swift build and swift test from the project directory on your Mac. APPLE ON APP ANALYTICS AND PRIVACY In the Platforms State of the Union session at WWDC yesterday, Apple announced that they are going to offer app analytics in iTunes Connect to developers later in 2014: These analytics will tell you how many users visited your store pages; how many users went on and purchased your app; how many remained active over time. And best of allOLE BEGEMANN
My favorite books 2020. Mostly non-fiction books this year. Some in English, some in German. More >. December 31, 2020. HOW ORDEREDSET WORKS The new Swift Collections library provides efficient Swift implementations for useful data structures, starting with Deque, OrderedSet, and OrderedDictionary in the initial release.. The documentation for OrderedSet says this about the implementation:. An OrderedSet stores its members in a regular Array value (exposed by the elements property). It also maintains a standalone hash table WHERE IS END-TO-END ENCRYPTION FOR ICLOUD? If you enable iMessage syncing via iCloud, Apple will use end-to-end encryption to store your messages and will no longer include Messages data in iCloud backups. But that doesn’t change the fundamental problem because iCloud backups will still include a decryption key for your “end-to-end encrypted” messages: Messages in iCloud also uses ROY FIELDING’S REST DISSERTATION AUTOMATIC TEST DISCOVERY IN SWIFT ON LINUX In 2017, I wrote an article titled Keeping XCTest in sync on Linux.In it, I proposed to add some code to your test classes that would alert you when you forget to update the allTests array after adding a test method.. Swift 5.1 ships with a much better solution: automatic test discovery on non-Apple platforms, such as Linux and Windows. HOW TO IMPORT A C LIBRARY IN SWIFT USING THE SWIFT PACKAGE At the time of writing, cmark 0.28.3 was the most recent version. 2. Wrapping cmark in a module. In C, you’d now #include one or more of the library’s header files to make their declarations visible to your own code. Swift can’t handle C header files directly; it expects dependencies to be modules.For a C or Objective-C library to be visible to the Swift compiler, the library must C CALLBACKS IN SWIFT C Callbacks in Swift. Update November 12, 2017: In the iOS 11 and macOS 10.13 SDKs, Apple added new CGPath.applyWithBlock (_:) (Swift) and CGPathApplyWithBlock (C/Objective-C) APIs. This means this article is no longer relevant for this particular example (unless you need to support older OS versions). However, the principles I discuss here 10 THINGS YOU NEED TO KNOW ABOUT COCOA AUTO LAYOUT Adopting Auto Layout can be a pain even for experienced Cocoa developers. Interface Builder seems to have a mind of its own, and working with layout constraints in code and for animations requires a major rethinking. Here are a few simple rules that STEVE JOBS ON NATIVE APPS Here’s another Steve Jobs quote from the collection of Jobs’s appearances at the D conference, this time from the 2007 interview he gave together with Bill Gates.. Starting at minute 37:27, Walt Mossberg asks Jobs and Gates about rich vs. thin clients. A HELPER FOR WORKING WITH TEMPORARY FILES IN SWIFT I often find myself having to create a temporary file in code for some operation, and every time it turns into a small nuisance: I have to find a suitable temp directory, make sure I give the file a unique name, and must not forget to delete the file after I’m done with it.OLE BEGEMANN
My favorite books 2020. Mostly non-fiction books this year. Some in English, some in German. More >. December 31, 2020. HOW ORDEREDSET WORKS The new Swift Collections library provides efficient Swift implementations for useful data structures, starting with Deque, OrderedSet, and OrderedDictionary in the initial release.. The documentation for OrderedSet says this about the implementation:. An OrderedSet stores its members in a regular Array value (exposed by the elements property). It also maintains a standalone hash table WHERE IS END-TO-END ENCRYPTION FOR ICLOUD? If you enable iMessage syncing via iCloud, Apple will use end-to-end encryption to store your messages and will no longer include Messages data in iCloud backups. But that doesn’t change the fundamental problem because iCloud backups will still include a decryption key for your “end-to-end encrypted” messages: Messages in iCloud also uses ROY FIELDING’S REST DISSERTATION AUTOMATIC TEST DISCOVERY IN SWIFT ON LINUX In 2017, I wrote an article titled Keeping XCTest in sync on Linux.In it, I proposed to add some code to your test classes that would alert you when you forget to update the allTests array after adding a test method.. Swift 5.1 ships with a much better solution: automatic test discovery on non-Apple platforms, such as Linux and Windows. HOW TO IMPORT A C LIBRARY IN SWIFT USING THE SWIFT PACKAGE At the time of writing, cmark 0.28.3 was the most recent version. 2. Wrapping cmark in a module. In C, you’d now #include one or more of the library’s header files to make their declarations visible to your own code. Swift can’t handle C header files directly; it expects dependencies to be modules.For a C or Objective-C library to be visible to the Swift compiler, the library must C CALLBACKS IN SWIFT C Callbacks in Swift. Update November 12, 2017: In the iOS 11 and macOS 10.13 SDKs, Apple added new CGPath.applyWithBlock (_:) (Swift) and CGPathApplyWithBlock (C/Objective-C) APIs. This means this article is no longer relevant for this particular example (unless you need to support older OS versions). However, the principles I discuss here 10 THINGS YOU NEED TO KNOW ABOUT COCOA AUTO LAYOUT Adopting Auto Layout can be a pain even for experienced Cocoa developers. Interface Builder seems to have a mind of its own, and working with layout constraints in code and for animations requires a major rethinking. Here are a few simple rules that STEVE JOBS ON NATIVE APPS Here’s another Steve Jobs quote from the collection of Jobs’s appearances at the D conference, this time from the 2007 interview he gave together with Bill Gates.. Starting at minute 37:27, Walt Mossberg asks Jobs and Gates about rich vs. thin clients. A HELPER FOR WORKING WITH TEMPORARY FILES IN SWIFT I often find myself having to create a temporary file in code for some operation, and every time it turns into a small nuisance: I have to find a suitable temp directory, make sure I give the file a unique name, and must not forget to delete the file after I’m done with it.OLE BEGEMANN
My favorite books 2020. Mostly non-fiction books this year. Some in English, some in German. More >. December 31, 2020. HOW ORDEREDSET WORKS The new Swift Collections library provides efficient Swift implementations for useful data structures, starting with Deque, OrderedSet, and OrderedDictionary in the initial release.. The documentation for OrderedSet says this about the implementation:. An OrderedSet stores its members in a regular Array value (exposed by the elements property). It also maintains a standalone hash tableADVANCED SWIFT
Hopefully, once you’ve read our book, you’ll have gone from being aware of the basics of the language to knowing about many advanced features and having a much better understanding of how Swift works. Here’s a chapter overview: Built-in Collections. Optionals.Functions.
AUTOMATIC TEST DISCOVERY IN SWIFT ON LINUX In 2017, I wrote an article titled Keeping XCTest in sync on Linux.In it, I proposed to add some code to your test classes that would alert you when you forget to update the allTests array after adding a test method.. Swift 5.1 ships with a much better solution: automatic test discovery on non-Apple platforms, such as Linux and Windows. THE RAWREPRESENTABLE PROTOCOL IN SWIFT The raw value syntax for enums in Swift is “just” a shorthand for conformance to the RawRepresentable protocol. It’s easy to add this manually if you want to use otherwise unsupported types as raw values. When you define an enum in Swift, you can choose to have each enum case “backed” by a raw value. For example, here’s an enum that PLEASE DON'T USE URL SHORTENERS ON TWITTER Short URLs don’t save characters anymore. For almost a year now, Twitter has been wrapping every URL in a t.co link. All URLs cost the same amount of characters. 2. , regardless of their original length. The one reason why link shorteners got so popular (indispensable, in fact) on Twitter is no longer valid. Thankfully, Twitter was smart A BETTER NSMANAGEDOBJECTCONTEXT .PERFORMANDWAIT This is much more elegant than having to declare an optional result variable before the call to sync, capturing and assigning to the variable inside the closure, and finally force-unwrapping the value after sync has returned.. NSManaged Object Context .perform AndWait(_:)
A HELPER FOR WORKING WITH TEMPORARY FILES IN SWIFT I often find myself having to create a temporary file in code for some operation, and every time it turns into a small nuisance: I have to find a suitable temp directory, make sure I give the file a unique name, and must not forget to delete the file after I’m done with it. HOW DROPBOX USES C++ FOR CROSS-PLATFORM IOS AND ANDROID Update August 15, 2019: Five years after I wrote this, Dropbox’s Eyal Guthmann announced that Dropbox has completely backed off from this strategy of using C++ for code sharing between iOS and Android in favor of using each platform’s native languages and SDKs directly. Eyal’s article is a very honest account of the downsides of choosing a non-standard tech stack, from integrating with DELETING RSS FEED ITEMS RFC 6721 proposes a deleted-entry element as an extension to the Atom format. Consumers of the feed are expected to delete items whose deleted-entry date is later than the corresponding item’s published or updated date. Importantly, the original entry element for the item remains in the feed so the feed remains backward compatible. OLE BEGEMANNMICROSOFT OLE DB DRIVERMICROSOFT OLE DB PROVIDER FOR DB2OLE DB DRIVER FOR SQL SERVERMICROSOFT OLE DB DRIVER FOR DB2MICROSOFT OLE DB PROVIDER FOR SQL SERVERMICROSOFT OLE DB PROVIDERFOR DB2 DOWNLOAD
My favorite books 2020. Mostly non-fiction books this year. Some in English, some in German. More >. December 31, 2020. HOW ORDEREDSET WORKS The new Swift Collections library provides efficient Swift implementations for useful data structures, starting with Deque, OrderedSet, and OrderedDictionary in the initial release.. The documentation for OrderedSet says this about the implementation:. An OrderedSet stores its members in a regular Array value (exposed by the elements property). It also maintains a standalone hash table WHERE IS END-TO-END ENCRYPTION FOR ICLOUD? If you enable iMessage syncing via iCloud, Apple will use end-to-end encryption to store your messages and will no longer include Messages data in iCloud backups. But that doesn’t change the fundamental problem because iCloud backups will still include a decryption key for your “end-to-end encrypted” messages: Messages in iCloud also uses ROY FIELDING’S REST DISSERTATION AUTOMATIC TEST DISCOVERY IN SWIFT ON LINUX In 2017, I wrote an article titled Keeping XCTest in sync on Linux.In it, I proposed to add some code to your test classes that would alert you when you forget to update the allTests array after adding a test method.. Swift 5.1 ships with a much better solution: automatic test discovery on non-Apple platforms, such as Linux and Windows. HOW TO IMPORT A C LIBRARY IN SWIFT USING THE SWIFT PACKAGESWIFT IMPORT CLASSSWIFT IMPORT CLASSSWIFT IMPORT FILESWIFT IMPORT FILE At the time of writing, cmark 0.28.3 was the most recent version. 2. Wrapping cmark in a module. In C, you’d now #include one or more of the library’s header files to make their declarations visible to your own code. Swift can’t handle C header files directly; it expects dependencies to be modules.For a C or Objective-C library to be visible to the Swift compiler, the library must C CALLBACKS IN SWIFT C Callbacks in Swift. Update November 12, 2017: In the iOS 11 and macOS 10.13 SDKs, Apple added new CGPath.applyWithBlock (_:) (Swift) and CGPathApplyWithBlock (C/Objective-C) APIs. This means this article is no longer relevant for this particular example (unless you need to support older OS versions). However, the principles I discuss here 10 THINGS YOU NEED TO KNOW ABOUT COCOA AUTO LAYOUT Adopting Auto Layout can be a pain even for experienced Cocoa developers. Interface Builder seems to have a mind of its own, and working with layout constraints in code and for animations requires a major rethinking. Here are a few simple rules that STEVE JOBS ON NATIVE APPS Here’s another Steve Jobs quote from the collection of Jobs’s appearances at the D conference, this time from the 2007 interview he gave together with Bill Gates.. Starting at minute 37:27, Walt Mossberg asks Jobs and Gates about rich vs. thin clients. A HELPER FOR WORKING WITH TEMPORARY FILES IN SWIFT I often find myself having to create a temporary file in code for some operation, and every time it turns into a small nuisance: I have to find a suitable temp directory, make sure I give the file a unique name, and must not forget to delete the file after I’m done with it. OLE BEGEMANNMICROSOFT OLE DB DRIVERMICROSOFT OLE DB PROVIDER FOR DB2OLE DB DRIVER FOR SQL SERVERMICROSOFT OLE DB DRIVER FOR DB2MICROSOFT OLE DB PROVIDER FOR SQL SERVERMICROSOFT OLE DB PROVIDERFOR DB2 DOWNLOAD
My favorite books 2020. Mostly non-fiction books this year. Some in English, some in German. More >. December 31, 2020. HOW ORDEREDSET WORKS The new Swift Collections library provides efficient Swift implementations for useful data structures, starting with Deque, OrderedSet, and OrderedDictionary in the initial release.. The documentation for OrderedSet says this about the implementation:. An OrderedSet stores its members in a regular Array value (exposed by the elements property). It also maintains a standalone hash table WHERE IS END-TO-END ENCRYPTION FOR ICLOUD? If you enable iMessage syncing via iCloud, Apple will use end-to-end encryption to store your messages and will no longer include Messages data in iCloud backups. But that doesn’t change the fundamental problem because iCloud backups will still include a decryption key for your “end-to-end encrypted” messages: Messages in iCloud also uses ROY FIELDING’S REST DISSERTATION AUTOMATIC TEST DISCOVERY IN SWIFT ON LINUX In 2017, I wrote an article titled Keeping XCTest in sync on Linux.In it, I proposed to add some code to your test classes that would alert you when you forget to update the allTests array after adding a test method.. Swift 5.1 ships with a much better solution: automatic test discovery on non-Apple platforms, such as Linux and Windows. HOW TO IMPORT A C LIBRARY IN SWIFT USING THE SWIFT PACKAGESWIFT IMPORT CLASSSWIFT IMPORT CLASSSWIFT IMPORT FILESWIFT IMPORT FILE At the time of writing, cmark 0.28.3 was the most recent version. 2. Wrapping cmark in a module. In C, you’d now #include one or more of the library’s header files to make their declarations visible to your own code. Swift can’t handle C header files directly; it expects dependencies to be modules.For a C or Objective-C library to be visible to the Swift compiler, the library must C CALLBACKS IN SWIFT C Callbacks in Swift. Update November 12, 2017: In the iOS 11 and macOS 10.13 SDKs, Apple added new CGPath.applyWithBlock (_:) (Swift) and CGPathApplyWithBlock (C/Objective-C) APIs. This means this article is no longer relevant for this particular example (unless you need to support older OS versions). However, the principles I discuss here 10 THINGS YOU NEED TO KNOW ABOUT COCOA AUTO LAYOUT Adopting Auto Layout can be a pain even for experienced Cocoa developers. Interface Builder seems to have a mind of its own, and working with layout constraints in code and for animations requires a major rethinking. Here are a few simple rules that STEVE JOBS ON NATIVE APPS Here’s another Steve Jobs quote from the collection of Jobs’s appearances at the D conference, this time from the 2007 interview he gave together with Bill Gates.. Starting at minute 37:27, Walt Mossberg asks Jobs and Gates about rich vs. thin clients. A HELPER FOR WORKING WITH TEMPORARY FILES IN SWIFT I often find myself having to create a temporary file in code for some operation, and every time it turns into a small nuisance: I have to find a suitable temp directory, make sure I give the file a unique name, and must not forget to delete the file after I’m done with it.OLE BEGEMANN
My favorite books 2020. Mostly non-fiction books this year. Some in English, some in German. More >. December 31, 2020. HOW ORDEREDSET WORKS The new Swift Collections library provides efficient Swift implementations for useful data structures, starting with Deque, OrderedSet, and OrderedDictionary in the initial release.. The documentation for OrderedSet says this about the implementation:. An OrderedSet stores its members in a regular Array value (exposed by the elements property). It also maintains a standalone hash tableADVANCED SWIFT
Hopefully, once you’ve read our book, you’ll have gone from being aware of the basics of the language to knowing about many advanced features and having a much better understanding of how Swift works. Here’s a chapter overview: Built-in Collections. Optionals.Functions.
AUTOMATIC TEST DISCOVERY IN SWIFT ON LINUX In 2017, I wrote an article titled Keeping XCTest in sync on Linux.In it, I proposed to add some code to your test classes that would alert you when you forget to update the allTests array after adding a test method.. Swift 5.1 ships with a much better solution: automatic test discovery on non-Apple platforms, such as Linux and Windows. THE RAWREPRESENTABLE PROTOCOL IN SWIFT The raw value syntax for enums in Swift is “just” a shorthand for conformance to the RawRepresentable protocol. It’s easy to add this manually if you want to use otherwise unsupported types as raw values. When you define an enum in Swift, you can choose to have each enum case “backed” by a raw value. For example, here’s an enum that PLEASE DON'T USE URL SHORTENERS ON TWITTER Short URLs don’t save characters anymore. For almost a year now, Twitter has been wrapping every URL in a t.co link. All URLs cost the same amount of characters. 2. , regardless of their original length. The one reason why link shorteners got so popular (indispensable, in fact) on Twitter is no longer valid. Thankfully, Twitter was smart A BETTER NSMANAGEDOBJECTCONTEXT .PERFORMANDWAIT This is much more elegant than having to declare an optional result variable before the call to sync, capturing and assigning to the variable inside the closure, and finally force-unwrapping the value after sync has returned.. NSManaged Object Context .perform AndWait(_:)
A HELPER FOR WORKING WITH TEMPORARY FILES IN SWIFT I often find myself having to create a temporary file in code for some operation, and every time it turns into a small nuisance: I have to find a suitable temp directory, make sure I give the file a unique name, and must not forget to delete the file after I’m done with it. HOW DROPBOX USES C++ FOR CROSS-PLATFORM IOS AND ANDROID Update August 15, 2019: Five years after I wrote this, Dropbox’s Eyal Guthmann announced that Dropbox has completely backed off from this strategy of using C++ for code sharing between iOS and Android in favor of using each platform’s native languages and SDKs directly. Eyal’s article is a very honest account of the downsides of choosing a non-standard tech stack, from integrating with DELETING RSS FEED ITEMS RFC 6721 proposes a deleted-entry element as an extension to the Atom format. Consumers of the feed are expected to delete items whose deleted-entry date is later than the corresponding item’s published or updated date. Importantly, the original entry element for the item remains in the feed so the feed remains backward compatible.OLE BEGEMANN
* Home
* Articles
* Book
* About
Hi, I’m Ole. I’m a developer from Berlin and co-author of Advanced Swift . Here, I mainly write about Swift and app development on Apple platforms. More about me .RECENT ARTICLES
*
SWIFT NEEDS A BETTER LANGUAGE REFERENCE Reference documentation should be searchable, linkable, and ideally integrated into IDEs. A badly structured book isn’t good enough.More >
June 3, 2021
*
HOW ORDEREDSET WORKS I did not understand how OrderedSet in the new Swift Collections library uses a hash table of array indices for fast lookups, so I read the source code to find out. More >April 30, 2021
*
MY FAVORITE BOOKS 2020 Mostly non-fiction books this year. Some in English, some in German.More >
December 31, 2020
*
THINKING IN SWIFTUI
The second edition of _Thinking in SwiftUI_ is out now. I had a small part in the creation of the book as a technical reviewer. More >December 19, 2020
*
WHERE IS END-TO-END ENCRYPTION FOR ICLOUD? Despite Apple’s bold privacy claims, a large portion of your data stored in iCloud is still not end-to-end encrypted. More >December 10, 2020
Older Articles
OLE BEGEMANN
2009–2021
Made in Berlin.
I don’t track you.Impressum
Details
Copyright © 2024 ArchiveBay.com. All rights reserved. Terms of Use | Privacy Policy | DMCA | 2021 | Feedback | Advertising | RSS 2.0