23 Commits

Author SHA1 Message Date
David Catmull d0480c82d4 replace URLByAppendingPathComponent:isDirectory: (requires 10.7) with URLByAppendingPathComponent: (requires 10.6) 2011-06-19 16:13:54 -06:00
Roustem Karimov ff833ea880 Fixed GitX URL scheme problem (On Lion it always comes back as 'gitx'). 2011-05-26 23:27:13 -04:00
Roustem Karimov 59701cbe73 Reworking html resources. For some reason, without this change none of the CSS/JS is being loaded on Lion. 2011-05-26 23:21:40 -04:00
German Laullon 656cb824a3 NSLog => Dlog (Log only on debug build) 2011-04-05 11:39:01 -07:00
German Laullon 8896dc993c basic FileMerge support 2011-03-04 13:38:55 -08:00
Nathan Kinsinger 53d92fb73e Cleanup the views when the repository window closes and stop memory leaks.
- make sure to remove themselves from KV and notification center observers
    - add the PBWebHistoryController to PBHistoryController so it can be told to close
    - replaced the -removeView methods with -closeView (-removeView was not being used)
    - clear any obj-c objects set in web scripting objects

This last item seems to be the reason that the web controllers and the current commit did not get collected which then held the repository document from being collected as well.
2010-07-04 09:46:22 -06:00
André Berg fffa02425a SCNetworkCheckReachabilityByName will be deprecated anyways, so replace it with the docs example which will work on any OS version from 10.3.
Modified-by: Nathan Kinsinger <nkinsinger@brotherbard.com>
Released the target to stop memory leak.
2010-06-27 06:29:25 -06:00
Pieter de Bie 11c9f51302 Make confirmation of Gists optional
This makes use of the rules that are explicit in the
preferences. By default, Gists are always private and there
will always be a confirmation message.

Both options can be changed from the preferences menu.
2009-03-26 23:03:48 +00:00
Anders Carling 67d9ff3262 WebController: Set JS Controller after reloading the view
The WebKit delegate method didStartProvisionalLoadForFrame:
is not called when reloading the frame. This caused the
webviews to appear empty.

We fix it by using a delegate method which is called each
reload, as suggested by weinig in #webkit.

This fixes Lighthouse bug #81.
2009-01-29 23:49:06 +00:00
Daniel Lundqvist 865ae5f422 Have PBWebController react to configuration changes.
Override preferencesChanged in subclasses to actually react to changes.
Base class does nothing by default.
2009-01-19 16:50:52 +00:00
Daniel Lundqvist 0f8ac90743 WebHistoryController: Only show Gravatar and Gist if they are enabled
This add an "enableFeature" JS function that checks if a given feature is
enabled. If it is, the correct div is shown, otherwise it is hidden.
2009-01-19 16:48:26 +00:00
Daniel Lundqvist 0724dc8eaa Set Controller earlier so it can be used while loading pages. 2009-01-19 16:38:07 +00:00
Pieter de Bie 3dd6385440 Fix memory leaks 2008-11-26 17:44:24 +01:00
Pieter de Bie 304a1a5d03 Remove stray debug messages 2008-11-01 21:14:57 +01:00
Pieter de Bie e232181fae Add a GitX:// protocol handler
This allows to read in arbitrary blobs from the repository.
For more information, see the CallingFromWebKit.txt
document in the Documentation/ directory.
2008-11-01 19:06:05 +01:00
Pieter de Bie db39ff7f92 PBWebController: Add a script accessor
This allows easy access to the window's script object
2008-10-31 23:44:28 +01:00
Pieter de Bie 0a40f876d1 PBWebController: Add asynchronous functions
This allows us to keep the UI responsive while
running expensive commands
2008-10-31 23:44:28 +01:00
Pieter de Bie bd097b0eff HTML: Restructure html folder
This changes the HTML part of GitX to be more consistent -- we
now use a "views" directory where every web view has it's own
directory.

Furthermore, GitX-wide Javascript is added in the "lib" directory.
The same is true for CSS in the "css" directory. Every view can
have its own custom CSS and JS, and those are put in the views
directory (without JS or CSS prefix directories).
2008-10-21 22:48:47 +02:00
Pieter de Bie 5cb4105998 WebController: Display JS errors
This actually displays error messages, rather than
notifying that there is an error
2008-10-21 15:24:34 +02:00
Pieter de Bie 99b6afd37a WebController: Add a message to check whether a site is reachable 2008-10-19 14:05:14 +02:00
Pieter de Bie 20fc22d4b8 WebController: Fix log bug
The log message wasn't escaped previously,
which would mean that %@ code etc would be
parsed, and fail.
2008-10-10 22:47:47 +02:00
Pieter de Bie 6589279383 WebController: Move common functions to superclass 2008-10-10 21:59:22 +02:00
Pieter de Bie 40e9726254 WebControllers: Refactor to use common code 2008-10-10 21:59:21 +02:00