Commit Graph

725 Commits

Author SHA1 Message Date
Allan Odgaard
cb33722602 Update dialog plug-ins
They now set the TMPlugInAPIVersion key in their Info.plist.
2012-12-30 03:00:53 +01:00
Allan Odgaard
df914261f4 Update code to std::thread with lambda 2012-12-30 03:00:53 +01:00
Allan Odgaard
685039c0e9 Don’t rely on com.apple.CrashReporter existing
This used to contain an UUID used for identifying the client in network requests, but for majority of users, this is unset, so now we create our own UUID for the user agent string used when polling for software updates.
2012-12-30 03:00:53 +01:00
Allan Odgaard
09337a7ed4 Workaround for flamboyant progress bar
Starting with Lion (I think) the progress bar at the Bundles preferences pane won’t always hide after having installed a bundle.

The progress bar is set to not show when stopped, but for some reason this property does not seem to always be respected, but if we manually set the progress to zero before setting the property (bound to ‘animate’) to NO, then it does properly hide.
2012-12-28 02:47:20 +01:00
Allan Odgaard
88c1210a10 Remove private methods from interface 2012-12-28 02:47:20 +01:00
Allan Odgaard
6f1cef364d Support “Select Output” as caret placement
Issue #645.
2012-12-28 02:47:20 +01:00
Allan Odgaard
0dfb5d3116 ARC: Update OakFilterList framework 2012-12-28 02:47:19 +01:00
Allan Odgaard
701c9a0541 Use ‘std’ namespace prefix when calling search()
This is to avoid a clash with other things named ‘search’.
2012-12-28 02:47:19 +01:00
Allan Odgaard
33e11aedb0 Add copyWithZone: to OFBPathInfoCell
This is mainly to manually copy-construct the C++ instance counter that we use (in debug mode) to track leaks (or an erroneous extra release).

For good measure we also set the spinTimer instance variable to nil. Though this functionality isn’t presently used, so hasn’t actually caused a problem.
2012-12-28 02:47:19 +01:00
Allan Odgaard
ba274c160f Improve “performSelector: may leak” workaround 2012-12-28 02:47:19 +01:00
Allan Odgaard
a65b7640f9 Handle empty string given to glyphs_for_key
Previously it would work, but as it was calling utf8::to_ch with the empty string, this would trigger an assertion (when running a debug build).
2012-12-28 02:47:19 +01:00
Allan Odgaard
2a3b442bf2 ARC: Update TextMate (core application) 2012-12-28 02:47:19 +01:00
Allan Odgaard
1988240518 Remove old credits window 2012-12-25 01:11:54 +01:00
Allan Odgaard
70979f4eeb ARC: Update BundlesManager framework 2012-12-24 16:50:20 +01:00
Allan Odgaard
53d0a03484 ARC: Update OakDebug framework 2012-12-24 16:32:01 +01:00
Allan Odgaard
09abc8eede Fix software update logic
It would previously not ask to update (but go directly to download) when doing a manual update check.
2012-12-24 14:09:41 +01:00
Allan Odgaard
ddd9763a79 Checkin release notes 2012-12-24 14:03:27 +01:00
Joachim Mårtensson
d501a4e81d Limit redraw
Do some checks to see if there is more to parse on the following line, before invoking the (layout) callback.
2012-12-24 13:43:22 +01:00
Allan Odgaard
1791a48571 Fix potential crash when using “Edit Command…” button
The block used the ‘uuid’ variable, this variable was however a (const) reference, so it wasn’t safe to use within the block.

While fixing the bug (by introducing a local non-reference variable for the bundle item) we have also changed the code slightly, so that “Edit Command…” only shows when a bundle item is found (this is mainly in preparation for running shell commands that doesn’t have a bundle item, e.g. from a future “Filter Through Command” dialog).
2012-12-24 01:23:33 +01:00
Allan Odgaard
06d4b51f44 Fix memory leak
This was introduced when we introduced block-based alert sheets for command errors.
2012-12-24 01:22:29 +01:00
Allan Odgaard
c2d3690848 Remove ‘CT’-prefix from user functions 2012-12-21 16:05:28 +01:00
Allan Odgaard
8c4c927397 Workaround for possible NULL pointer
Seeing a few crashes related to CFRetain() called from CTFontCreateWithName(). My guess is that a nil font results from a bad/corrupted config file, so the actual fix might be to ensure we have a font (at a higher level).
2012-12-21 16:00:42 +01:00
Allan Odgaard
7428cd0939 Add workaround for 10.8 API
This should cause TextMate to once again run on 10.7 (issue #643).
2012-12-20 18:52:31 +01:00
Allan Odgaard
cf676cb01c Checkin release notes 2012-12-20 14:45:48 +01:00
Allan Odgaard
601cf28366 Use the low priority dispatch queue for update checks
Presently mainly a semantic change, as the dispatch queues are mostly empty, but as we adopt GCD for more things, it’ll be more important to put background tasks in a queue with lower priority than the one handling user requested tasks.
2012-12-20 14:02:39 +01:00
Allan Odgaard
2374aafde2 Clear delegate/datasource in dealloc
There are crash reports showing the gutter view accessing its datasource in OakDocumentView’s dealloc (based on a “bounds did change” notification fired when releasing a view).
2012-12-20 14:02:39 +01:00
Allan Odgaard
c7780d1392 Add placeholder text for “time remaining” 2012-12-20 14:02:39 +01:00
Allan Odgaard
cd78f6d29d Eliminate two instance variables 2012-12-20 14:02:39 +01:00
Allan Odgaard
bb38a193e2 Set window autosave name 2012-12-19 20:42:55 +01:00
Allan Odgaard
97ca44f8ad Use NSRunningApplication for application name 2012-12-19 19:42:45 +01:00
Allan Odgaard
f87a11f1bb Improve s/w update dialog text
A “Downgrade” button now appear if the version on the server is lower than the current one. This would e.g. happen if the user has upgraded to a nightly build and does a manual version check (for non-nightly builds).

If the version on the server is the same version as the one running, the user can make a “Redownload” button appear by holding down shift (⇧) when running the update check.
2012-12-19 19:42:45 +01:00
Allan Odgaard
0bac97c9ae Use GCD + blocks for s/w update download 2012-12-19 19:42:45 +01:00
Allan Odgaard
6969d7a98e Use GCD + blocks for s/w update check 2012-12-19 19:42:36 +01:00
Allan Odgaard
71be61cbbb Enable ARC by default
We now explicitly disable it for targets that hasn’t yet been upgraded to ARC. This way, it’s easier to get an overview of which targets hasn’t yet been upgraded and ensures new targets has ARC enabled.
2012-12-19 19:42:36 +01:00
Allan Odgaard
2ae8d9371e Apply custom build flags last
This allows using RAVE_FLAGS to override the more general compiler flags.
2012-12-19 19:42:36 +01:00
Allan Odgaard
6e228b69aa Fix typo 2012-12-19 19:42:36 +01:00
Allan Odgaard
88358ccf26 ARC: Update SoftwareUpdate framework 2012-12-19 19:42:36 +01:00
Allan Odgaard
ed45e1a241 Handle download in s/w update singleton 2012-12-19 19:42:35 +01:00
Allan Odgaard
4a25c7b98d Refactor software update
Move logic out of DownloadWindowController.
2012-12-19 19:42:35 +01:00
Allan Odgaard
0834649011 Improve binding properties
Each property now correspond to exactly one aspect of the UI allowing us to remove the logic and use the class as a view.
2012-12-19 19:42:35 +01:00
Allan Odgaard
3fdb50aa23 Save with Xcode 4.5.2 (4G2008a) 2012-12-19 19:42:35 +01:00
Allan Odgaard
476247b047 Use generated properties 2012-12-19 19:42:35 +01:00
Allan Odgaard
6bc36a565b ARC: Update ns framework 2012-12-19 19:42:35 +01:00
Allan Odgaard
1eb54282af Move attr_string.h to Find framework 2012-12-19 19:42:35 +01:00
Allan Odgaard
1102f8a528 Remove use of ns::attr_string
This is only motivated by easier transition to ARC (one framework at a time) as the ns/attr_string.h header contains manual memory management, which thus cannot be included by a framework using ARC, yet the code needs to be in the header since the code is template-based.
2012-12-19 19:42:34 +01:00
Allan Odgaard
a7e70de9dd Help book index: Enable verbose output
This seems to be the only way to learn of problems creating the help index, as parsing errors are otherwise silently ignored.
2012-12-19 19:42:34 +01:00
Allan Odgaard
05357539d0 fixup! Rename method: scope → scopeContext
Missed one case causing “Current Scope” in bundle item chooser to not have any effect.
2012-12-19 19:42:34 +01:00
Allan Odgaard
71ec3d4c82 Add block-based show alert API 2012-12-16 21:27:06 +01:00
Allan Odgaard
0311f10974 Fix syntax error in debug line 2012-12-16 21:27:06 +01:00
Allan Odgaard
92c77ece36 Change long → int32_t for 68K struct
When building as 64 bit the ‘long’ type is 8 bytes which broke the “jump to selection” part of the ODBEditor protocol support (issue #499).
2012-12-16 21:27:06 +01:00