• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with NSString stringByExpandingTildeInPath method

 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi! I just began to study Objective-C and I am not an expert in MAC OS either.

I'm trying to use the stringByExpandingTildeInPath:



It would be expected for this method to return the String "/Users/baldo" (suppose my user is 'baldo'). But the NSLog just prints '~'.

What I am doing wrong?

Thank you!

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am having the same problem.

Why doesn't it expand the tide?
 
Daniel Abramowicz
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I Can't believe it took HOURS for me to solve this

That's why I hate apple

the problem is that there are apparently 2 different characters for the "~"... one of them is a small tide like the one that appears over the "a" in "ã" and the other one is in the center and bigger, like "~".
 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Daniel Abramowicz wrote:I Can't believe it took HOURS for me to solve this

That's why I hate apple

the problem is that there are apparently 2 different characters for the "~"... one of them is a small tide like the one that appears over the "a" in "ã" and the other one is in the center and bigger, like "~".


Where is Apple's fault?
 
Daniel Abramowicz
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It`s actually Unix fault...

That's OK since I don't like linux either :P


(only one ~ in windows)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic