• 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: Storing text for use in code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie: Storing text for use in code


  • Subject: Re: Newbie: Storing text for use in code
  • From: Jonathan Jackel <email@hidden>
  • Date: Sat, 10 May 2003 10:48:09 -0400

NSString *yourForm = [[NSBundle mainBundle]
pathForResource:@"yourHtmlFile" ofType:@"html"];
NSMutableString *htmlString = [NSMutableString
stringWithContentsOfFile:yourForm];

Jonathan

On Saturday, May 10, 2003, at 01:24 AM, Andres Ramirez wrote:

> Hello,
>
> I've searched the archives, but their system is quite annoying. I was
> wondering what is the proper way to keep a lot of strings that I might
> need to use in my code. In the Carbon days, I would set them up in the
> resource file, but I can't seem to find something similar for a nib
> file. I guess I could trick a localization.string file for this, but
> is there a better solution?
>
> Thanks in advance.
>
> If my question is too basic, feel free to send me to the right docs.
> It's a lot to read, and I am slowly catching up.
>
> - Andres
> _______________________________________________
> 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.
_______________________________________________
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: 
 >Newbie: Storing text for use in code (From: Andres Ramirez <email@hidden>)

  • Prev by Date: Re: Newbie: Storing text for use in code
  • Next by Date: Re: Dock Icon Help
  • Previous by thread: Re: Newbie: Storing text for use in code
  • Next by thread: NSMovieView stops playing
  • Index(es):
    • Date
    • Thread