WOPublic.git
3 years agoAvoid crash in WOLoginItem master
Greg Hurrell [Tue, 16 Oct 2018 13:32:19 +0000 (15:32 +0200)] 
Avoid crash in WOLoginItem

It's quite possible that this code doesn't work any more (it is
using now-deprecated APIs), but this at least fixes the crash.

3 years agoFix Doxygen annotations
Greg Hurrell [Mon, 15 Oct 2018 19:33:17 +0000 (21:33 +0200)] 
Fix Doxygen annotations

3 years agoFix warning about loss of precision in implicit cast
Greg Hurrell [Mon, 15 Oct 2018 19:30:41 +0000 (21:30 +0200)] 
Fix warning about loss of precision in implicit cast

We were casting from NSUInteger (unsigned long) to unsigned.

5 years agoUpdate README and future-proof copyright notices
Greg Hurrell [Mon, 13 Jun 2016 16:31:20 +0000 (09:31 -0700)] 
Update README and future-proof copyright notices

5 years agoMerge branch 'pull/1'
Greg Hurrell [Mon, 13 Jun 2016 16:30:59 +0000 (09:30 -0700)] 
Merge branch 'pull/1'

Originally submitted at: https://github.com/wincent/WOPublic/pull/1

* pull/1:
  Add basic readme
  Fix submodule URLs

5 years agoAdd basic readme
Spencer Bliven [Fri, 10 Jun 2016 13:05:26 +0000 (15:05 +0200)] 
Add basic readme

Changes applied to original PR (https://github.com/wincent/WOPublic/pull/1):

- Fix whitespace.

Signed-off-by: Greg Hurrell <greg@hurrell.net>
5 years agoFix submodule URLs
Spencer Bliven [Fri, 10 Jun 2016 13:04:21 +0000 (15:04 +0200)] 
Fix submodule URLs

7 years agoFix crasher
Greg Hurrell [Tue, 3 Jun 2014 03:25:10 +0000 (20:25 -0700)] 
Fix crasher

Hopefully the final step in my painful journey from GC to ARC.

Signed-off-by: Greg Hurrell <greg@hurrell.net>
7 years agoFix use-after-free crasher
Greg Hurrell [Fri, 23 May 2014 03:02:55 +0000 (20:02 -0700)] 
Fix use-after-free crasher

Stack trace here:

  https://wincent.com/comments/11596

At the same time, switched to best practice for assigning to instance
variables in `init` methods.

Signed-off-by: Greg Hurrell <greg@hurrell.net>
8 years agoUse explicit self in WOLoginItemList init
Greg Hurrell [Wed, 21 May 2014 15:57:32 +0000 (08:57 -0700)] 
Use explicit self in WOLoginItemList init

This has always been best practice in `init` methods, but I have been
inconsistent in following it. This SO post explains the difference:

http://stackoverflow.com/a/19665933/1626737

Effectively, after `self = [super init]`, the explicit "self" referred
to in `self->listRef` may not be the same as the implicit "self" in a
naked `listRef` expression.

People have been reporting crash on launch:

- issue: https://wincent.com/issues/2173
- see also comments here: http://www.macupdate.com/app/mac/10042/synergy

I am not sure if this will fix that issue, but it might, so it seems
worth giving it a try. If it does fix it, I should audit all init
methods in the code base and make sure they do the right thing.

Signed-off-by: Greg Hurrell <greg@hurrell.net>
8 years agoFix leaks left over from ARC conversion
Greg Hurrell [Mon, 19 May 2014 14:20:13 +0000 (07:20 -0700)] 
Fix leaks left over from ARC conversion

Signed-off-by: Greg Hurrell <greg@hurrell.net>
8 years agoApply changes for ARC-compatibility
Greg Hurrell [Sun, 18 May 2014 23:37:30 +0000 (16:37 -0700)] 
Apply changes for ARC-compatibility

Signed-off-by: Greg Hurrell <greg@hurrell.net>
9 years agoSilence another Clang warning about incompatible types
Wincent Colaiuta [Tue, 1 Jan 2013 10:30:35 +0000 (02:30 -0800)] 
Silence another Clang warning about incompatible types

This looks like it was a bug; there don't appear to be any reasonable
circumstances under which we'd want to return an NSMutableArray here
(there is no inheritance relationship or common interface).

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoSilence some Clang warnings about format string markers
Wincent Colaiuta [Tue, 1 Jan 2013 10:30:09 +0000 (02:30 -0800)] 
Silence some Clang warnings about format string markers

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoUpdate WO_EXPORT_CLASS macro for 64-bit Mountain Lion
Wincent Colaiuta [Tue, 1 Jan 2013 09:40:00 +0000 (01:40 -0800)] 
Update WO_EXPORT_CLASS macro for 64-bit Mountain Lion

The old `.no_dead_strip` doesn't work when targeting x86_64 on Mountain
Lion, but the good news is that a simpler trick that doesn't require
inline assembly now does work.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
9 years agoIgnore "build" directory created by Xcode
Greg Hurrell [Fri, 14 Dec 2012 03:56:30 +0000 (19:56 -0800)] 
Ignore "build" directory created by Xcode

Signed-off-by: Greg Hurrell <greg@causes.com>
10 years agoGit: ignore user-specific project bundle insertions added by Xcode 4.1
Wincent Colaiuta [Sun, 24 Jul 2011 22:21:51 +0000 (15:21 -0700)] 
Git: ignore user-specific project bundle insertions added by Xcode 4.1

Signed-off-by: Wincent Colaiuta <win@wincent.com>
10 years agoFix a (cosmetic) typo in a code documentation comment
Wincent Colaiuta [Sun, 24 Jul 2011 22:19:32 +0000 (15:19 -0700)] 
Fix a (cosmetic) typo in a code documentation comment

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoMove stringification macros into separate versioning header snow-leopard
Wincent Colaiuta [Tue, 2 Nov 2010 17:10:43 +0000 (18:10 +0100)] 
Move stringification macros into separate versioning header

The versioning header also includes macros for embedding RCS ID strings
into object files.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoAdd "Submodules" group for submodule folder references
Wincent Colaiuta [Tue, 2 Nov 2010 16:55:19 +0000 (17:55 +0100)] 
Add "Submodules" group for submodule folder references

Signed-off-by: Wincent Colaiuta <win@wincent.com>
11 years agoXcode project file buzz
Wincent Colaiuta [Tue, 2 Nov 2010 16:51:01 +0000 (17:51 +0100)] 
Xcode project file buzz

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoImprove grouping within main() of benchmark tool Synergy-4.3 Synergy-4.4 Synergy-4.4.1 Synergy-4.4.1b Synergy-4.4.2 Synergy-4.4.3 Synergy-4.4b Synergy-4.4b2
Wincent Colaiuta [Mon, 18 Jan 2010 19:00:38 +0000 (20:00 +0100)] 
Improve grouping within main() of benchmark tool

Make the grouping of test variants a little more consistent.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoAdd more benchmarks for NSArray (WORubyBlocks)
Wincent Colaiuta [Mon, 18 Jan 2010 18:54:22 +0000 (19:54 +0100)] 
Add more benchmarks for NSArray (WORubyBlocks)

To clearly demonstrate that the overhead of block dispatch is not
significant, add benchmarks involving repeated calls to the "map:"
method. Sample results:

  1,000,000-element array, 1 iteration
       -[NSArray map:]: 3.444701/0.089042/3.533743 (user/system/total)
    manual enumeration: 3.545396/0.093752/3.639148 (user/system/total)
      fast enumeration: 3.437787/0.093748/3.531535 (user/system/total)
  1000-element array, 1000 iterations
       -[NSArray map:]: 2.913624/0.079141/2.992765 (user/system/total)
    manual enumeration: 2.987299/0.084068/3.071367 (user/system/total)
      fast enumeration: 2.911901/0.082780/2.994681 (user/system/total)

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoAdd benchmarks tool
Wincent Colaiuta [Sun, 17 Jan 2010 15:20:52 +0000 (16:20 +0100)] 
Add benchmarks tool

Add tool for running some simple benchmarks. The first benchmark added
is a comparison of the speed of using the new -[NSArray map:] method
with a couple of variants of explicit manual enumeration.

     -[NSArray map:]: 3.451480/0.092237/3.543717 (user/system/total)
  manual enumeration: 3.562207/0.093985/3.656192 (user/system/total)
    fast enumeration: 3.479888/0.124764/3.604652 (user/system/total)

The results should be taken with a grain of salt as multiple runs can
produce a both relative (changes of order) and absolute variation, but
at least at first glance it would appear that for non
performance-critical applications the election of method really isn't
that important.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoRemove unused "Other Sources" group from Xcode project
Wincent Colaiuta [Sun, 17 Jan 2010 14:45:02 +0000 (15:45 +0100)] 
Remove unused "Other Sources" group from Xcode project

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoAdd license headers to WOUsageMeter files
Wincent Colaiuta [Sun, 17 Jan 2010 14:42:21 +0000 (15:42 +0100)] 
Add license headers to WOUsageMeter files

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoAdd references to new files to Xcode project
Wincent Colaiuta [Sun, 17 Jan 2010 14:40:14 +0000 (15:40 +0100)] 
Add references to new files to Xcode project

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoInitial import of WOUsageMeter class from WOCommon
Wincent Colaiuta [Sun, 17 Jan 2010 14:39:18 +0000 (15:39 +0100)] 
Initial import of WOUsageMeter class from WOCommon

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoAdd Ruby-esque "map:" method to NSArray
Wincent Colaiuta [Sun, 17 Jan 2010 13:41:01 +0000 (14:41 +0100)] 
Add Ruby-esque "map:" method to NSArray

The method takes a block parameter, taking advantage of the new blocks
support added by the Mac OS X 10.6 tool chain and runtime.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoRemove deprecated calls from unit tests
Wincent Colaiuta [Thu, 14 Jan 2010 22:30:23 +0000 (23:30 +0100)] 
Remove deprecated calls from unit tests

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoWOProcessLifetime: silence compiler warning
Wincent Colaiuta [Thu, 14 Jan 2010 22:29:57 +0000 (23:29 +0100)] 
WOProcessLifetime: silence compiler warning

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoFix bug in error-path of pathForFolder:domain:create:
Wincent Colaiuta [Thu, 14 Jan 2010 22:27:40 +0000 (23:27 +0100)] 
Fix bug in error-path of pathForFolder:domain:create:

This bug was discovered while running the unit tests on a new system
with a clean Snow Leopard install. Previously the error-path containing
the bug had never been exercised.

Flesh out the unit tests to increase the likelihood of such a bug being
caught in the future if it ever returns (it is not possible to
guarantee 100% that the error-path can be triggered, because we don't
know what directories will exist on the system where the tests are
running).

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoTrim documentation to further discourage use of deprecated method
Wincent Colaiuta [Thu, 14 Jan 2010 17:35:47 +0000 (18:35 +0100)] 
Trim documentation to further discourage use of deprecated method

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoDeprecate the createDirectoryAtPath:attributes:createParents: method
Wincent Colaiuta [Thu, 14 Jan 2010 17:31:26 +0000 (18:31 +0100)] 
Deprecate the createDirectoryAtPath:attributes:createParents: method

This method is made redundant by the createDirectoryAtPath:
withIntermediateDirectories:attributes:error: method which as added to
NSFileManager in Leopard, so turn it into a simple wrapper for that
method and mark it as deprecated.

This fixes deprecation warnings building against the 10.6 SDK (not
tested against the 10.5 SDK) about the use of createDirectoryAtPath:
attributes: method which is currently deprecated.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoAdd required categories information to NSString URL Utilities header
Wincent Colaiuta [Thu, 14 Jan 2010 17:16:02 +0000 (18:16 +0100)] 
Add required categories information to NSString URL Utilities header

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoUpdate import statements and surrounding comments
Wincent Colaiuta [Thu, 14 Jan 2010 17:14:21 +0000 (18:14 +0100)] 
Update import statements and surrounding comments

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoUpdate license header in newly added files
Wincent Colaiuta [Thu, 14 Jan 2010 17:12:03 +0000 (18:12 +0100)] 
Update license header in newly added files

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoAdd references to new category files to Xcode project
Wincent Colaiuta [Thu, 14 Jan 2010 17:09:46 +0000 (18:09 +0100)] 
Add references to new category files to Xcode project

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoImport NSString URL utilities and NSURL convenience category
Wincent Colaiuta [Thu, 14 Jan 2010 17:07:35 +0000 (18:07 +0100)] 
Import NSString URL utilities and NSURL convenience category

Both of these are coming across from the WOCommon repository.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoFix leak in -[WOLoginItem addToList:] Synergy-4.0.1 Synergy-4.0.1a Synergy-4.0.1b Synergy-4.0a Synergy-4.1 Synergy-4.1.1 Synergy-4.1.1b Synergy-4.1a Synergy-4.1b Synergy-4.2 Synergy-4.2.1 Synergy-4.2.1b Synergy-4.2b Synergy-4.3b
Wincent Colaiuta [Thu, 27 Aug 2009 17:58:35 +0000 (19:58 +0200)] 
Fix leak in -[WOLoginItem addToList:]

Missing call to WOMakeCollectable/CFMakeCollectable.

Discovred using static analysis.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoUpdate buildtools submodule 8fb8129..93e282e
Wincent Colaiuta [Thu, 27 Aug 2009 17:47:42 +0000 (19:47 +0200)] 
Update buildtools submodule 8fb8129..93e282e

  93e282e Switch to Snow Leopard SDK
  04230fd README: update for Snow Leopard
  1bf82fa Drop PowerPC support
  d49b922 README: add note on tags
  aa40fda README: remove unnecessary references to enclosing directory
  6044395 README: add notes on repository URLs and layout
  2ff2a43 README: remove "included tools" list
  64c03c6 README: indent paths to make them stand out
  18ae5c3 Update README for buildtools as a Git submodule
  40f3da0 Fix GPL references in the README
  9b7d87b Rewrap README to 80 columns
  366d169 Remove legacy $Id$ tag

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoLink to SystemConfiguration framework
Wincent Colaiuta [Tue, 25 Aug 2009 00:24:02 +0000 (02:24 +0200)] 
Link to SystemConfiguration framework

This is required by the newly added WOHost class.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoFix compilation errors in WOHost
Wincent Colaiuta [Mon, 24 Aug 2009 18:48:10 +0000 (20:48 +0200)] 
Fix compilation errors in WOHost

Update import statements and replace "unless" macro (which doesn't exist
in WOPublic and won't be added either).

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoAdd references to WOHost files to Xcode project
Wincent Colaiuta [Mon, 24 Aug 2009 18:46:27 +0000 (20:46 +0200)] 
Add references to WOHost files to Xcode project

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoReformat WOHost code documentation to match WOPublic style
Wincent Colaiuta [Mon, 24 Aug 2009 18:39:40 +0000 (20:39 +0200)] 
Reformat WOHost code documentation to match WOPublic style

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoAdd BSD license header to WOHost files
Wincent Colaiuta [Mon, 24 Aug 2009 18:33:02 +0000 (20:33 +0200)] 
Add BSD license header to WOHost files

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoImport WOHost files from WOCommon
Wincent Colaiuta [Mon, 24 Aug 2009 18:30:19 +0000 (20:30 +0200)] 
Import WOHost files from WOCommon

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoUpdate URL to more recent version of documentation
Wincent Colaiuta [Mon, 24 Aug 2009 16:55:25 +0000 (18:55 +0200)] 
Update URL to more recent version of documentation

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoWOMemoryBarrier.h: drop PowerPC macros on Snow Leopard branch
Wincent Colaiuta [Mon, 24 Aug 2009 16:54:06 +0000 (18:54 +0200)] 
WOMemoryBarrier.h: drop PowerPC macros on Snow Leopard branch

This branch is for projects which run only on Snow Leopard, and as Snow
Leopard won't even run on PowerPC processors, the ppc macros are just
cruft which clutter up the header so drop them.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoAdd WOProcessManager references to Xcode project file leopard maint
Wincent Colaiuta [Sun, 23 Aug 2009 19:04:02 +0000 (21:04 +0200)] 
Add WOProcessManager references to Xcode project file

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoReformat WOProcessManager files for WOPublic
Wincent Colaiuta [Sat, 22 Aug 2009 12:42:49 +0000 (14:42 +0200)] 
Reformat WOProcessManager files for WOPublic

A number of clean-ups:

  - add BSD license header
  - change references from "WOCommon" to "WOPublic"
  - update import statements
  - rewrap long code documentation lines

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoInitial import of WOProcessManager class (from WOCommon)
Wincent Colaiuta [Sat, 22 Aug 2009 12:33:29 +0000 (14:33 +0200)] 
Initial import of WOProcessManager class (from WOCommon)

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoUpdate WOProcessLifetime headers
Wincent Colaiuta [Sat, 22 Aug 2009 12:29:51 +0000 (14:29 +0200)] 
Update WOProcessLifetime headers

Add BSD license header, change WOCommon references to WOPublic, and
update import statements.

WOProcessManager is the remaining dependency that will have to come
across to WOPublic in order for this to be compilable.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoAdd WOProcessLifetime references to Xcode project
Wincent Colaiuta [Sat, 22 Aug 2009 12:26:45 +0000 (14:26 +0200)] 
Add WOProcessLifetime references to Xcode project

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoAdd WOEnumerate.h reference to Xcode project file
Wincent Colaiuta [Sat, 22 Aug 2009 12:25:49 +0000 (14:25 +0200)] 
Add WOEnumerate.h reference to Xcode project file

So it can be included in project-wide search index and the like.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoInitial import of WOProcessLifetime class from WOCommon
Wincent Colaiuta [Sat, 22 Aug 2009 12:23:56 +0000 (14:23 +0200)] 
Initial import of WOProcessLifetime class from WOCommon

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoUpdate wmalloc reference to emalloc
Wincent Colaiuta [Tue, 18 Aug 2009 18:18:35 +0000 (20:18 +0200)] 
Update wmalloc reference to emalloc

wmalloc was renamed to emalloc back in 32cff7d, so update the stale
reference in WOSysctl; with this change, the WOPublic test suite now
builds and passes again.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoFormatting changes for WOSysctl and WOProcessSerialNumber
Wincent Colaiuta [Tue, 18 Aug 2009 18:11:58 +0000 (20:11 +0200)] 
Formatting changes for WOSysctl and WOProcessSerialNumber

Minor cosmetic changes to bring the code into line with the rest of
WOPublic:

  - wrap or reformat long lines
  - remove blank lines at end of file

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoUpdate WOSysctl and WOProcessSerialNumber headers
Wincent Colaiuta [Tue, 18 Aug 2009 18:08:39 +0000 (20:08 +0200)] 
Update WOSysctl and WOProcessSerialNumber headers

Include BSD license header, updated copyright year ranges, and trim some
fat.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoAdd Xcode project references to new files
Wincent Colaiuta [Tue, 18 Aug 2009 18:05:13 +0000 (20:05 +0200)] 
Add Xcode project references to new files

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoInitial import of WOSysctl and WOProcessSerialNumber classes
Wincent Colaiuta [Tue, 18 Aug 2009 18:04:14 +0000 (20:04 +0200)] 
Initial import of WOSysctl and WOProcessSerialNumber classes

These are being migrated over from WOCommon.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoUpdate URL broken by issue tracker move Synergy-3.5.4a Synergy-3.5.5a
Wincent Colaiuta [Sat, 15 Aug 2009 14:36:09 +0000 (16:36 +0200)] 
Update URL broken by issue tracker move

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoRewrap Doxygen comments in WOEnumerate.h
Wincent Colaiuta [Mon, 6 Jul 2009 11:13:52 +0000 (13:13 +0200)] 
Rewrap Doxygen comments in WOEnumerate.h

For consistency with the other headers in the repo, wrap code comments
to 80 columns.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoUpdate WOEnumerate.h header
Wincent Colaiuta [Mon, 6 Jul 2009 11:05:38 +0000 (13:05 +0200)] 
Update WOEnumerate.h header

Add BSD license text, update copyright range etc.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoImport WOEnumerate.h from WOCommon
Wincent Colaiuta [Mon, 6 Jul 2009 11:02:13 +0000 (13:02 +0200)] 
Import WOEnumerate.h from WOCommon

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoReplace hardcode instances of "WOCommon" with "WOPublic"
Wincent Colaiuta [Mon, 6 Jul 2009 09:11:53 +0000 (11:11 +0200)] 
Replace hardcode instances of "WOCommon" with "WOPublic"

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoAdd missing files to project
Wincent Colaiuta [Thu, 2 Jul 2009 18:15:37 +0000 (20:15 +0200)] 
Add missing files to project

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoFix header breakage
Wincent Colaiuta [Thu, 2 Jul 2009 18:11:52 +0000 (20:11 +0200)] 
Fix header breakage

The build chain was broken by the changes in buildtools, so these header
errors weren't picked up at commit time. Now the buildchain is restored
again these errors were detected and are fixed by this commit.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoUpdate references to use submodule version of buildtools
Wincent Colaiuta [Thu, 2 Jul 2009 17:30:43 +0000 (19:30 +0200)] 
Update references to use submodule version of buildtools

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoAdd buildtools as a submodule
Wincent Colaiuta [Thu, 2 Jul 2009 17:27:38 +0000 (19:27 +0200)] 
Add buildtools as a submodule

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoRaise if WOLoginItem initialized with a nil path
Wincent Colaiuta [Thu, 2 Jul 2009 11:38:09 +0000 (13:38 +0200)] 
Raise if WOLoginItem initialized with a nil path

Initialization is one of the "edge" boundaries of an API where we want
to be strict about what we will accept in order to detect errors sooner.

I just ran into a crash caused by a build bug (missing file) which in
turn caused a nil value to be passed into the WOLoginItem initialization
codepath; this parameter check would have helped me discover the cause
of the problem a little sooner.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoAdd WOLoginItem* classes to Xcode project file
Wincent Colaiuta [Thu, 2 Jul 2009 11:23:54 +0000 (13:23 +0200)] 
Add WOLoginItem* classes to Xcode project file

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoFix copy/paste bug in WO_STRINGIFY_CONTENTS macro
Wincent Colaiuta [Wed, 24 Jun 2009 15:36:15 +0000 (17:36 +0200)] 
Fix copy/paste bug in WO_STRINGIFY_CONTENTS macro

This macro somehow got mangled during the migration into WOPublic.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoGuard against redefinition of WO_STRINGIFY and WO_STRINGIFY_CONTENTS
Wincent Colaiuta [Wed, 24 Jun 2009 10:44:54 +0000 (12:44 +0200)] 
Guard against redefinition of WO_STRINGIFY and WO_STRINGIFY_CONTENTS

There are many products which try to define the same macros, so guard
against re-definition warnings and errors.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoUpdate names in WOLoginItem
Wincent Colaiuta [Mon, 22 Jun 2009 20:16:32 +0000 (22:16 +0200)] 
Update names in WOLoginItem

Some of the names that were previously used when this class was in
WOCommon need to be updated for WOPublic.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoImport WO_FREE macro from WOCommon
Wincent Colaiuta [Mon, 22 Jun 2009 20:16:18 +0000 (22:16 +0200)] 
Import WO_FREE macro from WOCommon

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoClean up WOLoginItem and WOLoginItem for consistency with WOPublic
Wincent Colaiuta [Mon, 22 Jun 2009 17:07:26 +0000 (19:07 +0200)] 
Clean up WOLoginItem and WOLoginItem for consistency with WOPublic

Update headers (update copyright ranges, remove unnecessary lines, add
license notice) and do some minor re-wrapping for better display on
narrow terminals.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoImport WOLoginItem and WOLoginItemList from WOCommon
Wincent Colaiuta [Mon, 22 Jun 2009 17:00:40 +0000 (19:00 +0200)] 
Import WOLoginItem and WOLoginItemList from WOCommon

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoUse emalloc in NSFileManager path utilities class
Wincent Colaiuta [Mon, 22 Jun 2009 16:57:33 +0000 (18:57 +0200)] 
Use emalloc in NSFileManager path utilities class

Update to sync with new name added in commit 32cff7d.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoRename wmalloc() to emalloc()
Wincent Colaiuta [Mon, 25 May 2009 09:51:23 +0000 (11:51 +0200)] 
Rename wmalloc() to emalloc()

Follow the same pattern as shown in the "xcalloc" function: the mnemonic
here is "Exception malloc" (cf "eXit calloc").

Signed-off-by: Wincent Colaiuta <win@wincent.com>
12 years agoAdd xcalloc() wrapper
Wincent Colaiuta [Mon, 25 May 2009 09:47:06 +0000 (11:47 +0200)] 
Add xcalloc() wrapper

This is a wrapper for the calloc() function in the standard library
which, in the event of a failure, prints an error message to the
standard error ("error: failed to calloc X bytes") and calls exit().

Mnemonic: "eXit calloc".

Signed-off-by: Wincent Colaiuta <win@wincent.com>
13 years agoAdd license header to NSArray WOConvenience category
Wincent Colaiuta [Thu, 21 May 2009 21:33:54 +0000 (23:33 +0200)] 
Add license header to NSArray WOConvenience category

Signed-off-by: Wincent Colaiuta <win@wincent.com>
13 years agoImport NSArray WOConvenience category from WOCommon
Wincent Colaiuta [Thu, 21 May 2009 21:32:37 +0000 (23:32 +0200)] 
Import NSArray WOConvenience category from WOCommon

Signed-off-by: Wincent Colaiuta <win@wincent.com>
13 years agoReformat WOLogManager Doxygen comments to fit under 80 columns
Wincent Colaiuta [Tue, 19 May 2009 18:12:09 +0000 (20:12 +0200)] 
Reformat WOLogManager Doxygen comments to fit under 80 columns

Signed-off-by: Wincent Colaiuta <win@wincent.com>
13 years agoUse custom Doxygen footer
Wincent Colaiuta [Tue, 19 May 2009 09:39:20 +0000 (11:39 +0200)] 
Use custom Doxygen footer

Rather than showing the Doxygen icon, show a discrete textual link
instead.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
13 years agoDoxygen: update DOCSET configuration
Wincent Colaiuta [Tue, 19 May 2009 09:30:35 +0000 (11:30 +0200)] 
Doxygen: update DOCSET configuration

Use project-specific settings for these new variables (added
by Doxygen 1.5.9) rather than using the defaults provided by
Doxygen.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
13 years agoUse JavaScript in Doxygen-generated documentation
Wincent Colaiuta [Tue, 19 May 2009 09:29:57 +0000 (11:29 +0200)] 
Use JavaScript in Doxygen-generated documentation

Makes the documentation a little more user-friendly.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
13 years agoInstruct Doxygen to inline sources
Wincent Colaiuta [Tue, 19 May 2009 09:29:24 +0000 (11:29 +0200)] 
Instruct Doxygen to inline sources

Doesn't seem to work, at least with Doxygen 1.5.9, but activate
it anyway.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
13 years agoAdd example to WOLog macro documentation
Wincent Colaiuta [Tue, 19 May 2009 09:29:04 +0000 (11:29 +0200)] 
Add example to WOLog macro documentation

Signed-off-by: Wincent Colaiuta <win@wincent.com>
13 years agoUse Doxygen 1.5.9 to update Doxyfile
Wincent Colaiuta [Tue, 19 May 2009 09:07:45 +0000 (11:07 +0200)] 
Use Doxygen 1.5.9 to update Doxyfile

This fixes a bunch of warnings when using the old file with a newer
version of Doxygen:

  Warning: Tag `USE_WINDOWS_ENCODING' at line 34 of file Doxyfile has become obsolete.
  To avoid this warning please update your configuration file using "doxygen -u"
  Warning: Tag `DETAILS_AT_TOP' at line 56 of file Doxyfile has become obsolete.
  To avoid this warning please update your configuration file using "doxygen -u"
  Warning: Tag `MAX_DOT_GRAPH_WIDTH' at line 244 of file Doxyfile has become obsolete.
  To avoid this warning please update your configuration file using "doxygen -u"
  Warning: Tag `MAX_DOT_GRAPH_HEIGHT' at line 245 of file Doxyfile has become obsolete.
  To avoid this warning please update your configuration file using "doxygen -u"

Signed-off-by: Wincent Colaiuta <win@wincent.com>
13 years agoDocumentation tweaks to silence Doxygen warnings and errors
Wincent Colaiuta [Tue, 19 May 2009 08:59:02 +0000 (10:59 +0200)] 
Documentation tweaks to silence Doxygen warnings and errors

Many errors went away in the move from Doxygen 1.5.7.1 to
1.5.9, but these changes were necessary to get a warning and
error-free build.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
13 years agoUpdate Doxyfile to point to new Graphviz installation
Wincent Colaiuta [Tue, 19 May 2009 08:57:51 +0000 (10:57 +0200)] 
Update Doxyfile to point to new Graphviz installation

This is the new Graphviz 2.14 installation based on the installer
package at:

  http://www.ryandesign.com/graphviz/

Signed-off-by: Wincent Colaiuta <win@wincent.com>
13 years agoAdd Documentation (Doxygen) target
Wincent Colaiuta [Tue, 19 May 2009 00:13:36 +0000 (02:13 +0200)] 
Add Documentation (Doxygen) target

Signed-off-by: Wincent Colaiuta <win@wincent.com>
13 years agoRemove unused main.c file
Wincent Colaiuta [Tue, 19 May 2009 00:00:29 +0000 (02:00 +0200)] 
Remove unused main.c file

Signed-off-by: Wincent Colaiuta <win@wincent.com>
13 years agoAdd unit test target
Wincent Colaiuta [Mon, 18 May 2009 22:15:50 +0000 (00:15 +0200)] 
Add unit test target

This target builds the bundle and executes the tests using WOTest.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
13 years agoCustomize Info.plist
Wincent Colaiuta [Mon, 18 May 2009 22:09:23 +0000 (00:09 +0200)] 
Customize Info.plist

Signed-off-by: Wincent Colaiuta <win@wincent.com>
13 years agoTrim fat from WOConvenienceMacros code documentation
Wincent Colaiuta [Mon, 18 May 2009 21:37:14 +0000 (23:37 +0200)] 
Trim fat from WOConvenienceMacros code documentation

The information about the enclosing braces is too obvious to warrant
inclusion.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
13 years agoAugment documentation for WO_DICTIONARY and WO_MUTABLE_DICTIONARY
Wincent Colaiuta [Mon, 18 May 2009 21:34:36 +0000 (23:34 +0200)] 
Augment documentation for WO_DICTIONARY and WO_MUTABLE_DICTIONARY

Note that these macros depend on code that is provided by a category
on NSDictionary.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
13 years agoMigrate WO_DICTIONARY and WO_MUTABLE_DICTIONARY macros from WOCommon
Wincent Colaiuta [Mon, 18 May 2009 21:31:39 +0000 (23:31 +0200)] 
Migrate WO_DICTIONARY and WO_MUTABLE_DICTIONARY macros from WOCommon

Signed-off-by: Wincent Colaiuta <win@wincent.com>
13 years agoWhitespace fix in NSDictionary WOCreation category
Wincent Colaiuta [Mon, 18 May 2009 21:27:46 +0000 (23:27 +0200)] 
Whitespace fix in NSDictionary WOCreation category

Remove trailing whitespace.

Signed-off-by: Wincent Colaiuta <win@wincent.com>