« The lameness of NSSegmentedControl | Main | NSInteger ? Why not just int ? »

A modern API for Cocoa

It's kinda obvious: the API is so oldfashioned, it's really starting to become embarassing to use the various arcane namings. Today I made the decision, that I will start adding some convenience methods to my classes, that hide the ugliness.

Here's the first one, that also conveniently does away with the BOOL parameter. Who ever said NO to setNeedsDisplay: anyway ?

Probably more to come as things develop...

@interface NSView (MulleModernAPI)

- (void) iCanHazDisplay
{
   [self setNeedsDisplay:YES];
}

@end

Comments (1)

Anonymous:

My fingertips are holding onto
The cracks in our Foundation
And I know that I should let go, but I can't

About

This page contains a single entry from the blog posted on October 15, 2007 9:56 PM.

The previous post in this blog was The lameness of NSSegmentedControl.

The next post in this blog is NSInteger ? Why not just int ?.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.34