April 2011
6 posts
Delegate Genericity vs Specificity
Andrew Pontious:
Let me spell it out: if you have a view subclass (or any class, really) that needs functionality from an associated class, add a typed reference to that associated class. Don’t add an untyped “delegate” reference.
I agree with Andrew that generic, untyped delegates belong more in framework codebases than application codebases.
Applications get to be more specific than...
Application Commoditization
Marco Arment:
Apple commoditizes apps to make iPhones and iPads more attractive (and exclusive).
A wonderfully succinct explanation.
Be very careful when calling -[NSNotification...
Samuel Défago:
Never ever use -[NSNotification removeObserver:] to unregister from notification events, except from a dealloc method. This might cancel registrations made by a parent class, and you cannot know how a parent class is implemented (at least you shouldn’t care). Stick to this rule even if your parent class is NSObject: Your class hierarchy might change in the future, and you...
2 tags
QuickPick Kicked out of the App Store
Seth Willits / @sethwillits:
QuickPick is being kicked out of the App Store.
It doesn’t matter that QuickPick existed years before Launchpad.
Rejected.
Period.
QuickPick is Seth’s application and document launcher. Apple has apparently decided to remove/retroactively-reject QuickPick as being too similar to 10.7’s Launchpad.
A Bad Good Idea
I had a vision of embedding C++ in a funny kind of comment in (Obj-)C(++) that clang would recognize, dynamically compile and then execute its transformations against the containing code’s Abstract Syntax Tree.
I hope to emerge from my LLVM fever swamp any day now.
1 tag
node-mysql-oil
node-mysql-oil is my thin, slick layer on top @felixge’s awesome node-mysql.
It aims to make SQL more JavaScripty by expressing SQL statements as literal data structures instead of dumb strings.
So instead of this:
db.query(
'insert into t_test '+
'(c_user, c_pass, c_uid) '+
'values ("root", "pass", 501)'
);
You can write this:
db({
insert_into: 't_test',
values:{
...