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
Post a comment
All comments are held for moderation; basic HTML formatting accepted.