Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 14553b63ba
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (27 sloc) 0.735 kb
//
// AppDelegate.m
// ADNOrdinalNumberFormatter
//
// Created by Abizer Nasir
//
#import "ApplicationDelegate.h"
#import "ADNOrdinalNumberFormatter.h"
@implementation ApplicationDelegate
@synthesize window;
@synthesize inputField;
@synthesize number;
- (id)init {
if (!(self = [super init])) {
return nil; // Bail!
}
number = 50;
[numberFormatter = [ADNOrdinalNumberFormatter alloc] init];
[numberFormatter setFormatterBehavior:NSNumberFormatterBehavior10_4];
[numberFormatter setMinimum:[NSNumber numberWithInteger:0]];
[numberFormatter setMaximum:[NSNumber numberWithInteger:200]];
return self;
}
- (void)awakeFromNib {
[[self.inputField cell] setFormatter:numberFormatter];
}
@end
Jump to Line
Something went wrong with that request. Please try again.