• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How can I set a value for NSNumber?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >How can I set a value for NSNumber? (From: Roberto <email@hidden>)

  • Prev by Date: (no subject)
  • Next by Date: Use a variable form an istance into another
  • Previous by thread: How can I set a value for NSNumber?
  • Next by thread: Re: Sheets Trouble
  • Index(es):
    • Date
    • Thread