Nat! bio photo

Nat!

Senior Mull.

Twitter RSS

Github

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

1 Comment

A photo of

From:

My fingertips are holding onto

The cracks in our Foundation

And I know that I should let go, but I can't

Post a comment

All comments are held for moderation; basic HTML formatting accepted.

Name:
E-mail: (not published)
Website: