Commit graph

138 commits

Author SHA1 Message Date
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
Gregory John Casamento
db341559bf Corrected spelling.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@18273 72102866-910b-0410-8b05-ffd578937521
2003-12-25 14:59:54 +00:00
Richard Frith-Macdonald
1c51fc5389 Windows path handling fixups by Roland Schwingel
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17802 72102866-910b-0410-8b05-ffd578937521
2003-10-08 14:27:11 +00:00
Adam Fedor
35974a8188 loadingBundles fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17640 72102866-910b-0410-8b05-ffd578937521
2003-09-08 02:47:50 +00:00
David Ayers
ac30183cd6 Header reorganizsateion - Please refer to ChangeLog
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17407 72102866-910b-0410-8b05-ffd578937521
2003-07-31 23:49:32 +00:00
Richard Frith-Macdonald
dacf96257f Get rid of bogus warning
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17057 72102866-910b-0410-8b05-ffd578937521
2003-06-28 05:33:15 +00:00
Adam Fedor
d228cba99b Change syntax of includes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16874 72102866-910b-0410-8b05-ffd578937521
2003-06-07 01:24:41 +00:00
Richard Frith-Macdonald
ee2cd8cc4c Bundle fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16678 72102866-910b-0410-8b05-ffd578937521
2003-05-08 17:29:52 +00:00
Adam Fedor
9ca631d7e0 Filesystem change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16565 72102866-910b-0410-8b05-ffd578937521
2003-04-28 02:29:49 +00:00
Adam Fedor
c832eea8d3 * Source/NSBundle.m ([NSBundle -bundleIdentifier]): New.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16283 72102866-910b-0410-8b05-ffd578937521
2003-03-28 03:46:31 +00:00
Alexander Malmberg
c64089723a (+initialize) [PROCFS_EXE_LINK]: Make sure that the link is a path before using it.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16131 72102866-910b-0410-8b05-ffd578937521
2003-03-05 14:53:21 +00:00
Richard Frith-Macdonald
02e7c8047c Minor addition
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15876 72102866-910b-0410-8b05-ffd578937521
2003-02-04 21:49:35 +00:00
Richard Frith-Macdonald
9e7fe6bf12 Tidied for gcc-3.4
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15476 72102866-910b-0410-8b05-ffd578937521
2003-01-03 20:14:47 +00:00
Mirko Viviani
9acedeaf63 * Source/NSBundle.m ([NSBundle +initialize]): check for linked
framework in two passes, first collect all the framework classes, then
add it. The previous routine failed to add all the frameworks.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15236 72102866-910b-0410-8b05-ffd578937521
2002-12-03 20:30:08 +00:00
Adam Fedor
8fb4fc795d Check for array with no objects
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15032 72102866-910b-0410-8b05-ffd578937521
2002-11-20 15:14:07 +00:00
Adam Fedor
2e72156fb0 NSBundle.m: New headers and docs
cifframe: Fix for structure returns.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15022 72102866-910b-0410-8b05-ffd578937521
2002-11-19 20:38:51 +00:00
Nicola Pero
e66cb4ed1b Updated comment, tidied indentation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14881 72102866-910b-0410-8b05-ffd578937521
2002-10-30 23:47:39 +00:00
Nicola Pero
b2b6c3d947 Implemented locating frameworks which are linked into the application (or
into a bundle, or another framework, which is loaded dynamically) by using
objc_get_symbol_path() if available.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14880 72102866-910b-0410-8b05-ffd578937521
2002-10-30 23:04:06 +00:00
Mirko Viviani
7dbab5bdc9 2002-10-25 Mirko Viviani <mirko.viviani@rccr.cremona.it>
* Source/NSBundle.m ([NSBundle -load]): set _codeLoaded before loading
	the bundle.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14839 72102866-910b-0410-8b05-ffd578937521
2002-10-25 15:12:35 +00:00
Mirko Viviani
6b214cdf3c * Source/NSBundle.m ([NSBundle +_addFrameworkFromClass:]): remove
the classes in the _loadingBundle that does not belong to it but with
frameworks linked with it.
([NSBundle +bundleForClass:]): construct a list of NSFramework_*
classes loaded with the bundle.
([NSBundle -load]): call _addFrameworkFromClass: for all linked
frameworks with the bundle.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14761 72102866-910b-0410-8b05-ffd578937521
2002-10-13 10:29:54 +00:00
Richard Frith-Macdonald
5dae3b400b Tidied and improved logging for read from and write to file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14638 72102866-910b-0410-8b05-ffd578937521
2002-10-04 09:08:09 +00:00
Richard Frith-Macdonald
ecbcc202a1 iPerformance and GC improvements
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13726 72102866-910b-0410-8b05-ffd578937521
2002-05-28 05:23:36 +00:00
Richard Frith-Macdonald
b6987f112f Fix warning when enumerating empty map table
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13719 72102866-910b-0410-8b05-ffd578937521
2002-05-27 10:00:05 +00:00
Dave Wetzel
e6b0fe0602 mainBundle works now with GSWeb (.gswa and .woa wrapper names)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13669 72102866-910b-0410-8b05-ffd578937521
2002-05-21 12:53:46 +00:00
Fred Kiefer
0dbc651a6e Use fileSystemRepresentation instead of cString
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13612 72102866-910b-0410-8b05-ffd578937521
2002-05-08 23:19:22 +00:00
Richard Frith-Macdonald
19cf3829e4 Fixes to get stuff to work after autoconf changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13578 72102866-910b-0410-8b05-ffd578937521
2002-05-02 21:22:06 +00:00
Nicola Pero
c66d2c6427 Indented line
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@13360 72102866-910b-0410-8b05-ffd578937521
2002-04-05 01:09:41 +00:00
Nicola Pero
3b76d5b727 Removed custom retain counting; retain all loaded bundles so that
bundleForClass: works; replace for efficiency [NSBundle method] with
[self method] when possible


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12796 72102866-910b-0410-8b05-ffd578937521
2002-02-26 18:06:51 +00:00
Nicola Pero
1813380d88 Completely ignore categories in the load bundle callback
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12793 72102866-910b-0410-8b05-ffd578937521
2002-02-26 17:36:13 +00:00
Nicola Pero
092e1d508e Return nil when initializing a bundle with a non-existing or non-readable
path; fixed memory leak for nil path during init


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12759 72102866-910b-0410-8b05-ffd578937521
2002-02-25 15:28:06 +00:00
Richard Frith-Macdonald
0fd81a9591 Fix blocking in run loop.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12567 72102866-910b-0410-8b05-ffd578937521
2002-02-20 06:42:05 +00:00
Nicola Pero
a9fef76e1c Remove experimental +bundleForTool:, and modified +mainBundle to work
for tools as well instaed


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12459 72102866-910b-0410-8b05-ffd578937521
2002-02-09 01:06:05 +00:00
Richard Frith-Macdonald
4ab22ac244 Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12442 72102866-910b-0410-8b05-ffd578937521
2002-02-08 13:39:51 +00:00
Richard Frith-Macdonald
4c94e46acc New method to get executable paths.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12441 72102866-910b-0410-8b05-ffd578937521
2002-02-08 13:13:46 +00:00
Nicola Pero
0e2bd154dc Removed some debugging fprintfs which I had left over
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12122 72102866-910b-0410-8b05-ffd578937521
2002-01-16 13:54:11 +00:00
Nicola Pero
40d01b2df9 Fixed dynamical loading of frameworks ... incidentally producing a major
simplification of code (might load bundle faster too)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12120 72102866-910b-0410-8b05-ffd578937521
2002-01-16 13:52:39 +00:00
Nicola Pero
8e3628c668 Indentation changes - only code change is that the third argument of strncmp
should be 12 not 12*sizeof(char)


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12118 72102866-910b-0410-8b05-ffd578937521
2002-01-16 13:03:45 +00:00
Nicola Pero
c23685096b Added +bundleForLibrary: and +bundleForTool:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@11874 72102866-910b-0410-8b05-ffd578937521
2001-12-21 18:31:06 +00:00
Richard Frith-Macdonald
a0a6f5f346 Added date version and title
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@11814 72102866-910b-0410-8b05-ffd578937521
2001-12-18 16:54:15 +00:00
Richard Frith-Macdonald
5be36e089c Many minor fixes for autogsdoc.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@11787 72102866-910b-0410-8b05-ffd578937521
2001-12-17 14:31:42 +00:00