]> err.no Git - sope/blobdiff - sope-core/NGExtensions/NGExtensions/NSURL+misc.h
fixed to URL processing
[sope] / sope-core / NGExtensions / NGExtensions / NSURL+misc.h
index 7e3a04151d6f7434d3cb8480819e79ab14eb9009..8ad20a7f66cd2d0642cb4c4503385222c7311216 100644 (file)
 
 /* relative path processing (should never return an absolute path) */
 
+/*
+  eg:                "/a/b/c.html"
+  should resolve to: "c.html"
+    
+  Directories are a bit more difficult, eg:
+    "/a/b/c/"
+  is resolved to
+    "../c/"
+*/
 - (NSString *)urlPathRelativeToSelf;
+
+/* this is the same like the absolute path, only without a leading "/" .. */
 - (NSString *)urlPathRelativeToRoot;
+
+/*
+  This can be used for URLs in the same namespace. It should
+  never return an absolute path (it only does in error conditions).
+*/
 - (NSString *)urlPathRelativeToPath:(NSString *)_base;
 
 @end