Thursday, June 3, 2010
Yours truly speaking at Google I/O 2010
http://code.google.com/events/io/2010/sessions/connecting-enterprise-apps-docs-sites.html
Friday, April 30, 2010
De-emphasizing Mac OS at WWDC?
Cocoa is the development frameworks for Mac OS.
Cocoa Touch is the development frameworks for iPhone OS.
Let's not assume that multi-touch screens are exclusively for this new 'mobile era'. Sure that might be the driver of multi-touch screens, but I can't see them staying there. If we get a multitouch screen on a Mac, then we should get Cocoa Touch too - and all those wonderful iPhone developers have a place on the Mac.
Don't think a multi-touch screen has any business on a Mac? Matt Gemmell's dad seems to think it does
Apple throwing the developer community behind iPhone OS might just be a front to transitioning us to developing in Cocoa Touch - for iPhone, iPad and Mac. Glory glory hallelujah.
For a more in-depth analysis see my previous post on UIKit in 10.7
Saturday, April 17, 2010
UIKit in 10.7?
UIKit in 10.7 would mean an iPhone like environment on a touch screen Mac - even iPhone apps themselves. Seems nuts, but reserve judgement until the end.
First, a little background in Mac OS X / iPhone architecture...



Saturday, November 7, 2009
Xcode + iPhone SDK: The unsung hero of 100,000 apps
Tuesday, September 22, 2009
OmniStats, Gruber and 10.4 Support
John Gruber of Daring Fireball has a great discussion (as always) on Mac OS X major version use:
The 10.4 usage (36.4%) for Omni seems very high and developers might factor this into their decision to continue supporting 10.4. However it can be argued that Omni stats are skewed due to the Apple bundling agreements that existed while 10.4 was being shipped (these agreements ended before or early in the 10.5 era). All Mac hardware shipped with OmniGraffle during 10.4 (but not during 10.5) so the overall market share of 10.4 is probably lower.
If you're a developer (and according to Gruber 11.2% of his readers are) you might not be fortunate enough to be calling your own shots and have some 'platform agnostic' marketing guy or product manager telling you that you must support 10.4 because it's a significant portion of the market or your partners need it.
Supporting 10.4 is probably a bad move for most developers at this point (unless developing for education - maybe). Here's how to argue the case for 10.5+ against someone not fluent in the Mac platform.
1. Your software won't be as good if you're developing for 10.4
The economic problem is always the same - limited resources and unlimited needs. Whilst you can work around 10.4 limitations, doing so means you've got less resources allocated to other things - like solving your business problem better. There's some really cool tech in 10.5 - from the big stuff like Core Animation and NSOperation to the small stuff like gradients and bezier paths with rounded corners. Your software will almost always be better from using these newer technologies.
It's not just the development effort either, you need to QA and support 10.4 too. That really sucks for the poor schmucks who have that job (probably one of whom is you).
Make the choice: Do you want to make good software for 10.4+ users or great software for 10.5+ users? If you're still thinking you can do both, then re-read the above until you realise by definition you can't. Your software will always be better if you develop for 10.5+ because you'll have more resources to spend on solving your business problem better or making your software easier to use.
For many products, you'd get more users from better software than you would from legacy OS support, but that argument really hinges on how many users (particularly paid ones) you're likely to get from supporting an older OS, so market share stats might be important.
2. Current market share
There's no definitive source of how much of the overall market is 10.4 or 10.5+. Omni's stat (36.4%) are probably skewed towards 10.4 due to the old Apple OEM deal and Adium's stats (15.3%) are probably skewed towards an 'early adopter' crowd who stick with the latest OS. So let's assume the overall 10.4 market share is between 20% and 30%.
3. Future market share
By the generous Omni stats, 10.4 is showing a roughly linear decline from 50% on 1 Jan 2009, translating to a decline of 18% per annum. In a year from now, 10.4 will be really inconsequential. You'll need to make back all of your extra costs from these users the next year*, or you're at a loss. This isn't just the explicit costs like development, QA & support, it's the implicit costs too - like your software not being as good. Add to that the future costs of updating to newer technologies in 10.6 like Grand Central that are automatic if you use NSOperation (which is included in 10.5).
*If you're at the stage of deciding whether to support 10.4 or not, then it's probably a few months before your software ships anyway so you need to take into account what the market will be when you launch the software.
4. The OS market share argument is rubbish
Just like the Windows vs Mac market share rhetoric, the total market % isn't important anyway. What's important is the market share of users in your target / addressable market.
Think about it… Any consumer** using 10.4 is probably too frugal to buy Apple's software, a late adopter or using an old system. Do you really think they are going to install and (more importantly) buy your software?
**You'll notice the emphasis is on consumers. There are still some big educational customers with 10.4. If this is the case for you, then you should probably take the decline in market share into account and make an assessment based on that. You might still be stuck with 10.4 for a while longer, but make an informed choice.
But what if I already support 10.4?
This stuff is all still relevant. If you're keeping your software up to date, then you'll probably realise a lot of this already.
As Wayne Gretzky said "skate to where the puck is going to be", this is still relevant to all of your current and future development efforts.
Conclusion
There are some 10.4 users and some of them might buy your software, but are there enough to regain the costs, time and headaches of developing for 10.4 worthwhile?
Sunday, August 23, 2009
Coolest thing I learnt at WWDC 2009
#import
@interface Person : NSObject {
NSString *firstName;
NSString *lastName;
}
- (void)setFirstName:(NSString *)value;
- (NSString *)firstName;
- (void)setLastName:(NSString *)value;
- (NSString *)lastName;
- (NSString *)fullName;
@end
#import "Person.h"
@implementation Person
- (void)dealloc{
[firstName release], firstName = nil;
[lastName release], lastName = nil;
[super dealloc];
}
- (void)setFirstName:(NSString *)value{
if ([firstName isEqualToString:value]) return;
[self willChangeValueForKey:@"fullName"];
[firstName release];
firstName = [value retain];
[self didChangeValueForKey:@"fullName"];
}
- (NSString *)firstName{
return [[firstName retain] autorelease];
}
- (void)setLastName:(NSString *)value{
if ([lastName isEqualToString:value]) return;
[self willChangeValueForKey:@"fullName"];
[lastName release];
lastName = [value retain];
[self didChangeValueForKey:@"fullName"];
}
- (NSString *)lastName{
return [[lastName retain] autorelease];
}
- (NSString *)fullName{
return [NSString stringWithFormat:@"%@ %@",self.firstName,self.lastName];
}
@end
/* Return a set of key paths for properties whose values affect the value of the keyed property. When an observer for the key is registered with an instance of the receiving class, KVO itself automatically observes all of the key paths for the same instance, and sends change notifications for the key to the observer when the value for any of those key paths changes. The default implementation of this method searches the receiving class for a method whose name matches the pattern +keyPathsForValuesAffecting
This method and KVO's automatic use of it comprise a dependency mechanism that you can use instead of sending -willChangeValueForKey:/-didChangeValueForKey: messages for dependent, computed, properties.
You can override this method when the getter method of one of your properties computes a value to return using the values of other properties, including those that are located by key paths. Your override should typically invoke super and return a set that includes any members in the set that result from doing that (so as not to interfere with overrides of this method in superclasses).
You can't really override this method when you add a computed property to an existing class using a category, because you're not supposed to override methods in categories. In that case, implement a matching +keyPathsForValuesAffecting
*/
+ (NSSet *)keyPathsForValuesAffectingFullName{
return [NSSet setWithObjects:@"firstName",@"lastName"];
}
#import "Person.h"
@implementation Person
@synthesize firstName, lastName;
- (void)dealloc{
[firstName release], firstName = nil;
[lastName release], lastName = nil;
[super dealloc];
}
- (NSString *)fullName{
return [NSString stringWithFormat:@"%@ %@",self.firstName,self.lastName];
}
+ (NSSet *)keyPathsForValuesAffectingFullName{
return [NSSet setWithObjects:@"firstName",@"lastName"];
}
@end
#import
@interface Person : NSObject {
NSString *firstName;
NSString *lastName;
}
@property (retain) NSString *firstName;
@property (retain) NSString *lastName;
@property (readonly) NSString *fullName;
@end