home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / next / programm / 5361 < prev    next >
Encoding:
Internet Message Format  |  1992-07-30  |  2.5 KB

  1. Path: sparky!uunet!gatech!concert!duke!news.duke.edu!bullnext.mc.duke.edu
  2. From: low00001@bullnext.mc.duke.edu (Richard Low)
  3. Newsgroups: comp.sys.next.programmer
  4. Subject: Finding the path to an .app
  5. Message-ID: <4169@news.duke.edu>
  6. Date: 30 Jul 92 13:23:17 GMT
  7. Sender: news@news.duke.edu
  8. Lines: 50
  9. Nntp-Posting-Host: homenext.mc.duke.edu
  10.  
  11. I have several Rich Text documents I want to include in my  
  12. application and, at appropriate points, load them into Scrollviews.
  13.  
  14. I have two questions:
  15.  
  16. 1.  How do I "include" these supporting files into my resulting .app  
  17. file so they are always there? (I'm using Project Builder)
  18.  
  19. 2.  When I want to load the file, how can I reference the file in my  
  20. application as a relative path starting where ever the .app file is  
  21. located?  Right now I'm just specifying an absolute path to load the  
  22. file.
  23.  
  24. Is there something similar to the home directory ~/ reference for an  
  25. application?  I suppose I could always get the current working  
  26. directory and do it the hard way.
  27.  
  28. Thanks for any help.
  29.  
  30.  
  31. Richard Low
  32. Duke University Medical Center
  33. low00001@bullnext.mc.duke.edu
  34. NeXT Mail welcome
  35.  
  36.  
  37. -- NewsGrazer, a NeXTstep(tm) news reader, posting --
  38. M>UQR=&8P7&%N<VE[7&9O;G1T8FQ<9C!<9FUO9&5R;B!#;W5R:65R.WT*7&UA
  39. M<F=L,3(P"EQM87)G<C$R,`I<<&%R9%QT>#$S-#1<='@R-C@X7'1X-#`S,EQT
  40. M>#4S-S9<='@V-S(P7'1X.#`V-%QT>#DT,#A<='@Q,#<U,EQT>#$R,#DV7'1X
  41. M,3,T-#!<9C!<8C!<:3!<=6QN;VYE7&9S,CA<9F,P7&-F,"!)(&AA=F4@<V5V
  42. M97)A;"!2:6-H(%1E>'0@9&]C=6UE;G1S($D@=V%N="!T;R!I;F-L=61E(&EN
  43. M(&UY(&%P<&QI8V%T:6]N(&%N9"P@870@87!P<F]P<FEA=&4@<&]I;G1S+"!L
  44. M;V%D('1H96T@:6YT;R!38W)O;&QV:65W<RY<"EP*22!H879E('1W;R!Q=65S
  45. M=&EO;G,Z7`I<"C$N("!(;W<@9&\@22`B:6YC;'5D92(@=&AE<V4@<W5P<&]R
  46. M=&EN9R!F:6QE<R!I;G1O(&UY(')E<W5L=&EN9R`N87!P(&9I;&4@<V\@=&AE
  47. M>2!A<F4@86QW87ES('1H97)E/R`H22=M('5S:6YG(%!R;VIE8W0@0G5I;&1E
  48. M<BE<"EP*,BX@(%=H96X@22!W86YT('1O(&QO860@=&AE(&9I;&4L(&AO=R!C
  49. M86X@22!R969E<F5N8V4@=&AE(&9I;&4@:6X@;7D@87!P;&EC871I;VX@87,@
  50. M82!R96QA=&EV92!P871H('-T87)T:6YG('=H97)E(&5V97(@=&AE("YA<'`@
  51. M9FEL92!I<R!L;V-A=&5D/R`@4FEG:'0@;F]W($DG;2!J=7-T('-P96-I9GEI
  52. M;F<@86X@86)S;VQU=&4@<&%T:"!T;R!L;V%D('1H92!F:6QE+EP*7`I)<R!T
  53. M:&5R92!S;VUE=&AI;F<@<VEM:6QA<B!T;R!T:&4@:&]M92!D:7)E8W1O<GD@
  54. M?B\@<F5F97)E;F-E(&9O<B!A;B!A<'!L:6-A=&EO;C\@($D@<W5P<&]S92!)
  55. M(&-O=6QD(&%L=V%Y<R!G970@=&AE(&-U<G)E;G0@=V]R:VEN9R!D:7)E8W1O
  56. M<GD@86YD(&1O(&ET('1H92!H87)D('=A>2Y<"EP*5&AA;FMS(&9O<B!A;GD@
  57. M:&5L<"Y<"EP*7`I2:6-H87)D($QO=UP*1'5K92!5;FEV97)S:71Y($UE9&EC
  58. M86P@0V5N=&5R7`IL;W<P,#`P,4!B=6QL;F5X="YM8RYD=6ME+F5D=5P*3F58
  59. 35"!-86EL('=E;&-O;65<"@I]"D!B
  60. `
  61.