public
Fork of Caged/gitnub
Description: A Gitk-like application written in RubyCocoa that looks like it belongs on a Mac. See the wiki for downloads and screenshots.
Homepage: http://alternateidea.com
Clone URL: git://github.com/juretta/gitnub.git
Search Repo:
Made standard gravatarimagecheck async
georgboe (author)
Mon Apr 14 11:51:32 -0700 2008
commit  8371aa6417af86ce08b556b585aa2ef4630d2af8
tree    75a7a2602b3a5a77ef00f912cb7fb2d370330c63
parent  e66ae1df7649d8c340daa0dfea91b193115694ed
...
29
30
31
32
 
 
33
34
35
...
123
124
125
 
 
 
 
 
 
126
127
128
...
29
30
31
 
32
33
34
35
36
...
124
125
126
127
128
129
130
131
132
133
134
135
0
@@ -29,7 +29,8 @@
0
     @branch = :master
0
     @icon_queue = NSOperationQueue.alloc.init
0
     @icon_url_map = {}
0
- @standardimage = NSImage.alloc.initWithContentsOfURL(NSURL.URLWithString('http://www.gravatar.com/avatar.php?gravatar_id=60c7cd44e236c918cb682e2asdfs7f4f&size=36')).TIFFRepresentation
0
+  @standard_url = gravatar_url('standardimage')
0
+  @icon_queue.addOperation(ImageLoadOperation.alloc.initWithURL_delegate(@standard_url, self))
0
     @icons = Hash.new do |hash, email|
0
       url = gravatar_url(email)
0
       @icon_url_map[url] = email
0
@@ -123,6 +124,12 @@
0
   end
0
   
0
   def imageLoadForURL_didFinishLoading(url, image)
0
+
0
+  if url.absoluteString.isEqualToString(@standard_url.absoluteString)
0
+    @standardimage = image
0
+    return
0
+  end
0
+  
0
     return if checkImage(image)
0
     email = @icon_url_map[url]
0
     @icons[email] = image

Comments

    No one has commented yet.