aboutsummaryrefslogtreecommitdiff
path: root/Foundation
Commit message (Collapse)AuthorAge
* [Author: dmaclach]Gravatar gtm.daemon2009-08-11
| | | | | | | | | | Fixed up GTMGoogleSearch so that it actually works on the iPhone Device. Fixed up some GTMNSObject+KVO issues on the iPhone Device. Fixed up GTMObjC2Runtime so that it actually compiles on the device. Added debugging capabilities to KVO with GTM. Removed unnecessary GTM_* system version macros from GTMDefines.h R=thomasvl DELTA=185 (153 added, 19 deleted, 13 changed)
* [Author: iwade]Gravatar gtm.daemon2009-07-29
| | | | | | | Add gtm_dictionaryWithHttpArgumentsString to NSDictionary+URLArguments. R=thomasvl APPROVED=thomasvl DELTA=73 (72 added, 0 deleted, 1 changed)
* [Author: dmaclach]Gravatar gtm.daemon2009-07-22
| | | | | | Evil bug that ended up with us getting the class instead of an instance passed in to our callback. DELTA=30 (29 added, 0 deleted, 1 changed) R=thomasvl
* [Author: mrossetti]Gravatar gtm.daemon2009-07-20
| | | | | | Fix GTM build. R=dmaclach DELTA=1 (1 added, 0 deleted, 0 changed)
* [Author: alcor]Gravatar gtm.daemon2009-07-20
| | | | | | Fixes for tvl R=thomasvl,dmaclach DELTA=8 (0 added, 2 deleted, 6 changed)
* [Author: dmaclach]Gravatar gtm.daemon2009-07-14
| | | | | | Added support for passing in a context type object to GTMNSEnumerator+Filter. DELTA=176 (133 added, 0 deleted, 43 changed) R=thomasvl
* [Author: alcor]Gravatar gtm.daemon2009-07-14
| | | | | | Add quick and silent alias resolution R=dmaclach DELTA=44 (41 added, 1 deleted, 2 changed)
* [Author: thomasvl]Gravatar gtm.daemon2009-06-17
| | | | | | Gets tests running under 10.5.7 R=stuartmorgan DELTA=14 (8 added, 3 deleted, 3 changed)
* [Author: mrossetti]Gravatar gtm.daemon2009-06-15
| | | | | | Mostly minor cleanup with a couple of leaks plugged. DELTA=28 (2 added, 7 deleted, 19 changed) R=dmaclach,hawk
* [Author: thomasvl]Gravatar gtm.daemon2009-06-03
| | | | | | | | | Add a unittest for http://code.google.com/p/google-toolbox-for-mac/issues/detail?id=25 the bug isn't fixed yet, so the failing parts (they hang) are blocked from running. R=dmaclach DELTA=53 (53 added, 0 deleted, 0 changed)
* [Author: dmaclach]Gravatar gtm.daemon2009-05-28
| | | | | | | | | | Change GTMGoogleSearch to not do escaping of URL arguments, because as it turns out the client often wants to handle that themselves. Also, made it so that you didn't have to have a query argument, and that you could override other arguments by setting them to [NSNull null]. These changes make the API far more flexible. DELTA=48 (12 added, 23 deleted, 13 changed) R=thomasvl
* [Author: dmaclach]Gravatar gtm.daemon2009-05-22
| | | | | | Added GTMGoogleSearch. DELTA=853 (853 added, 0 deleted, 0 changed) TBR=thomasvl
* [Author: dmaclach]Gravatar gtm.daemon2009-05-14
| | | | | | Fix up GTMGeometryUtils header so that it works properly in a C++ environment R=thomasvl DELTA=8 (8 added, 0 deleted, 0 changed)
* [Author: dmaclach]Gravatar gtm.daemon2009-05-07
| | | | | | | Added some support for scanning JSON. We don't parse it, but we scan out blobs that you can then pass to a parser. DELTA=219 (219 added, 0 deleted, 0 changed) R=thomasvl
* [Author: thomasvl]Gravatar gtm.daemon2009-04-30
| | | | | | | | | | | Address http://code.google.com/p/google-toolbox-for-mac/issues/detail?id=18 - Use a local autoreleasepool during data reads incase the runloop doesn't dump temp memory as much as we'd like. - Wrap the processing up in an exception handler to make sure the pool is always drained. - Update one loop to use GTM_FOREACH_OBJECT. R=dmaclach DELTA=100 (43 added, 32 deleted, 25 changed)
* [Author: dmaclach]Gravatar gtm.daemon2009-04-27
| | | | | | | Adds faster version of [NSWorkspace launchedApplications] and forces AppleScript execution onto the main thread. DELTA=136 (111 added, 14 deleted, 11 changed) R=thomasvl
* [Author: krisr]Gravatar gtm.daemon2009-04-02
| | | | | | Bump GTMAbstractDOListener test coverage over 90% DELTA=79 (77 added, 0 deleted, 2 changed) R=thomasvl,dmaclach
* [Author: thomasvl]Gravatar gtm.daemon2009-04-02
| | | | | | Include GTMDefines so the 10.5 macro is defined even on Tiger. R=mdalrymple DELTA=1 (1 added, 0 deleted, 0 changed)
* [Author: krisr]Gravatar gtm.daemon2009-03-31
| | | | | | Increase test coverage DELTA=246 (241 added, 0 deleted, 5 changed) R=thomasvl,dmaclach
* [Author: dmaclach]Gravatar gtm.daemon2009-03-13
| | | | | | Fix up StackTrace so that it uses BOOLs correctly, and puts a - in front of regular methods. It was putting a + in front of basically all methods. DELTA=4 (0 added, 0 deleted, 4 changed) R=thomasvl
* [Author: dmaclach]Gravatar gtm.daemon2009-03-13
| | | | | | | | Fixes up the leaks in the tests. Sets up the RunMacOSUnitTest script so that it actually works correctly with respect to enabling leaks. DELTA=20 (4 added, 3 deleted, 13 changed) R=thomasvl
* [Author: dmaclach]Gravatar gtm.daemon2009-03-13
| | | | | | Renamed files appropriately, and cleaned up the project. Updated release notes with info about GTMTransientRootPortProxy. DELTA=330 (1 added, 312 deleted, 17 changed) R=krisr,thomasvl
* [Author: dmaclach]Gravatar gtm.daemon2009-03-13
| | | | | | | | | Fixes up the transient root proxy support so that it's faster and doesn't leak. It also adds the missing timeouts, and now works with generic NSPorts instead of just socket ports. I will update the release notes, and change the file names over from RootSocket to RootPort once these gets approved. DELTA=336 (95 added, 110 deleted, 131 changed) R=krisr,thomasvl
* - increase some test coverageGravatar thomasvl@gmail.com2009-03-11
| | | | | | - fixed system include in GTMTheme - put the logging of execected dev logs under env control and default it to off to make unittest output a little easier to read.
* Remove some NF comments on code that was being hit.Gravatar thomasvl@gmail.com2009-03-09
| | | | Added a stack trace test to make sure all code paths are covered.
* - Changed gtm_createCGPath to gtm_cgPath in GTMNSBezier+CGPath. The pathGravatar thomasvl@gmail.com2009-03-05
| | | | | | | | | | | | returned is now autoreleased so you don't need to worry about releasing it. - Made some changes to the GTMNSObject+UnitTesting APIs. Specifically renamed gtm_createUnitTestImage to gtm_unitTestImage. The value it returns is now autoreleased, so no need to release it. Also change gtm_createUnitTestBitmapOfSize:withData: to a C function. - Cleaned up GTM so that it passes the Clang checker without any warnings.
* http://code.google.com/p/google-toolbox-for-mac/issues/detail?id=15Gravatar thomasvl@gmail.com2009-03-01
| | | | | - Check bugfix before derefing it (bug, was checking major). - Add to the unittest to fetch each one individually.
* Dropping the Fetcher and ProgressMonitorInputStream, leaving pointers to theGravatar thomasvl@gmail.com2009-02-27
| | | | | GData Obj-C client ones since they are pretty much matches and keeps us from having to maintain two copies of the same basic things.
* a few fixes (and bug fix) found by clangGravatar thomasvl@gmail.com2009-02-27
|
* Update so unittest for GC and 10.5.6 (since they system flakes under those GC inGravatar thomasvl@gmail.com2009-02-26
| | | | | those cases) redo the mutableCopy pattern to avoid leaks.
* logging cleanup/sync up w/ GData's fetcherGravatar thomasvl@gmail.com2009-02-26
|
* adding SQLite helper/wrapperGravatar thomasvl@gmail.com2009-02-26
|
* adding DO helpersGravatar thomasvl@gmail.com2009-02-26
|
* - Added GTMNSObject+KeyValueObserving to make it easier on folks to do KVOGravatar thomasvl@gmail.com2009-02-03
| | | | | | | | | | "correctly". Based on some excellent code by Michael Ash. http://www.mikeash.com/?page=pyblog/key-value-observing-done-right.html This has been added for iPhone and OS X. - Fixed up GTMSenTestCase on iPhone so that it has a description that matches that of OCUnit.
* Fixing a like Avi found w/ our use of CFRunLoop from some kqueue code.Gravatar thomasvl@gmail.com2009-01-22
|
* - turned off _debug framework support in tests since we now capture a lot moreGravatar thomasvl@gmail.com2009-01-09
| | | | | | | | | | | | in log validation. - Added GTM_SUPPORT_GC for controlling the inclusion of GC related code. - If you are using GTMUnitTestDevLog, it also tries to capture logs from NSAssert. - Added GTM_FOREACH_OBJECT/GTM_FOREACH_KEY that uses NSEnumerator and objectEnumerator/keyEnumerator on 10.4, but on 10.5+/iPhone uses FastEnumeration. - GTMNSWorkspace+Running gives a variety of ways of determining the attributes of running processes.
* - Updated some tests for 10.5.6.Gravatar thomasvl@gmail.com2008-12-29
| | | | | | - Updated some tests for debug vs. release differences. (added help on log validation for this). - Some fixes build issues w/ different os versions.
* - GTMStackTrace works on 10.5+ (and iPhone) using NSThread to build the call ↵Gravatar thomasvl@gmail.com2008-12-12
| | | | | | | | | | | | | | | | | | | | | | | | | stack. - Added GTM_EXTERN that makes it easier to mix and match objc and objc++ code. - Added GTMHotKeysTextField for display and editing of hot key settings. - Added GTMCarbonEvent for dealing with Carbon Events and HotKeys in a ObjC like way. - Backported the Atomic Barrier Swap functions for Objective C back to Tiger. - Added a variety of new functions to GTMUnitTestingUtilities for checking if the screensaver is in the way, waiting on user events, and generating keystrokes. - If you are using any Carbon routines that log (DebugStr, AssertMacros.h) and use GTMUnitTestDevLog, the log routines now go through _GTMDevLog so that they can be caught in GTMUnitTestDevLog and verified like any _GTMDevLog calls you may make. For an example of this in action see GTMCarbonEventTest.m. - Added GTMFileSystemKQueue. It provides a simple wrapper for kqueuing something in the file system and tracking changes to it. - RunIPhoneUnitTest.sh now cleans up the user home directory and creates a documents directory within it, used when requesting a NSDocumentDirectory. - Added GTMNSFileManager+Carbon which contains routines for path <-> Alias conversion and path <-> FSRef conversion. - Added GTMNSArray+Merge for merging one array into another with or without a custom merging function, returning a new array with the merged contents.
* - fix up some style things.Gravatar thomasvl@gmail.com2008-12-12
| | | | - change the api slightly so things are a little more "cocoa-y".
* Fixing the use of the wrong var w/ the failure selector.Gravatar thomasvl@gmail.com2008-12-12
| | | | (http://code.google.com/p/google-toolbox-for-mac/issues/detail?id=10)
* - Added GTMLightweightProxyGravatar thomasvl@gmail.com2008-11-17
| | | | - Added installer for the spotlight importers.
* - Added has ability to check if a script has an open handler to ↵Gravatar thomasvl@gmail.com2008-11-04
| | | | | | | | | GTMNSAppleScript+Handler. - GTMStackTrace support for building a trace from the call stack in an NSException (for 10.5+ and iPhone). - Added GTMUIFont+LineHeight. - Cleaned up some OS version checks to use constants instead of numbers directly.
* - GTM_INLINE will make sure a function gets inlined, and provides a consistentGravatar thomasvl@gmail.com2008-10-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | way for all GTM code to do it. - Added GTMDebugThreadValidation to allow you to enforce the fact that your code must run in the main thread in DEBUG builds. - Updated some internals of the iPhone unittesting so it doesn't double print the test descriptions, file names, or lines numbers of a test failure line. Also includes the test names in the error output. - Changed the xcconfigs so that know it's easier to set different settings at the different levels and not accidentally overwrite settings set at lower levels in the "settings collapse". Also tightened up warnings significantly. - Changed how gtm_unitTestExposedBindingsTestValues works. If you have an implementation of gtm_unitTestExposedBindingsTestValues in your own code you will need to update to the new way of calling. See implementations in GTMNSObject+BindingUnitTesting.m for details. - Added support for grabbing the build number for a particular OS in GTMSystemVersion and easily comparing it to known build numbers, and switched some types from in GTMSystemVersion from "int" to SInt32 to make 64 bit work better. - Added support for SnowLeopard (10A96). We build cleanly with the 10.6 SDKs and all radar checks were updated accordingly. Build All script was also updated to build on SnowLeopard if you have the SDK available. - Turned off building ppc64 GTM because the SnowLeopard SDK currently doesn't have ppc64 support, so SenTestCase isn't defined. This makes it impossible to build the ppc64 10.5 config on SnowLeopard. We have left the setting in the xcconfig for those of you who need it, but have disabled it in the GTM project settings. - Turned on stack smashing protection on the debug builds for all Leopard and above. - Added ability to easily do leak checking by defining the GTM_ENABLE_LEAKS environment variable. It isn't on by default because several of Apple's frameworks leak. You can work around these false positives by using the GTM_LEAKS_SYMBOLS_TO_IGNORE environment variable. Also if you turn on leaks make sure to turn off zombies by defining the GTM_DISABLE_ZOMBIES variable, otherwise every memory allocation you do will look like a leak.
* - Added GTMTestTimer.h for doing high fidelity timings.Gravatar thomasvl@gmail.com2008-09-22
| | | | | | | | | | | | | | | | - Added leaks checking to iPhone unit test script. It can be controlled by the GTM_DISABLE_LEAKS environment variable - Added ability to control using zombies to iPhone unit test script. It can be controlled by the GTM_DISABLE_ZOMBIES environment variable - Added ability to control termination to iPhone unit test script. It can be controlled by the GTM_DISABLE_TERMINATION environment variable - Fixed several leaks found with leak checking enabled. - Added configs for different iPhone OS versions.
* - Added GTMExceptionalInlines for dealing with cases where you getGravatar thomasvl@gmail.com2008-09-10
| | | | | | | | | | | | | | | | warning: variable 'r' might be clobbered by 'longjmp' or 'vfork' when using certain Apple inlined functions in @synchronized/@try blocks. - Updated to Xcode 3.1 so the GTM and iPhone project have the same baseline. The code should work in other version of xcode, but the projects and xcconfig files now use 3.1 features. - Added GTMABAddressBook which is a cocoa wrapper for the 'C' AddressBook APIs on the iPhone. - Added several set environment variable statements to RunIPhoneUnitTest.sh to encourage bugs to come out of the woodwork.
* - Added GTMGetURLHandler class that gives you a very easy way of supportingGravatar thomasvl@gmail.com2008-08-21
| | | | | | | | | | Get URL events just by adding a key to your plists, and adding a single method to your class. See GTMGetURLHandler.m for more details. - Added XcodeProject, AppleScript, and InterfaceBuilder Spotlight Plugins. Allows you to index .xcodeproj, .scpt, .scptd, .xib, .nib, and .aib files. See Readmes beside individual projects in SpotlightPlugins.
* - Added GTMNSMakeUncollectable for forcing objects to survive in a GC world.Gravatar thomasvl@gmail.com2008-08-12
| | | | | | | | | | | | | | | | | - Added GTMCFAutorelease to make the [GTMNSMakeCollectable(cfFoo) autorelease] simpler and clearer, it's now just GTMCFAutorelease(cfFoo), and works in both GC and non-GC world. - Added GTMIsGarbageCollectionEnabled to GTMGarbageCollection.h. See the note there for it's usage. - Disabled the unittests for things on top of NSAppleScript in a GC world since Apple has bugs and it can crash. See the unittest for a note about it. - GTMStackTrace now can figure out ObjC symbols. Downside it is now ObjC only. - GTMFourCharCode can now be used with NSAppleEventDescriptors easily. typeType, typeKeyword, typeApplSignature, and typeEnumerated all get turned into GTMFourCharCodes. - Fixed up crash in GTMLoggerRingBufferWriter when used with GC on. - Significant updates to GTMNSAppleScript+Handler allowing you to list all handlers and properties (including inherited) and cleans up several errors in how scripting was being handled.
* fix a bug w/ method check support.Gravatar thomasvl@gmail.com2008-07-29
| | | | | mark part of the logger+asl code as not feasible for testing. work around a unittesting marco catch w/ gc and __weak.
* helps if I add the files before doing the commitGravatar thomasvl@gmail.com2008-07-21
|
* - Removed GTMNSWorkspace+ScreenSaver as it has always been a little dodgy dueGravatar thomasvl@gmail.com2008-07-21
| | | | | | | | | | | | | | | | to it's dependencies on undocumented frameworks, and the ScreenSaver framework doesn't play nicely in GC mode. - Added property methods to GTMHTTPFetcher. These are convenient alternatives to storing an NSDictionary in the userData. - Renamed GTMDevLog.m to GTMDevLogUnitTestingBridge.m and added some more comments where it comes into play to hopefully make it more clear that it isn't needed in most cases. - Fixed a potential GTMHTTPFetcher crash on failed authentication. - Added a obj-c logging package, GTMLogger, for applications that want an application level logging system. See GTMLogger.h, GTMLogger+ASL.h, and GTMLoggerRingBufferWriter.h for what the basic system and two optional additions can do.