Blog

How to populate an NSTableView in Code

Posted by on 11:11 am in Knowledge Base | Comments Off on How to populate an NSTableView in Code

In this screencast I’ll show you how to power an NSTableView using code. I’m referencing this article for code snippets and details: http://pinkstone.co.uk/how-to-populate-an-nstableview-in-code/ I’ve also made a “no-code” version on how to populate an NSTableView using an Array Controler and Cocoa Bindings here: http://pinkstone.co.uk/how-to-bind-an-nsarraycontroller-to-an-nstableview/ Enjoy!

read more

How to bind an Array Controller to a Table View with Cocoa Bindings

Posted by on 11:07 am in Knowledge Base | Comments Off on How to bind an Array Controller to a Table View with Cocoa Bindings

In this screencast I will show you how to bind a Table View to an Array Controller in Cocoa, using Xcode 5.1 and OS X Mavericks. We’re using Core Data to save our entries and – check it out – we’re not writing a single line of code! Cocoa Bindings is one of the most exciting features in OS X development for me, and I hope that one day it’ll find its way into iOS too. The project is also available on GitHub: https://github.com/versluis/Bindings-Demo I’ve written more about how to do this here:...

read more

How to Tear Down your Core Data Stack in iOS

Posted by on 10:01 am in Knowledge Base | Comments Off on How to Tear Down your Core Data Stack in iOS

In this screencast I will show you how to tear down your Core Data Stack. Documentation on this topic is a little sketchy to say the least. We’ll create a new Master/Detail app and implement a button that will remove the store file and reset the entire stack – without nasty error messages or app crashes. The app will work on iOS 7.1 and iOS 6. I’m using Xcode 5.1 in this demo. The principles of course apply just as much to Mac Development. You can read more in my companion article here:...

read more

How to fix JetPack 3.0 Sharing Icons in P2

Posted by on 10:30 pm in Knowledge Base | Comments Off on How to fix JetPack 3.0 Sharing Icons in P2

JetPack 3.0 was released yesterday and it had quite a facelift: a new menu structure, dozens of graphical tweaks and a new set of Social Icons for sharing your posts. Those work well out of the box in TwentyThirteen and TwentyFourteen – but not in P2. Here’s how we can fix the problem. First let me show you what we’re actually fixing here. In JetPack 2.9.3 and before the social sharing icons at the bottom of a post looked like this: After you upgrade to JetPack 3.0, and if you’re running P2, then those icons are...

read more

How to use Branches in Xcode

Posted by on 11:55 am in Knowledge Base | Comments Off on How to use Branches in Xcode

In this video I will show you how to use the Git Branch feature in Xcode 5.1. Branches are helpful if you’re developing your app. You can isolate a “working” version, create a new branch and fiddle with new features that may destabilise your project. You can then commit your changes – working or not – to a separate branch, and when all is stable again you can merge them back into the master project. I use this feature for plugin and theme development, in fact for any “group of files” that will change...

read more

How to use Git Tags in Xcode

Posted by on 11:52 am in Knowledge Base | Comments Off on How to use Git Tags in Xcode

In this video I will show you how to make use of Tags in Git. This is not supported in Xcode or GitHub for Mac at the time of this recording (April 2014). I will also show you how to utilise the Tag/Release feature on GitHub.com. Tags are a useful feature if you want to mark versions of your software before you add new features. With Tags you can always go back to the code of a release. We’re using Xcode 5.1 and the Terminal utility for this. I use tags and branches for plugin and theme development too, in fact for any “group of...

read more

How to change the width of an automatic oEmbed in WordPress

Posted by on 11:19 pm in Knowledge Base | Comments Off on How to change the width of an automatic oEmbed in WordPress

I was investigating an interring issue today: YouTube videos I was embedding on this very site did not fill the whole width of my theme. They were 500 pixels wide, and I know that P2 supports something a bit larger than that. It didn’t really bother me, until I thought that embeds on my other site which is also using P2 look so much better. What was going on? What was the other site doing that this one wasn’t? Turns out there are actually three different things to watch out for, and I’ll tell you about each one in a moment....

read more

How to push a local Xcode Project to GitHub

Posted by on 11:47 am in Knowledge Base | Comments Off on How to push a local Xcode Project to GitHub

In this screencast I will show you how to push a local Xcode Git repository to GitHub. We’ll do this with the free and super amazing GitHub App for Mac OS X and Xcode 5.1. Enjoy!

read more

How to find out which user ID belongs to which domain in Plesk

Posted by on 4:16 pm in Knowledge Base | Comments Off on How to find out which user ID belongs to which domain in Plesk

The other day I found that one of the domains on a busy server was sending unsolicited spam mail thousands of times a day. It happens: the nature of open source scripts is that they will get hacked if they’re not updated regularly. The clue was a full-up mail queue and Gmail no longer accepting mails from the IP in question. When I examined one of the spam mails I found a line like this: X-PHP-Originating-Script: 10040:listr3b.php Good to know the spam was sent from a PHP script… but from which domain? All we have here is the user...

read more

Creating a Searchable Table View in iOS

Posted by on 6:17 pm in Knowledge Base | Comments Off on Creating a Searchable Table View in iOS

In this 6-part series I’ll show you how to create a searchable UITableView in an iOS App. We’ll start with a standard single view application template in Xcode, create a table view with dummy data, and finally make it searchable. This course demonstrates how to do this with Xcode 5.1 and iOS 7.1. We’ll also make the app compatible to for in iOS 6. These are the first two parts which are available for free. The rest of the course is only viewable by members of my iOS Dev Diary at pinkstone.co.uk. You can get the source code...

read more