@@ -73,6 +73,61 @@ public:
7373 */
7474 override NSNumber init () @selector(" init" );
7575
76+ /**
77+ Creates a NSNumber instance with a bool value.
78+ */
79+ static NSNumber create (bool value) @selector(" numberWithBool:" );
80+
81+ /**
82+ Creates a NSNumber instance with a double value.
83+ */
84+ static NSNumber create (double value) @selector(" numberWithDouble:" );
85+
86+ /**
87+ Creates a NSNumber instance with a float value.
88+ */
89+ static NSNumber create (float value) @selector(" numberWithFloat:" );
90+
91+ /**
92+ Creates a NSNumber instance with a byte value.
93+ */
94+ static NSNumber create (byte value) @selector(" numberWithChar:" );
95+
96+ /**
97+ Creates a NSNumber instance with a short value.
98+ */
99+ static NSNumber create (short value) @selector(" numberWithShort:" );
100+
101+ /**
102+ Creates a NSNumber instance with a int value.
103+ */
104+ static NSNumber create (int value) @selector(" numberWithInt:" );
105+
106+ /**
107+ Creates a NSNumber instance with a long value.
108+ */
109+ static NSNumber create (long value) @selector(" numberWithLongLong:" );
110+
111+ /**
112+ Creates a NSNumber instance with a ubyte value.
113+ */
114+ static NSNumber create (ubyte value) @selector(" numberWithUnsignedChar:" );
115+
116+ /**
117+ Creates a NSNumber instance with a ushort value.
118+ */
119+ static NSNumber create (ushort value) @selector(" numberWithUnsignedShort:" );
120+
121+ /**
122+ Creates a NSNumber instance with a uint value.
123+ */
124+ static NSNumber create (uint value) @selector(" numberWithUnsignedInt:" );
125+
126+ /**
127+ Creates a NSNumber instance with a ulong value.
128+ */
129+ static NSNumber create (ulong value) @selector(" numberWithUnsignedLongLong:" );
130+
76131 /**
77132 The number object's value expressed as a Boolean value.
78133 */
@@ -146,62 +201,62 @@ public:
146201 /**
147202 Creates and returns an NSNumber object containing a given value.
148203 */
149- this (bool value) @selector(" initWithBool:" );
204+ NSNumber initWith (bool value) @selector(" initWithBool:" );
150205
151206 /**
152207 Creates and returns an NSNumber object containing a given value.
153208 */
154- this (char value) @selector(" initWithChar:" );
209+ NSNumber initWith (char value) @selector(" initWithChar:" );
155210
156211 /**
157212 Creates and returns an NSNumber object containing a given value.
158213 */
159- this (double value) @selector(" initWithDouble:" );
214+ NSNumber initWith (double value) @selector(" initWithDouble:" );
160215
161216 /**
162217 Creates and returns an NSNumber object containing a given value.
163218 */
164- this (float value) @selector(" initWithFloat:" );
219+ NSNumber initWith (float value) @selector(" initWithFloat:" );
165220
166221 /**
167222 Creates and returns an NSNumber object containing a given value.
168223 */
169- this (float value) @selector(" initWithFloat:" );
224+ NSNumber initWith (float value) @selector(" initWithFloat:" );
170225
171226 /**
172227 Creates and returns an NSNumber object containing a given value.
173228 */
174- this (int value) @selector(" initWithInt:" );
229+ NSNumber initWith (int value) @selector(" initWithInt:" );
175230
176231 /**
177232 Creates and returns an NSNumber object containing a given value.
178233 */
179- this (short value) @selector(" initWithShort:" );
234+ NSNumber initWith (short value) @selector(" initWithShort:" );
180235
181236 /**
182237 Creates and returns an NSNumber object containing a given value.
183238 */
184- this (NSInteger value) @selector(" initWithInteger:" );
239+ NSNumber initWith (NSInteger value) @selector(" initWithInteger:" );
185240
186241 /**
187242 Creates and returns an NSNumber object containing a given value.
188243 */
189- this (ubyte value) @selector(" initWithUnsignedChar:" );
244+ NSNumber initWith (ubyte value) @selector(" initWithUnsignedChar:" );
190245
191246 /**
192247 Creates and returns an NSNumber object containing a given value.
193248 */
194- this (ushort value) @selector(" initWithUnsignedShort:" );
249+ NSNumber initWith (ushort value) @selector(" initWithUnsignedShort:" );
195250
196251 /**
197252 Creates and returns an NSNumber object containing a given value.
198253 */
199- this (uint value) @selector(" initWithUnsignedInt:" );
254+ NSNumber initWith (uint value) @selector(" initWithUnsignedInt:" );
200255
201256 /**
202257 Creates and returns an NSNumber object containing a given value.
203258 */
204- this (NSUInteger value) @selector(" initWithUnsignedInteger:" );
259+ NSNumber initWith (NSUInteger value) @selector(" initWithUnsignedInteger:" );
205260
206261 /**
207262 Gets whether this number is equal to another.
0 commit comments