• 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
Int to NSString
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Int to NSString


  • Subject: Int to NSString
  • From: Ben Mackin <email@hidden>
  • Date: Thu, 02 May 2002 18:46:04 -0700

How do I convert an integer to an NSString? I have been looking over apples
site, and just cant find it.

What I am doing is creating an NSArrary, and then filling it as follows:

mergeArray = [[NSFileManager defaultManager]
directoryContentsAtPath:@"/tmp/receive"];

Then I am trying to do this:

logString = [ fileNameString stringByAppendingString:[mergeArray count]];

Which doesn't work, I need to convert the int returned by [mergeArray count]
into an NSString so I can use it in the output (I am then writing logString
to a file on the disk)

Thanks,
Ben
_______________________________________________
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: Int to NSString
      • From: Cryx <email@hidden>
    • Re: Int to NSString
      • From: Sherm Pendley <email@hidden>
  • Prev by Date: Re: How to know if a file is invisible
  • Next by Date: Re: Int to NSString
  • Previous by thread: NSTextView resizing bug?
  • Next by thread: Re: Int to NSString
  • Index(es):
    • Date
    • Thread