public
Description: An OS X application to build a standalone web site as an export from my photo album.
Homepage: http://bleu.west.spy.net/~dustin/projects/photosync/
Clone URL: git://github.com/dustin/photosync.git
more informative location list UI
dustin (author)
Sat Feb 05 23:14:06 -0800 2005
commit  355a49845dbc1b322c3b65a45353350768e62e02
tree    5435a79b9492880b3bad4a20b9e3ec0779981b42
parent  8206504c7a936b4854f5ed6c6c55f94ba571a36d
...
23
24
25
 
 
26
27
28
...
23
24
25
26
27
28
29
30
0
@@ -23,6 +23,8 @@
0
 -initWithDict:(NSDictionary *)d;
0
 -(NSDictionary *)toDict;
0
 
0
+-(NSString *)urlinfo;
0
+
0
 -(BOOL)isActive;
0
 -(void)setActive:(BOOL)to;
0
 
...
23
24
25
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
27
28
...
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
0
@@ -23,6 +23,24 @@
0
   return rv;
0
 }
0
 
0
+-(NSString *)urlinfo
0
+{
0
+ NSMutableString *rv=[[NSMutableString alloc] initWithCapacity:64];
0
+ // Leave it blank if we don't have a URL yet.
0
+ if(_url != nil && [_url length] > 0) {
0
+ NSString *un=_username;
0
+ if(un == nil || [un length] == 0) {
0
+ un=@"guest";
0
+ }
0
+ [rv appendFormat:@"%@@%@", un, _url];
0
+ if(_forUser != nil && [_forUser length] > 0) {
0
+ [rv appendFormat:@" (for %@)", _forUser];
0
+ }
0
+ }
0
+ [rv autorelease];
0
+ return(rv);
0
+}
0
+
0
 -(NSString *)description
0
 {
0
   return([NSString stringWithFormat:@"<Location url=``%@'' rc=%u>",

Comments

    No one has commented yet.