Skip to content

Blue Lemon bits

by Marc Maset

Tag Archives: array

Find the right value in an Array, or in an Array of Dictionaries

From time to time I discover a new way of coding something that significantly improves readability & minimizes how much I need to code.  Here’s one of such latest discoveries. Typically to find a value in an array (or in an array of dictionaries) with a specific condition I would do a for loop with […]

Posted bymmvSeptember 5, 2018Posted indevelopmentTags: array, dictionary, swift4

Sorting Multi Dimensional Array (Swift 3)

Hello all,  This one I’ve found specially useful when working with Core Data fetched arrays.  Let’s say that we want to sort the result of a fetch request based on the value of the field “gold”, we would therefore do the following: let dwarfGoldBags = … //Contains the result of a fetch request with one of the […]

Posted bymmvNovember 5, 2016Posted indevelopmentTags: array, coredata, swift, swift3

Easy Core Data CSV Exporter in Swift

A new app I’m working on has a Core Data back end and I wanted to implement a quick way to export all the entities into a CSV file and dump it into the Desktop.  Here are the snippets to do it: 1. Make sure you get the NSObjects you want to export (in this case […]

Posted bymmvJuly 31, 2016Posted indevelopmentTags: array, coredata, csv, swift

Recent Posts

  • Inspecting mac pkg installers
  • NewsWave for Mac 2021.01
  • 2020 in review
  • NewsWave 2020.4 for Mac
  • NewsWave 2020.3.1 for Mac

Archives

  • January 2021
  • November 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • February 2020
  • January 2020
  • December 2019
  • October 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • March 2019
  • January 2019
  • December 2018
  • October 2018
  • September 2018
  • August 2018
  • June 2018
  • May 2018
  • April 2018
  • March 2018
  • January 2018
  • December 2017
  • September 2017
  • May 2017
  • March 2017
  • February 2017
  • January 2017
  • December 2016
  • November 2016
  • September 2016
  • August 2016
  • July 2016
  • March 2016
  • February 2016
  • January 2016
  • December 2015
  • October 2015
  • September 2015
  • August 2015
  • July 2015
  • June 2015
  • May 2015

Categories

  • apple
  • articles
  • development
  • misc
  • technology
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Blue Lemon bits, Proudly powered by WordPress.