Re: How can I set a value for NSNumber?
Re: How can I set a value for NSNumber?
- Subject: Re: How can I set a value for NSNumber?
- From: Robert Cerny <email@hidden>
- Date: Fri, 12 Dec 2003 14:19:17 +0100
Well,
if your question is, are there mutable versions of NSNumber, than the
answer is negative. You can used the autoreleased version of allocation
like:
[NSNumber numberWithInt:10]
HTH
Robert
On 12.12.2003, at 14:11, Roberto wrote:
>
How can I set a value for an NSNumber?
>
>
example:
>
>
// Create the variable
>
NSNumber * comicsArrayId;
>
>
// alloc the variable
>
comicsArrayId = [[NSNumber alloc] initWithInt:0];
>
>
AND THEN?
>
>
If I would like to set the variable to int 10??
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.