More than 3 million people use MailChimp to design and send email marketing campaigns. And today they launched a native iPad client that lets you create and edit such campaigns. For the parts of that which require rich text editing they rely on our DTRichTextEditor component.
Implicit IVAR Synthesis
Apple recently added the ability for Xcode to automatically create instance variables for you. This means you no longer need to add an @synthesize for each property you create.
But does it really do that always, or are there scenarios where no _ivar is needed? Are there situations wehre you do need an explicit synthesis? For example what about properties which are just passing through values to a sub-object?
I wanted to know, so I experimented a bit. I even filed a Radar with Apple for clarification which came back with a good explanation.
Travis CI For Pull Request Validation
If you have an project that is accepting code contributions then you will want to make sure that those well-meaning additions don’t break existing functionality. Services like GitHub allow you to review such pull requests via their colored diffs or even give instructions as to how to manually pull the commits into a local branch for evaluating this.
But there is a limit that is quickly being reached if you need to check all those pull requests manually. Even worse, this is a mundane task, usually trying out if the targets build and running the unit tests. Repetitive tasks like this are boring and thus nobody can be faulted for starting to neglect them.
In this blog post I will explain how to set up Travis-CI to have all pull requests be automatically checked for you. You will know for each pull request if merging it into your develop branch would break the build or unit tested functionality.
DTCoreText 1.6.6 + DTRichTextEditor 1.6.3
Again, another maintenance release for DTCoreText and DTRichTextEditorwhich mostly addresses issues introduced by the recent CSS handling rewrite. It also further enhances support for CSS style cascading.
Variable-Sized Items in UICollectionView
UICollectionView was added last year with iOS 6 and to this date I had no real chance to get acquainted with it since most of my apps were still supporting iOS 5. Doing a fresh app only supporting the latest iOS version finally allowed me to dig into it and share the journey with you.
The special scenario we want to look at today is how we could configure variable-sized collection view cells for items like tags. We want to have the cells adjust their size automatically based on the tag string and ideally we don’t want to have to write any layout code for determine the needed sizes.
Please forgive if the following has a few places where I stumbled. It is these temporary snags that I believe you learn from the most, so I left them in the final article.
Selling Linguan
It is with a heavy heart that today we’re announcing that we are looking for a buyer interested in acquiring our Mac localization tool Linguan.