• 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: Newbie question: setting a NSNumber
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie question: setting a NSNumber


  • Subject: Re: Newbie question: setting a NSNumber
  • From: David Sinclair <email@hidden>
  • Date: Tue, 21 May 2002 14:16:53 -0700

At 23:10 +0200 2002-05-21, Ondra Cada wrote:
Yes, blah is set as follows in the init method:

blah = [NSNumber numberWithDouble:40.0];

That's it!!! In init you have to retain it (the invariant is, properties are retained or copied or alloc/inited).

Thanks, that worked. I knew it'd be something simple! Thanks also to Mike Masukawa who also provided the solution via e-mail.

--

David Sinclair - email@hidden
_______________________________________________
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: 
 >Re: Newbie question: setting a NSNumber (From: Ondra Cada <email@hidden>)

  • Prev by Date: Re: Newbie question: setting a NSNumber
  • Next by Date: Re: calculating line heights in a NSTextView
  • Previous by thread: Re: Newbie question: setting a NSNumber
  • Next by thread: Re: Cocoa File Copy on MacOS X
  • Index(es):
    • Date
    • Thread