Login | Register
My pages Projects Community openCollabNet

Discussions > users > Re: SCPlugin version 0.8.0 released - now, with Snow Leopard!

scplugin
Discussion topic

Back to topic list

Re: SCPlugin version 0.8.0 released - now, with Snow Leopard!

Reply

Author jackrepenning
Full name Jack Repenning
Date 2010-12-21 10:23:16 PST
Message On Dec 21, 2010, at 12:55 AM, webpost at tigris dot org wrote:

> * "...only that the old way no longer works, and we haven't figured out the new way." - sorry about my ignorance, but hasn't Apple published an API for these bloody icon overlays? Or is it all hush-hush, and you'd have to pay for that particular API information (i.e. dropbox)? In other words: why should anyone have to 'figure out' (as in, 'reverse engineer') - at all - how to do these icon overlays??

No, no API. In fact, discussion with Apple engineers on the topic includes such remarks as "that sort of use is exactly what we're trying to prevent."

There are APIs for providing icons, and changing icons, and even an API for providing the larger "preview" view (available either as a replacement for the icon, or in a separate column of the column folder mode). But none of those is sufficient for Subversion's purposes.

The trick here is that the badge (file state) can change based on events not directly related to the file itself. As a simple example, if you remove the ".svn/" subdirectory from any directory, then all the files inside it magically change from their various Subversion states (like modified, unmodified, scheduled-for-add, and so on) to merely "plain old non-Subversion file." The Apple file system has no concept for "a file whose status is based on files in some other directory." To compute the badges properly requires executing some Subversion-specific code whenever the question comes up.

Or, alternatively, one may use the filesystem-events API, to learn about every change anywhere, filter out the interesting changes, and emit a flurry of plain icon-change events. This would be closer to something supported, but still not quite, as the Apple file system doesn't ordinarily store file icons directly, but rather remembers which application owns the file, and checks the app's configuration info to learn the icon: we'd have to commandeer ownership of all svn-managed files, or give them single-file private icons, each of which carries its own kind of tackiness.

> * If actual icon overlays are a problem - how difficult would it be to change the color of rendered filenames in Finder?

Changing the color of the file names (what Apple calls "labels") is possible, and from time to time we knock the idea around. But it doesn't solve any of the problems, since we still have to make it happen at the same moments, and in response to the same unrelated (so far as Finder knows) events.

> "I'm not sure which icons you're talking about; I'm using Leopard and
> when files have changed or newer versions are available, I get letters
> like 'M' or '*'"
>
> Thus - if changing font properties/formatting is too problematic - how about temporarily appending letters to the filenames, for those files under subversion control?

I believe the post you quote is describing a nook of the Code UI, which is basically a text list not icons.

Regardless: once again, the difficulty is not in finding some way to represent state, but rather in ensuring we know when state has changed and representation needs to follow suit.

> (btw, wow: "Dedicated Mac SVN clients cost up to $60 — Coda 1.5 adds Subversion for free." http://www.panic.com​/coda/#files-pane).

There are quite a number of Finder replacements, both free and pay. If that meets your needs, sweet! A few are listed in our wiki. The point of SCPlugin is that Subversion state and commands should be available whenever you're doing whatever you're doing, not require you to launch some other app.

> * Maybe some kind of a Finder button - which on roll-over would render the state of the currently shown directory as a png - with svn status indicated by icons/colors? (it wouldn't have to be the same rendering engine for files display as Finder, though - if that makes some sort of color indication/icon overlay possible or easier?)

Now, that there is a new thought I don't recall we've ever thunk before--thanks!

> Suggestions like these would be simply to get some kind of icon overlay/badging working soon - which could then possibly remain as alternatives, once the usual icon badging starts working.

As it happens, we're presently quite close to fixing the badging, as per original user-interface design intent--see the discussion "Snow Leopard badging", in the dev@ list,

  http://scplugin.tigr​is.org/ds/viewMessag​e.do?dsForumId=1522​&dsMessageId=2685​184

If any of the Mac users with whom you work are also Mac programmers, and might have some time, we could welcome them into the community with a highly-requested, well-scoped, already prototyped opportunity to contribute!



-==-
Jack Repenning
jackrepenning at tigris dot org
Project Owner
SCPlugin
http://scplugin.tigris.org
"Subversion for the rest of OS X"

« Previous message in topic | 10 of 43 | Next message in topic »

Messages

Show all messages in topic

SCPlugin version 0.8.0 released - now, with Snow Leopard! jackrepenning Jack Repenning 2010-01-25 17:13:58 PST
     RE: SCPlugin version 0.8.0 released - now, with Snow Leopard! mhgsjm m.higashijima 2010-01-26 09:33:59 PST
         Re: SCPlugin version 0.8.0 released - now, with Snow Leopard! jackrepenning Jack Repenning 2010-01-26 09:56:50 PST
             RE: Re: SCPlugin version 0.8.0 released - now, with Snow Leopard! webpost at tigris dot org webpost at tigris dot org 2010-01-26 12:03:22 PST
     RE: SCPlugin version 0.8.0 released - now, with Snow Leopard! webpost at tigris dot org webpost at tigris dot org 2010-07-22 14:32:56 PDT
         RE: SCPlugin version 0.8.0 released - now, with Snow Leopard! jrepenning Jack Repenning 2010-07-22 14:42:58 PDT
     RE: SCPlugin version 0.8.0 released - now, with Snow Leopard! webpost at tigris dot org webpost at tigris dot org 2010-12-01 20:04:41 PST
         Re: SCPlugin version 0.8.0 released - now, with Snow Leopard! jackrepenning Jack Repenning 2010-12-02 20:13:23 PST
     RE: SCPlugin version 0.8.0 released - now, with Snow Leopard! webpost at tigris dot org webpost at tigris dot org 2010-12-21 00:55:03 PST
         Re: SCPlugin version 0.8.0 released - now, with Snow Leopard! jackrepenning Jack Repenning 2010-12-21 10:23:16 PST
             RE: Re: SCPlugin version 0.8.0 released - now, with Snow Leopard! webpost at tigris dot org webpost at tigris dot org 2010-12-21 12:10:34 PST
     RE: SCPlugin version 0.8.0 released - now, with Snow Leopard! webpost at tigris dot org webpost at tigris dot org 2011-01-14 09:03:07 PST
         RE: SCPlugin version 0.8.0 released - now, with Snow Leopard! jackrepenning Jack Repenning 2011-01-14 11:17:45 PST
     Re: SCPlugin version 0.8.0 released - now, with Snow Leopard! lrivers Lorin Rivers 2010-01-26 14:15:33 PST
         RE: Re: SCPlugin version 0.8.0 released - now, with Snow Leopard! webpost at tigris dot org webpost at tigris dot org 2010-01-27 00:32:11 PST
             RE: Re: SCPlugin version 0.8.0 released - now, with Snow Leopard! jackrepenning Jack Repenning 2010-01-27 13:39:13 PST
         Re: SCPlugin version 0.8.0 released - now, with Snow Leopard! jackrepenning Jack Repenning 2010-01-27 10:11:10 PST
             RE: Re: SCPlugin version 0.8.0 released - now, with Snow Leopard! webpost at tigris dot org webpost at tigris dot org 2010-05-02 12:10:35 PDT
     RE: SCPlugin version 0.8.0 released - now, with Snow Leopard! webpost at tigris dot org webpost at tigris dot org 2010-01-26 19:59:56 PST
         Re: SCPlugin version 0.8.0 released - now, with Snow Leopard! auria Marianne Gagnon 2010-01-27 13:51:05 PST
     RE: SCPlugin version 0.8.0 released - now, with Snow Leopard! webpost at tigris dot org webpost at tigris dot org 2010-01-27 13:31:17 PST
         RE: SCPlugin version 0.8.0 released - now, with Snow Leopard! jackrepenning Jack Repenning 2010-01-27 13:55:04 PST
             RE: SCPlugin version 0.8.0 released - now, with Snow Leopard! webpost at tigris dot org webpost at tigris dot org 2010-01-27 14:15:54 PST
                 RE: SCPlugin version 0.8.0 released - now, with Snow Leopard! jackrepenning Jack Repenning 2010-01-27 16:14:20 PST
                     RE: SCPlugin version 0.8.0 released - now, with Snow Leopard! breakpoint Brian 2010-01-28 07:29:09 PST
Page: of 2 « Previous | Next »
Messages per page: