• 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: Images in folder - simple question?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Images in folder - simple question?


  • Subject: Re: Images in folder - simple question?
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Thu, 29 Jan 2004 21:10:58 +0100

At 22:09 Uhr +0100 28.01.2004, Stefan Pantke wrote:
NSString *itsFullPath = [NSString stringWithFormat:@"%@/%@",
theDirectoryName,
itsName
];

Actually stringByAppendingPathComponent: (in NSPathUtilities.h) instead of stringWithFormat: would probably be the more approprate solution. Especially since it will automatically insert the slash as needed, but leave it out if the path already ends in a slash. And it'd be a tiny bit faster as well.

--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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: 
 >Images in folder - simple question? (From: email@hidden (Dominik Gwosdek))
 >Re: Images in folder - simple question? (From: Stefan Pantke <email@hidden>)
 >Re: Images in folder - simple question? (From: email@hidden (Dominik Gwosdek))
 >Re: Images in folder - simple question? (From: Stefan Pantke <email@hidden>)

  • Prev by Date: Re: Images in folder - simple question?
  • Next by Date: Re: Any new/updated Cocoa books soon?
  • Previous by thread: Re: Images in folder - simple question?
  • Next by thread: Re: Images in folder - simple question?
  • Index(es):
    • Date
    • Thread