Archive for the 'OSX Dev' Category

Swift, missing idea #1?

Tuesday, June 3rd, 2014

Going through “properties”, I’m not finding anything about private and public properties, or protected. I’m also not seeing anything about header files and class files, so at first blush it seems we can’t hide properties from other classes. How do we stop people from using the wrong properties? That can’t be good. I must be […]

Swift, good idea #1

Tuesday, June 3rd, 2014

There’s a lot of good stuff in Swift, of course, but adopting Ruby’s block syntax seems a really nice idea. It’s called “trailing closures” in Swift, but it’s the same thing, as far as I can see. An example from the text: let strings = numbers.map { (var number) -> String in var output = […]

Swift, bad idea #3

Tuesday, June 3rd, 2014

Function types are declared like: var mathFunction: (Int, Int) -> Int In this example: mathFunction is a variable that can hold any function that takes two Int as parameters and returns one Int. Fine, so far. Functions can take such functions as parameters and also return them. For instance, a function taking a function like […]

Swift, bad idea #2

Tuesday, June 3rd, 2014

Function parameters now have distinct “internal” and “external” parameter names. The simplest form does away with named parameters when calling functions, that is, we can now do: mysteriousFunction(15.2, “yeah, right”, “only on a sunday”, -1) …just like in the good(?) old days of plain C/C++. Yes, you can force naming of parameters on the caller’s […]

Swift, bad idea #1

Tuesday, June 3rd, 2014

Looking over the “Swift” language Apple presented during the WWDC keynote. First off, declarations using “var” and “let” made me think of Basic, and had to stifle a gag reflex. I’m reading the iBooks book on Swift. When I got to closed and halfopen ranges on page 100, I thought this was a big mistake. […]

Mountain Lion for free?

Thursday, August 2nd, 2012

I’ve downloaded and installed Mountain Lion (10.8) on several machines now, but I never paid for it. No, I didn’t pirate it, I got it from the App store, but it never gave me a chance to pay. Looking up the transaction in the App store via iTunes, I see this: In other words, I […]

3.3.1 with a twist

Saturday, April 10th, 2010

The by now famous paragraph 3.3.1 in the iPhone Developer Program License Agreement for iPhone OS 4.0 says that “Applications that link to Documented APIs through an intermediary translation or compatibility layer or tool are prohibited”. Which, of course, ruins the day for Adobe and Flash CS5. The idea was to have Flash scripts run […]

iPad: the lowest common denominator

Monday, March 29th, 2010

After watching

Subversion server on Snow Leopard server

Sunday, November 29th, 2009

As I already bragged about, I got me one of those delicious little OSX Mini Snow Leopard Server boxes. So sweet you could kiss it. I just got everything together to make it run a subversion server through Apache, too, and as a way to document that process, I could just as well make a […]

The cutest little muscle machine ever

Saturday, November 7th, 2009

I got me that brand new Apple Mini with Snow Leopard OSX Server unlimited edition included. This is such an adorable machine, you wouldn’t believe it. It has everything you can wish for in a server, as far as I can make out after just a couple of hours with it. It’s super easy to […]