• 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: Ondra Cada <email@hidden>
  • Date: Tue, 21 May 2002 23:10:50 +0200

On Tuesday, May 21, 2002, at 10:54 , David Sinclair 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).
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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.
  • Follow-Ups:
    • Re: Newbie question: setting a NSNumber
      • From: David Sinclair <email@hidden>
References: 
 >Re: Newbie question: setting a NSNumber (From: David Sinclair <email@hidden>)

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