Commit graph

277 commits

Author SHA1 Message Date
David Chisnall
7764740bdc Make -drain and -release in NSAutoreleasePool do the same thing (rather than one calling the other) in non-GC mode.
Replace all -release messages sent to autorelease pools with -drain.  In non-GC mode, these are equivalent.  In GC mode, these trigger a collection.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33143 72102866-910b-0410-8b05-ffd578937521
2011-05-27 11:48:44 +00:00
David Chisnall
6068e9484c Initial pass at implementing fully Apple-compatible GC. This requires the code to be built with -fobjc-gc or -fobjc-gc-only, and requires a runtime that implements all of the support functions (GNUstep runtime trunk or 1.5 when it's release).
Currently, there are a few places where we should be calling NSAllocateCollectable() without NSScannedOption, but are actually calling NSZoneMalloc() unless we're in GC mode.  We should not need separate code paths for this anywhere outside NSZone, since NSAllocateCollectable() will work in non-GC mode as well.

A few of the changes should be tweaked slightly so that they do run-time tests.  For example, when compiling with -fobjc-gc, we may be linked against non-GC code, which will use -retain and -release but won't use the memory barriers.  Supporting this nicely is a lot of effort, and I'm not fully convinced it's a good idea.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33104 72102866-910b-0410-8b05-ffd578937521
2011-05-24 14:43:27 +00:00
Richard Frith-MacDonald
afc2ef7de8 fix main bundle path
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33088 72102866-910b-0410-8b05-ffd578937521
2011-05-23 10:51:58 +00:00
Richard Frith-MacDonald
d9d0d1b6fd portability bugfixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32769 72102866-910b-0410-8b05-ffd578937521
2011-04-04 10:57:49 +00:00
Richard Frith-MacDonald
74eac99280 add last night's changes based on static analyser results.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32507 72102866-910b-0410-8b05-ffd578937521
2011-03-09 10:24:18 +00:00
Richard Frith-MacDonald
62a00dd0a8 fix for bug #32564 ?
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32462 72102866-910b-0410-8b05-ffd578937521
2011-03-05 16:33:24 +00:00
Richard Frith-MacDonald
360e28f269 User defaults language/setup restructuring
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32454 72102866-910b-0410-8b05-ffd578937521
2011-03-05 07:54:05 +00:00
Richard Frith-MacDonald
d18e29dde8 avoid compiler warnings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32417 72102866-910b-0410-8b05-ffd578937521
2011-02-28 19:49:57 +00:00
Richard Frith-MacDonald
c7c3b61563 Try to make sure we have an absolute path for executables
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32291 72102866-910b-0410-8b05-ffd578937521
2011-02-22 12:22:49 +00:00
Richard Frith-MacDonald
474a12b708 minor cleanups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32234 72102866-910b-0410-8b05-ffd578937521
2011-02-19 19:42:42 +00:00
Richard Frith-MacDonald
27550994ee use the _() macro for localisation within base
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32173 72102866-910b-0410-8b05-ffd578937521
2011-02-15 06:25:54 +00:00
Nicola Pero
30f098f9f8 Updated code to compile with GCC 4.6 and the new GNU Objective-C runtime
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31765 72102866-910b-0410-8b05-ffd578937521
2010-12-23 02:23:05 +00:00
Wolfgang Lux
4fad29abb5 Tweaks for running on Darwin aka OS X.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31366 72102866-910b-0410-8b05-ffd578937521
2010-09-17 20:23:48 +00:00
David Chisnall
4488708e84 Fix a load of warnings from implicit function declarations. A lot were caused by ctype.h and string.h stuff being used everywhere in GNUstep but not included anywhere - they're now included in common.h (at least string.h should also be in Foundation.h - on OS X it is implicitly included via some chain of things from Foundation.h).
All of the sel_* stuff is now replaced with the newer APIs.  As a side-effect, a blob of code that was copied-and-pasted all over GNUstep has now been moved into ObjectiveC2 and just called.

Class posing with libobjc2 will now throw an exception, rather than just aborting.  



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31268 72102866-910b-0410-8b05-ffd578937521
2010-09-09 16:30:10 +00:00
David Chisnall
7a80adeb9b A huge blob of changes to make -base build with libobjc2, without using the old libobjc2 headers.
Most of these changes involve simply removing direct manipulation of any runtime structures and replacing them with runtime function calls.  For example class->name becomes class_getName(class) and so on.

libobjc2, like the Apple runtime, the NeXT runtime, and every version of the Objective-C spec, calls the class pointer in id isa.  A few files now have #define class_pointer isa at the top.  This line replaces class_pointer in the old GNU libobjc headers with isa so either class_pointer or isa can be used for accessing the class of an object.  Note: object_getClass() should be used in most cases because, in some future version of the runtime, this will skip things like lock classes and other hidden classes (e.g. KVO classes).

All of the old forwarding stuff has been removed.  Most of this stuff followed convoluted code paths that ended with an exception.  A few simply broke in exciting ways.  Hopefully no one has used them for the last ten years or so, but we can bring them back with some #ifndef stuff if they're really needed by anyone.

There is currently a bug in configure, which prevents dladdr() from being detected, so you need to manually tweak config.h to build - I have not fixed the fall-back code in objc-load.m to work with libobjc2, I just added a new version that uses the loader's functionality directly.  

Although -base now builds, it builds with a lot of warnings.  <string.h> is missing from a lot of files, so memcpy() and strlen() generate implicit function declaration warnings.  

Additionally, libobjc2 does still provide the sel_{get,register}_*() functions, but they're wrappers around the newer API ones.  These are deprecated and are not exposed in the headers.  Although they work, we should be replacing them with the libobjc2 versions as soon as possible.

This incorporates a patch by Eric.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31265 72102866-910b-0410-8b05-ffd578937521
2010-09-09 15:06:09 +00:00
Nicola Pero
ca9c384b3d Added hack that should allow to load class lists of frameworks with a relative path (eg, if you have ../../MyFrameworks/ in your LD_LIBRARY_PATH you may be to load a framework with a relative path)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31037 72102866-910b-0410-8b05-ffd578937521
2010-07-26 14:08:22 +00:00
Richard Frith-MacDonald
48a9a7cfab Implement keyed coding for NSURL.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30853 72102866-910b-0410-8b05-ffd578937521
2010-06-25 13:38:06 +00:00
Richard Frith-MacDonald
4b6a428200 Fix error in last change (remove unnecessary check).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30834 72102866-910b-0410-8b05-ffd578937521
2010-06-23 09:00:19 +00:00
Richard Frith-MacDonald
58cf61920a Tweak path extension handling
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30833 72102866-910b-0410-8b05-ffd578937521
2010-06-23 07:21:01 +00:00
Richard Frith-MacDonald
4707e0b7e4 fix broken tool resource lookup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30212 72102866-910b-0410-8b05-ffd578937521
2010-04-21 21:49:12 +00:00
Richard Frith-MacDonald
f784646663 generalize define from __MINGW32__ to __MINGW__
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30001 72102866-910b-0410-8b05-ffd578937521
2010-03-19 12:10:11 +00:00
Richard Frith-MacDonald
b730fa45c0 zero self after dealloc if we are going to call another method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29837 72102866-910b-0410-8b05-ffd578937521
2010-03-04 12:24:43 +00:00
Richard Frith-MacDonald
fab825f3bb pply bugfix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29782 72102866-910b-0410-8b05-ffd578937521
2010-02-26 15:07:16 +00:00
Richard Frith-MacDonald
c07dc48eb3 more header reorganisation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29731 72102866-910b-0410-8b05-ffd578937521
2010-02-25 08:36:34 +00:00
Richard Frith-MacDonald
7cc69dfaae Simplify header inclusion
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29669 72102866-910b-0410-8b05-ffd578937521
2010-02-19 08:12:46 +00:00
Richard Frith-MacDonald
c8a6832349 cosmetic tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29657 72102866-910b-0410-8b05-ffd578937521
2010-02-17 11:47:06 +00:00
Richard Frith-MacDonald
21d597e740 merge back reorganisation branch
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29615 72102866-910b-0410-8b05-ffd578937521
2010-02-14 10:48:10 +00:00
Richard Frith-MacDonald
a2348e55ae fix for bundle loading on wndows when we don't have the dll path extension
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28292 72102866-910b-0410-8b05-ffd578937521
2009-05-22 17:16:24 +00:00
Fred Kiefer
b85f364024 * Source/NSBundle.m (-localizedStringForKey:value:table): Correct
output when NSShowNonLocalizedStrings is YES.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28013 72102866-910b-0410-8b05-ffd578937521
2009-03-01 17:39:09 +00:00
Richard Frith-MacDonald
eabab217de bugfix for garbage collecting
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27787 72102866-910b-0410-8b05-ffd578937521
2009-02-04 20:47:09 +00:00
Richard Frith-MacDonald
952af9c197 garbage collection fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27578 72102866-910b-0410-8b05-ffd578937521
2009-01-12 12:48:46 +00:00
Richard Frith-MacDonald
988f583f7d Fixes for pathForResource... methods to match MacOS-X and be more efficient.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27558 72102866-910b-0410-8b05-ffd578937521
2009-01-08 10:40:13 +00:00
Gregory John Casamento
e7454ec280 * Source/NSBundle.m: Correct issue where *-gnustep.* is not
searched for when explicitly calling pathForResource:...


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27557 72102866-910b-0410-8b05-ffd578937521
2009-01-07 21:38:27 +00:00
Gregory John Casamento
130e8f5592 * Source/NSBundle.m: Use CFBundleExecutable if NSExecutable isn't
present when loading the bundle object code.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27526 72102866-910b-0410-8b05-ffd578937521
2009-01-05 22:51:48 +00:00
Richard Frith-MacDonald
b87b7a7b33 Handle nil library name
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27494 72102866-910b-0410-8b05-ffd578937521
2009-01-02 05:08:43 +00:00
Wolfgang Lux
806114d969 Fix infinite loop introduced in r27212.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27233 72102866-910b-0410-8b05-ffd578937521
2008-12-06 21:48:37 +00:00
Richard Frith-MacDonald
8d9e1d356d fix incorrect assignment
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27217 72102866-910b-0410-8b05-ffd578937521
2008-12-06 09:09:24 +00:00
Richard Frith-MacDonald
f794a4cb3c improve locating of framework directories on windows
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27214 72102866-910b-0410-8b05-ffd578937521
2008-12-05 17:45:02 +00:00
Richard Frith-MacDonald
dfa7db4455 improve locating library bundles
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27212 72102866-910b-0410-8b05-ffd578937521
2008-12-05 15:50:51 +00:00
Richard Frith-MacDonald
33a4784b8e Fix bug 24320
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26907 72102866-910b-0410-8b05-ffd578937521
2008-10-11 06:30:03 +00:00
Richard Frith-MacDonald
b2b14398d2 allow developers more time to adapt to LGPLv3
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26606 72102866-910b-0410-8b05-ffd578937521
2008-06-08 10:38:33 +00:00
Richard Frith-MacDonald
ec0b3ab41a MacOS-X compatibility updates.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26598 72102866-910b-0410-8b05-ffd578937521
2008-06-06 13:57:06 +00:00
Richard Frith-MacDonald
4b6bd491a1 guess what caller meant when they give us bad path name
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26197 72102866-910b-0410-8b05-ffd578937521
2008-03-05 09:32:49 +00:00
Richard Frith-MacDonald
d6cfc0e91c Improve MacOS-X compatibility of headers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25638 72102866-910b-0410-8b05-ffd578937521
2007-11-29 20:53:26 +00:00
Richard Frith-MacDonald
62559023b9 Update to GPL3 and LGPL3
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25482 72102866-910b-0410-8b05-ffd578937521
2007-09-14 11:36:11 +00:00
Richard Frith-MacDonald
383cb43c5a Fixup for problem getting base library resources where multiple versions are installed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25085 72102866-910b-0410-8b05-ffd578937521
2007-04-27 11:39:50 +00:00
Richard Frith-MacDonald
3117236cd7 Bugfix for #19588
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25052 72102866-910b-0410-8b05-ffd578937521
2007-04-15 09:15:56 +00:00
Nicola Pero
5baa6a67c5 Small tidyup in NSBundle +initialize
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24913 72102866-910b-0410-8b05-ffd578937521
2007-03-21 13:11:45 +00:00
Nicola Pero
a789e3ec4b Fixed [NSBundle bundleForLibrary: @"gnustep-base"];
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24883 72102866-910b-0410-8b05-ffd578937521
2007-03-17 00:27:42 +00:00
Nicola Pero
5fa74f7f71 Fixed bootstrap problem where NSBundle +initialize would use NSUserDefaults +standardDefaults to create the _gnustep_bundle, and NSUserDefaults +standardDefaults would use NSBundle's _gnustep_bundle to lookup resources
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24869 72102866-910b-0410-8b05-ffd578937521
2007-03-14 13:01:16 +00:00
Nicola Pero
c641207ab8 Implemented experimental library resource bundle versioning
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24841 72102866-910b-0410-8b05-ffd578937521
2007-03-09 19:09:08 +00:00
Nicola Pero
8b7a80b537 Fixed looking up gnustep-base resources with custom layout; try to catch serious filesystem config errors early on in configure
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24747 72102866-910b-0410-8b05-ffd578937521
2007-03-02 03:30:22 +00:00
Richard Frith-MacDonald
5093781315 Some cleanup for make-2.0 changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24735 72102866-910b-0410-8b05-ffd578937521
2007-03-01 13:43:23 +00:00
Nicola Pero
3d45c3f37f Rewritten tool resource lookup to work with gnustep-make v2 as well as gnustep-make v1
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24620 72102866-910b-0410-8b05-ffd578937521
2007-02-17 17:37:23 +00:00
Richard Frith-MacDonald
8abd7f5743 Minor cleanup to avoid compiler warnings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24311 72102866-910b-0410-8b05-ffd578937521
2007-01-04 08:36:08 +00:00
Matt Rice
d8ae1e0e35 * Source/NSBundle.m (+initialize): Remove usage of classes local array.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@24188 72102866-910b-0410-8b05-ffd578937521
2006-12-05 15:02:26 +00:00
Richard Frith-MacDonald
981bd40faf Minor symbol visibility cleanups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23952 72102866-910b-0410-8b05-ffd578937521
2006-10-23 14:47:37 +00:00
Richard Frith-MacDonald
0ebe68ae48 More code tidyups and NSError updates.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23921 72102866-910b-0410-8b05-ffd578937521
2006-10-20 10:56:27 +00:00
Matt Rice
95713e81e4 * Source/NSBundle.m (_find_framework): initialize file_name variable.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23912 72102866-910b-0410-8b05-ffd578937521
2006-10-19 07:16:56 +00:00
Richard Frith-MacDonald
90593a0dd2 minor windows(cygwin) fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23906 72102866-910b-0410-8b05-ffd578937521
2006-10-19 04:12:58 +00:00
Richard Frith-MacDonald
eae859d1c7 Updates to reduce global namespace pollution. Plenty more remaining.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23795 72102866-910b-0410-8b05-ffd578937521
2006-10-09 14:00:01 +00:00
Richard Frith-MacDonald
183a5c2c87 Cleanup to get rid of a few global variables
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23768 72102866-910b-0410-8b05-ffd578937521
2006-10-05 19:27:15 +00:00
Richard Frith-MacDonald
cfaf083d90 framework loading fix added.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23658 72102866-910b-0410-8b05-ffd578937521
2006-09-28 18:55:03 +00:00
Richard Frith-MacDonald
79c2ae503c Implement missing method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23487 72102866-910b-0410-8b05-ffd578937521
2006-09-13 07:31:38 +00:00
Richard Frith-MacDonald
f03b968a46 more threading fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23448 72102866-910b-0410-8b05-ffd578937521
2006-09-10 13:30:05 +00:00
Richard Frith-MacDonald
caa74e2108 minor bugfix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@23327 72102866-910b-0410-8b05-ffd578937521
2006-08-25 14:15:45 +00:00
Richard Frith-MacDonald
e40074f3db Tidied up
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22977 72102866-910b-0410-8b05-ffd578937521
2006-05-24 08:27:39 +00:00
Richard Frith-MacDonald
60878d7d2c NSString restructuring and bugfixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22924 72102866-910b-0410-8b05-ffd578937521
2006-05-14 18:01:13 +00:00
Richard Frith-MacDonald
ff7e63c376 Add bundleWithIdentifier:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22897 72102866-910b-0410-8b05-ffd578937521
2006-05-11 10:16:55 +00:00
Richard Frith-MacDonald
5dac5f97a9 Added experimental stacktrace printing support.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22878 72102866-910b-0410-8b05-ffd578937521
2006-05-08 15:30:52 +00:00
Richard Frith-MacDonald
db4d168095 Find library bundles for debug/profile library
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22867 72102866-910b-0410-8b05-ffd578937521
2006-05-07 07:49:45 +00:00
Richard Frith-MacDonald
f7d0a2e48b NSBundle improvements for bundles created using bundleForLibrary:
or bundleForClass:


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22859 72102866-910b-0410-8b05-ffd578937521
2006-05-05 11:06:57 +00:00
Jeremy Bettis
7d20644264 NSBundle.m: objc_executable_location(): A cast was obsuring a misuse of fileSystemRepresentation
NSFileManager.m: isExecutableFileAtPath: Added a comment
NSPropertyList.m: propertyListFromData:mutabilityOption:format:errorDescription: Don't call memcmp if the data is smaller than 8 bytes.
objc-load.m: mingw unicode
win32-load.h: mingw unicode
NSUserDefaultsWin32.m: Write defaults to registry as unicode strings, read in either unicode(REG_SZ) or ascii(REG_BINARY).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22782 72102866-910b-0410-8b05-ffd578937521
2006-04-12 19:52:10 +00:00
Richard Frith-MacDonald
9526fb065f Attempt to warn about non-portable character encodings.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22739 72102866-910b-0410-8b05-ffd578937521
2006-04-02 18:07:21 +00:00
Richard Frith-MacDonald
48d81791bc Fix error copying directories.
Fix bundle for base library.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22621 72102866-910b-0410-8b05-ffd578937521
2006-03-08 14:25:55 +00:00
Richard Frith-MacDonald
c2e8c881e7 Some cleanup in preparation for next release.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22618 72102866-910b-0410-8b05-ffd578937521
2006-03-08 11:28:59 +00:00
Richard Frith-MacDonald
1c89b5daed Implement lazy evaluation of path to executable.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22523 72102866-910b-0410-8b05-ffd578937521
2006-02-21 09:19:59 +00:00
Richard Frith-MacDonald
87e0726363 ignore framework version on windows ... not supported
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22448 72102866-910b-0410-8b05-ffd578937521
2006-02-08 07:57:07 +00:00
Richard Frith-Macdonald
40bdc89439 Trivial debug log improvement
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@22050 72102866-910b-0410-8b05-ffd578937521
2005-11-20 20:26:32 +00:00
Richard Frith-Macdonald
8333380ff0 mingw32 unicode fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21955 72102866-910b-0410-8b05-ffd578937521
2005-11-05 16:20:19 +00:00
Adam Fedor
7a2eeb1de4 * Source/NSBundle.m (+pathsForResourcesOfType:inDirectory:,
-pathsForResourcesOfType:inDirectory:forLocalization:):
Implement.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21850 72102866-910b-0410-8b05-ffd578937521
2005-10-21 02:20:41 +00:00
Richard Frith-Macdonald
bfb6ebd9bc Use __MINGW32__ rather than __MINGW__ because gcc does that too.
NB. It seems some recent patches put ___MINGW32__ in the public headers ...
that needs to be fixed as the headers should be system independent!


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21795 72102866-910b-0410-8b05-ffd578937521
2005-10-11 19:09:26 +00:00
Richard Frith-Macdonald
151f6ba9b9 Handle empty path nicely and be more tolerant of lack of resources.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21536 72102866-910b-0410-8b05-ffd578937521
2005-07-25 16:11:44 +00:00
Nicola Pero
ce3770a02c Disabled versioning support for framework on Mingw (win32)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21465 72102866-910b-0410-8b05-ffd578937521
2005-07-13 14:51:57 +00:00
Nicola Pero
2d2a635967 Mangle/demangle framework names in NSFramework_xxx class names to support
'-' and '+' in framework names


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21455 72102866-910b-0410-8b05-ffd578937521
2005-07-12 14:11:03 +00:00
Richard Frith-Macdonald
4aab090090 Add a comment explaining last change.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21337 72102866-910b-0410-8b05-ffd578937521
2005-06-21 12:57:20 +00:00
Richard Frith-Macdonald
0782d3a2ab Expand tilde in bundle path.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21336 72102866-910b-0410-8b05-ffd578937521
2005-06-21 12:55:30 +00:00
Richard Frith-Macdonald
d1d17bc387 win32 path handling simplifications (and some bug fixes).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21276 72102866-910b-0410-8b05-ffd578937521
2005-06-04 07:22:51 +00:00
Adam Fedor
fcc13ccd0f * Update FSF Address.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21245 72102866-910b-0410-8b05-ffd578937521
2005-05-22 03:32:16 +00:00
Richard Frith-Macdonald
71ce433dad Documentation tweaks.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21027 72102866-910b-0410-8b05-ffd578937521
2005-04-01 10:57:35 +00:00
Adam Fedor
85adc3f11c * Source/NSBundle.m (_find_framework): New function.
[NSBundle +_addFrameworkFromClass:]): Use it. Based on patch
from Sheldon Gill.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21024 72102866-910b-0410-8b05-ffd578937521
2005-03-31 23:22:44 +00:00
Adam Fedor
6292a363bc * Continuation of NSPathUtilities patches
* configure.ac: Add config-file option
* Headers/Foundation/NSPathUtilities.h: Add GSFindNamedFile, more
NSSearchPathDirectory enums.
* Source/GNUmakefile: Don't install Win32 headers.
* Source/NSPathUtilities.m (InitializePathUtilities, ...): Add
support for reading standard path locations from a configuration
file. Various support functions added/removed to fit.
(GSFindNamedFile): New function.
(GSSetUserName): Do nothing if the user is the same.
(NSHomeDirectoryForUser): Use Windows utilities to get user name
(on Windows, of course).
(NSFullUserName): Default to NSUserName on Windows.
(GSSystemRootDirectory): Mark as deprecated.
(GSDefaultsRootForUser): Correctly return the actual defaults
directory, not the user directory.
(GSStandardPathPrefixes): Mark as deprecated.
(NSSearchPathForDirectoriesInDomains): Add platform paths and
additional search directories.
* Source/NSUserDefaults (pathForUser): Correct use of
GSDefaultsRootForUser. Remove obsolete path checking and
defaults location checking. (Patches from Sheldon Gill
with some modifications).

* Documentation/Base.gsdoc: Update documentation.
* Headers/Additions/GNUstepBase/Win32_Utilities.h,
Source/win32/Win32_Utilities.m: Fix function arguments.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20908 72102866-910b-0410-8b05-ffd578937521
2005-03-15 04:24:26 +00:00
Richard Frith-Macdonald
826de16ee7 KVC updates
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20828 72102866-910b-0410-8b05-ffd578937521
2005-03-02 11:46:21 +00:00
Adam Fedor
c5b59c788c * Source/NSBundle.m (+gnustepBundle,
+pathForGNUstepResource:ofType:inDirectory:]): Add depreciated
log message.
* Source/NSNotificationQueue.m, Source/null-load.h:
Fix copyright message.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20823 72102866-910b-0410-8b05-ffd578937521
2005-03-01 15:50:26 +00:00
Richard Frith-Macdonald
db7b22a4fb Tidy up use of white space so we have it after if/for/while and not after (
or before ) or padding at end of line.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20773 72102866-910b-0410-8b05-ffd578937521
2005-02-22 11:22:44 +00:00
Matt Rice
e91474be65 2004-11-30 Matt Rice <ratmice@yahoo.com>
* Source/NSBundle.m (-principalClass): If the class specified in
        NSPrincipalClass key is not found return the first class found.
        * Headers/Foundation/NSBundle.h (-principalClass): Document the above.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20401 72102866-910b-0410-8b05-ffd578937521
2004-11-30 22:16:32 +00:00
Richard Frith-Macdonald
02f54e6dd7 A few NSBundle bugfixes and workaround for problem with using the pth
library in gdnc.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20367 72102866-910b-0410-8b05-ffd578937521
2004-11-20 20:14:24 +00:00
Adam Fedor
1e96b65ae7 * Headers/Foundation/NSBundle.h (builtInPlugInsPath): New method.
* Source/NSBundle (builtInPlugInsPath): Imeplement (based on patch
#3483).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20341 72102866-910b-0410-8b05-ffd578937521
2004-11-11 18:51:37 +00:00
Adam Fedor
c2ed783573 * Source/NSBundle.m (_bundle_name_first_match): Remove path
extension when comparing name (fixes #10611)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20222 72102866-910b-0410-8b05-ffd578937521
2004-10-14 04:08:24 +00:00
Wim (Willem Rein) Oudshoorn
49957806ae ([NSBundle +mainBundle]): on WIN32 strip .exe
extension from executable name when constructing mainBundle path.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18689 72102866-910b-0410-8b05-ffd578937521
2004-02-27 14:08:00 +00:00