Profile

Cover photo
Warren Burton
Lives in London
37,916 views
AboutPostsPhotosVideos

Stream

Warren Burton

Shared publicly  - 
 
A tutorial on how to implement UIStateRestoring in Swift
1
Add a comment...

Warren Burton

Shared publicly  - 
 
Lighter view controllers in Swift
A classic problem in Objective-C is the one of avoiding MVC . Massive View Controller that is.  Code gets copy-pasta'd into multiple view controllers and all looks a bit like this. objc.io does a great job of explaining how to slim down your view controller...
1
Add a comment...

Warren Burton

Shared publicly  - 
 
I have been working recently on DevSketch 1.3 with all the Swift things which means upgrading the Core Data model and adding support for Enums and Structs. Extensions are basically Obj-C categories so that doesn't involve extra work.

Problem is it turns out Structs aren't so different to Classes in Swift land and i'm left with a structure issue.

Currently Protocols and Classes descend from Object as they can both carry messages(functions) and properties(vars) and my initial instinct was to do the same thing for Structs. Now I'm wondering whether or not to smoosh Structs as a simple Boolean property on Class or just subclass off Class instead of Object.

Semantically I would be saying "struct is-a class" . I know this is incorrect at an official level but it does make sense from a development level.

Struct and Classes are basically equal opportunity employers at a syntax level. At runtime they are different but that's not where DevSketch lives and it would make the relationship management a lot easier. It would also give the opportunity to flip between struct and class.

Got a Foo that you have set up as a Struct but now it's getting too heavy. Just give a nudge and now it's a class.

So am I backing myself into a big hole ? Such is the peril of Core Data as a storage medium. Small decisions become big thumping PITA later on.

Think I'll go and look at kittens on the Internet instead.

#swiftlang #coredata
1
Add a comment...

Warren Burton

Shared publicly  - 
 
Dog fooding the #mindmapping  app that I make  
1
Add a comment...

Warren Burton

Shared publicly  - 
 
Hi . Im working on the new version of DevSketch but if you're using Xcode 5.1 with a new project you'll need to edit the url to the iOS frameworks. Simply go to Document > Edit Document Settings... and edit any iPhoneOS7.0.sdk  to iPhoneOS7.1.sdk

Im going to add a bit of UI to make this easier 

Talking of the new version theres a bunch of bugs and inconsistent behaviour fixed and two major features.

- The very requested argument names. 
- Framework Placeholder objects. A library which you can drag items on the board

Also 
- Kapeli Dash Integration (yay Dash!) 
1
Wallacy Freitas's profile photoWarren Burton's profile photo
2 comments
 
Yes , from the help menu.
Add a comment...

Warren Burton

Shared publicly  - 
 
UIStateRestoring in Swift
When your customers open your app you may want them to feel like they never left it even when the system has long since ejected you. This is where UIStateRestoring comes into play.  First thing to do is setup Restoration ID's for your view controllers. You ...
1
Add a comment...

Warren Burton

Shared publicly  - 
 
Lightweight view controllers are a lot cleaner in Swift thanks to functions being full class citizens. #swift
1
Add a comment...

Warren Burton

Shared publicly  - 
 
Spent some time in Morocco in May. Great weather & uncrowded waves. 
1
Add a comment...

Warren Burton

Shared publicly  - 
 
DevSketch is a UML "like" editor for Objective-C developers #objectivec   #uml  
1
Add a comment...

Warren Burton

Shared publicly  - 
 
Ive just released a new OS X app called DevSketch. Its made for visually putting together an app architecture for OS X or iOS apps and then generating stub code.

Its priced low right now as its a 1.0 release but I have a bunch of ideas for it and if it gets a bit of traction then ill sink some time into making them. But then the price goes up.

So give it a go and let me know what you think. 
https://itunes.apple.com/us/app/devsketch/id790264688?ls=1&mt=12

#devtool  #uml 
1
Jaime Suárez's profile photomack carter's profile photoWarren Burton's profile photo
5 comments
 
Unlikely in the near future. I would need to sell many more copies a day before I can afford to put time into any other language than ObjC.
Add a comment...
People
Work
Occupation
Test Engineer, Cocoa Programmer
Basic Information
Gender
Male
Story
Introduction
I develop a Mind Mapping application for OS X and iPad 

Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
London
Previously
Auckland
Links
Contributor to