Commit graph

2234 commits

Author SHA1 Message Date
David Chisnall
56a002dae7 Rewrote NSProxy's -retain / -release to be the same as NSObject, not its own ad-hoc thing.
Added declaration of __bridge for use in non-ARC mode.

Tweaked arrayWithObjects:count: to take a const id* parameter, to avoid ARC
treating it as a write-back parameter.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33425 72102866-910b-0410-8b05-ffd578937521
2011-06-30 14:44:58 +00:00
David Chisnall
9d06beffdd ASSIGN() / RETAIN() and so on macros break the ARC migration tool (it won't rewrite expressions in macros from external headers), so just make them expand to the same thing in ARC mode as in GC mode.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33413 72102866-910b-0410-8b05-ffd578937521
2011-06-29 15:29:40 +00:00
David Chisnall
276046a76c More ARC fixes. We don't want to be using __strong void* in ARC mode (it only makes sense in GC mode and is invalid in ARC mode).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33411 72102866-910b-0410-8b05-ffd578937521
2011-06-29 15:21:02 +00:00
David Chisnall
3f4dc9a72b ARC-compatibility tweaks in the headers. ARC will not track objects inside structures and rejects code that uses object types that are not __unsafe_unretained qualified inside structures.
This quick fix just added this type qualifier on all such structures.  Several of these should probably not be in headers at all.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33403 72102866-910b-0410-8b05-ffd578937521
2011-06-29 11:50:26 +00:00
Richard Frith-MacDonald
861d46e8db remove non-portable includes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33391 72102866-910b-0410-8b05-ffd578937521
2011-06-27 06:04:47 +00:00
Fred Kiefer
dbd9d19e8f Add a few 10.6 NSURL methods to NSBundle.
Based on patch by julian.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33367 72102866-910b-0410-8b05-ffd578937521
2011-06-22 23:01:01 +00:00
Richard Frith-MacDonald
bbc480f958 patch by Sebastian
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33359 72102866-910b-0410-8b05-ffd578937521
2011-06-20 12:46:42 +00:00
Richard Frith-MacDonald
e84d049078 Add some flexibility
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33355 72102866-910b-0410-8b05-ffd578937521
2011-06-20 07:33:27 +00:00
Richard Frith-MacDonald
523366101e more leak cleanup stuff
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33349 72102866-910b-0410-8b05-ffd578937521
2011-06-19 13:34:17 +00:00
Richard Frith-MacDonald
9831216043 Start stuff for handling cleanup on process exit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33344 72102866-910b-0410-8b05-ffd578937521
2011-06-19 09:26:03 +00:00
Richard Frith-MacDonald
c1d5647bb6 10.6 sompatibility (some)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33337 72102866-910b-0410-8b05-ffd578937521
2011-06-18 07:09:28 +00:00
Richard Frith-MacDonald
9212d01480 Fix xml parse error
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33327 72102866-910b-0410-8b05-ffd578937521
2011-06-17 13:47:24 +00:00
Richard Frith-MacDonald
3ea06f1379 Add some requests 10.6 methods ... untested.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33326 72102866-910b-0410-8b05-ffd578937521
2011-06-17 11:45:28 +00:00
Fred Kiefer
586d1786f9 Add [NSURL -checkResourceIsReachableAndReturnError:].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33245 72102866-910b-0410-8b05-ffd578937521
2011-06-04 15:08:37 +00:00
Richard Frith-MacDonald
8ccabb5ee6 apply Wolfgangs fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33238 72102866-910b-0410-8b05-ffd578937521
2011-06-03 06:02:18 +00:00
Richard Frith-MacDonald
20cde83f84 improve documentation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33221 72102866-910b-0410-8b05-ffd578937521
2011-06-01 14:45:52 +00:00
Richard Frith-MacDonald
a69b7c2466 always create autorelease pools for mixed GC mode support
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33212 72102866-910b-0410-8b05-ffd578937521
2011-05-31 07:55:06 +00:00
Richard Frith-MacDonald
ba24ce0841 minor map/hash table compatibility tweaks and simplify notification center
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33210 72102866-910b-0410-8b05-ffd578937521
2011-05-31 06:46:17 +00:00
David Chisnall
668081efb2 Use correct test macro for __weak.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33162 72102866-910b-0410-8b05-ffd578937521
2011-05-27 23:36:28 +00:00
Niels Grewe
410ab087fa Attempt to detect the flags needed to enable compiler intrinsics for atomic
operations.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33134 72102866-910b-0410-8b05-ffd578937521
2011-05-26 18:37:58 +00:00
David Chisnall
de2fd8df6e More GC fixes. Most notably, mark the thread object as not collectable, since it's hidden away in TLS where the GC can't find it.
GC now works well enough for LanguageKit to run.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33123 72102866-910b-0410-8b05-ffd578937521
2011-05-26 13:24:13 +00:00
David Chisnall
b08b2d0f34 More tweaks for garbage collection mode, including making NSNotificationCenter use weak pointers (things are never removed if it uses strong pointers because they remove themselves in the -dealloc method, which is never called, and can't remove themselves in the -finalize method because the -finalize method would not be called until after they have been removed - this is consistent with Apple behaviour).
Gorm now works correctly when built with GC enabled.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33109 72102866-910b-0410-8b05-ffd578937521
2011-05-25 11:15:08 +00:00
Eric Wasylishen
8a890d9926 * Headers/Foundation/NSObjCRuntime.h: Add CGFLOAT_MIN and CGFLOAT_MAX
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32929 72102866-910b-0410-8b05-ffd578937521
2011-04-26 23:43:05 +00:00
David Chisnall
5d5b46a135 Added NSInteger range constants (OS X compat).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32918 72102866-910b-0410-8b05-ffd578937521
2011-04-21 11:06:18 +00:00
Richard Frith-MacDonald
9f32aeb525 remove unused directory and obsolete comments
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32795 72102866-910b-0410-8b05-ffd578937521
2011-04-07 07:32:00 +00:00
Richard Frith-MacDonald
7aee0158bc Cleanup and fix to build additipns library on apple systems.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32737 72102866-910b-0410-8b05-ffd578937521
2011-03-29 11:18:10 +00:00
Richard Frith-MacDonald
c0979f8d17 64bit safety fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32731 72102866-910b-0410-8b05-ffd578937521
2011-03-29 08:16:02 +00:00
Riccardo Mottola
6b6b3d8e56 Remove forward protocol declarations as they break gcc 2.95.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32718 72102866-910b-0410-8b05-ffd578937521
2011-03-28 10:56:02 +00:00
Stefan Bidigaray
c84d67c662 Added untest implementation of -getObjectValue:forString:range:error:. This method should will be used to implement -getObjectValue:forString:errorDescription:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32586 72102866-910b-0410-8b05-ffd578937521
2011-03-14 22:41:53 +00:00
Richard Frith-MacDonald
09bd40334c simplify header layout
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32545 72102866-910b-0410-8b05-ffd578937521
2011-03-13 12:52:37 +00:00
Richard Frith-MacDonald
46cf25ebed add config check for blocks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32539 72102866-910b-0410-8b05-ffd578937521
2011-03-13 08:20:17 +00:00
Richard Frith-MacDonald
4f9574fc5d add missing headers etc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32531 72102866-910b-0410-8b05-ffd578937521
2011-03-11 08:14:04 +00:00
Richard Frith-MacDonald
9810a1ec9c a few more static analyser tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32517 72102866-910b-0410-8b05-ffd578937521
2011-03-09 12:40:50 +00:00
Richard Frith-MacDonald
b918c226f7 minor cleanup for static analyser
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32514 72102866-910b-0410-8b05-ffd578937521
2011-03-09 10:53:25 +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
6bdce1cf05 mingw tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32488 72102866-910b-0410-8b05-ffd578937521
2011-03-07 15:47:07 +00:00
Richard Frith-MacDonald
542df716ec get return address better on sparc etc.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32476 72102866-910b-0410-8b05-ffd578937521
2011-03-06 14:23:57 +00:00
Richard Frith-MacDonald
98c91159d9 return address tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32471 72102866-910b-0410-8b05-ffd578937521
2011-03-06 10:09:37 +00:00
Richard Frith-MacDonald
d084034e84 tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32465 72102866-910b-0410-8b05-ffd578937521
2011-03-05 18:12:55 +00:00
Richard Frith-MacDonald
76e7141e1b rudimentary implementation fo two new methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32463 72102866-910b-0410-8b05-ffd578937521
2011-03-05 17:17:57 +00:00
Richard Frith-MacDonald
f8989f9ba3 add block enumeration
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32459 72102866-910b-0410-8b05-ffd578937521
2011-03-05 15:01:35 +00:00
Richard Frith-MacDonald
83052c50ee tweak for mswindows
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32458 72102866-910b-0410-8b05-ffd578937521
2011-03-05 14:47:58 +00:00
Richard Frith-MacDonald
03233198f7 Warn about using an unsafe +initialize
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32455 72102866-910b-0410-8b05-ffd578937521
2011-03-05 13:11:47 +00:00
Niels Grewe
821962705e Declare a protocol for GNUstep specific delegate methods in NSNetServices.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32426 72102866-910b-0410-8b05-ffd578937521
2011-03-01 10:52:21 +00:00
Richard Frith-MacDonald
074bf7a853 add code for other runtimes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32413 72102866-910b-0410-8b05-ffd578937521
2011-02-28 16:00:21 +00:00
Richard Frith-MacDonald
5dedb38f10 improve deprecation logging
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32404 72102866-910b-0410-8b05-ffd578937521
2011-02-28 12:01:36 +00:00
Richard Frith-MacDonald
05e186ac65 fix gc heade rlocation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32388 72102866-910b-0410-8b05-ffd578937521
2011-02-27 17:53:14 +00:00
Richard Frith-MacDonald
7a55300d6b cleanup for next reelease
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32385 72102866-910b-0410-8b05-ffd578937521
2011-02-27 09:08:59 +00:00
Richard Frith-MacDonald
59d4be1265 OSX compat tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32323 72102866-910b-0410-8b05-ffd578937521
2011-02-23 11:52:17 +00:00
Richard Frith-MacDonald
f756c612ca use 10.0 behavior if we have no ICU
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32260 72102866-910b-0410-8b05-ffd578937521
2011-02-21 12:36:18 +00:00
Richard Frith-MacDonald
61bc059d4a Cleanup ... avoid accessing the 'isa' variable directly.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32247 72102866-910b-0410-8b05-ffd578937521
2011-02-20 16:21:43 +00:00
Richard Frith-MacDonald
e262860ab4 documentation tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32196 72102866-910b-0410-8b05-ffd578937521
2011-02-16 16:51:42 +00:00
Richard Frith-MacDonald
b96b154e5e Add David's generalisation of _()
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32184 72102866-910b-0410-8b05-ffd578937521
2011-02-16 06:26:14 +00:00
Richard Frith-MacDonald
d07f49a9b6 more work on reserved/private pointer use
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32182 72102866-910b-0410-8b05-ffd578937521
2011-02-16 05:49:45 +00:00
Stefan Bidigaray
8acf2cf573 Moved new NSDateFormatter ivars to a struct in _reserved. Use unum_clone() to copy formatter in NSDateFormatter.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32172 72102866-910b-0410-8b05-ffd578937521
2011-02-15 00:49:48 +00:00
Richard Frith-MacDonald
7fa110e2c5 documentation fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32157 72102866-910b-0410-8b05-ffd578937521
2011-02-14 10:57:57 +00:00
Richard Frith-MacDonald
08dc11a192 Decrease chance of ABI breakage.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32156 72102866-910b-0410-8b05-ffd578937521
2011-02-14 06:37:45 +00:00
Stefan Bidigaray
51b232577e Moved 10.4+ implementation to a subclass of NSNumberFormatter.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32155 72102866-910b-0410-8b05-ffd578937521
2011-02-13 22:13:04 +00:00
Richard Frith-MacDonald
4a099cd60a Partially revert poorly thoght out code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32127 72102866-910b-0410-8b05-ffd578937521
2011-02-13 06:43:22 +00:00
Richard Frith-MacDonald
0592b48e55 Raise when attempting to use unimplemented classes. Check for null pointers
in more runtime functions (probably still many cases where we crash if null
pointers are passed to the API and Apple behave more tolrantly).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32124 72102866-910b-0410-8b05-ffd578937521
2011-02-13 06:31:05 +00:00
Richard Frith-MacDonald
d060289f36 Annotate uniquing for static analyzer
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32095 72102866-910b-0410-8b05-ffd578937521
2011-02-12 10:29:11 +00:00
Richard Frith-MacDonald
78009cfe59 fix typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32094 72102866-910b-0410-8b05-ffd578937521
2011-02-12 09:02:37 +00:00
Richard Frith-MacDonald
7047f9e6d4 more changes to avoid leak warnings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32093 72102866-910b-0410-8b05-ffd578937521
2011-02-12 09:00:18 +00:00
David Chisnall
9e6401bbdf Annotate the exception-throwing methods in NSObject Additions as not returning.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32076 72102866-910b-0410-8b05-ffd578937521
2011-02-11 14:38:09 +00:00
David Chisnall
068624b659 Added some macros for use with the static analyser. Turned _reserved ivar in GSSpellServer into GS_PADDING_IVAR (no change to class layout).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32036 72102866-910b-0410-8b05-ffd578937521
2011-02-10 12:15:09 +00:00
David Chisnall
c7c3c7c02e Add a GS_PADDING_IVAR macro. This defines the void *gs_unused; instance variable with __attribute__((unused)) on clang so that the static analyser only reports unused ivars that we expect to be used. This also makes it slightly easier to add the padding ivar to new classes.
Note: The padding ivar has been added to NSRegularExpression.  This will break the ABI for anyone subclassing NSRegularExpression, but hopefully that's no one (done before the next release, to make sure that we don't break the ABI between releases, only for people following -trunk).



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32033 72102866-910b-0410-8b05-ffd578937521
2011-02-10 11:02:50 +00:00
Stefan Bidigaray
021d3680d7 Implemented [NSTimeZone-daylightSavingTimeOffsetForDate:].
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32027 72102866-910b-0410-8b05-ffd578937521
2011-02-10 03:58:02 +00:00
Stefan Bidigaray
ac4a764b44 Fix broken method in NSDateFormatter class.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32023 72102866-910b-0410-8b05-ffd578937521
2011-02-10 01:52:16 +00:00
David Chisnall
a0b3425130 Don't use C++ keywords as identifiers in headers that might be included in ObjC++ programs.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32021 72102866-910b-0410-8b05-ffd578937521
2011-02-09 13:11:42 +00:00
Richard Frith-MacDonald
85139364d2 get mdns code to compile
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31995 72102866-910b-0410-8b05-ffd578937521
2011-02-03 08:17:07 +00:00
Richard Frith-MacDonald
1c3cad8be8 implement missing method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31984 72102866-910b-0410-8b05-ffd578937521
2011-02-01 13:51:32 +00:00
Stefan Bidigaray
b06267a94f Update autoupdatingCurrentLocale whenever the Locale default changes. The -currentLocale method now also checks Locale default.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31972 72102866-910b-0410-8b05-ffd578937521
2011-01-29 15:33:27 +00:00
Stefan Bidigaray
a33c9a2da0 Finished calendar code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31937 72102866-910b-0410-8b05-ffd578937521
2011-01-23 23:22:10 +00:00
Stefan Bidigaray
243296f6b4 Compile fix.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31935 72102866-910b-0410-8b05-ffd578937521
2011-01-23 18:25:56 +00:00
Stefan Bidigaray
76a29d3b14 Fix minor definition issue.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31927 72102866-910b-0410-8b05-ffd578937521
2011-01-23 04:54:30 +00:00
Stefan Bidigaray
cf6824ca66 Started implementing new NSDateFormatter methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31926 72102866-910b-0410-8b05-ffd578937521
2011-01-23 04:46:14 +00:00
Stefan Bidigaray
47547a0261 Fixed messed up NSDateFormatter definitions. Not sure how I managed to mess it up.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31925 72102866-910b-0410-8b05-ffd578937521
2011-01-22 23:26:17 +00:00
Stefan Bidigaray
55ac350d39 Stub for 10.4 and above methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31924 72102866-910b-0410-8b05-ffd578937521
2011-01-22 20:36:44 +00:00
Richard Frith-MacDonald
01b431530e improve comment slightly
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31882 72102866-910b-0410-8b05-ffd578937521
2011-01-12 09:18:38 +00:00
Richard Frith-MacDonald
15fd754bf2 Fixes to get base to compile again
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31865 72102866-910b-0410-8b05-ffd578937521
2011-01-10 08:55:47 +00:00
Stefan Bidigaray
d3857cd49f Implemented a few NSNumberFormatter methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31862 72102866-910b-0410-8b05-ffd578937521
2011-01-09 20:18:51 +00:00
Stefan Bidigaray
8af60212d5 Added stub for 10.4+ NSNumberFormatter methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31858 72102866-910b-0410-8b05-ffd578937521
2011-01-08 18:05:42 +00:00
Stefan Bidigaray
03c2eaaedb Added copying and coding to NSCalendar. Fixed a few things in NSLocale.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31822 72102866-910b-0410-8b05-ffd578937521
2011-01-02 03:47:29 +00:00
Stefan Bidigaray
797780c433 Minor fixes to NSCalendar and NSLocale. Also implemented NSCalendar's +currentCalendar.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31819 72102866-910b-0410-8b05-ffd578937521
2011-01-01 22:20:16 +00:00
Stefan Bidigaray
d18e4eb8ed Implemented -dateByAddingComponents:toDate:options: and -dateFromComponents:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31812 72102866-910b-0410-8b05-ffd578937521
2010-12-31 22:22:10 +00:00
Stefan Bidigaray
1670598602 Forgot to save previous changes to NSCalendar.h. It should now compile correctly.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31811 72102866-910b-0410-8b05-ffd578937521
2010-12-31 18:30:30 +00:00
Stefan Bidigaray
fe41357041 Added iOS 4.0 and later methods to NSDateComponents. These methods will probably show up in OS X 10.7 and are easy enough to add now.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31810 72102866-910b-0410-8b05-ffd578937521
2010-12-31 18:13:39 +00:00
David Chisnall
69c04b8ab7 Made format_arg attribute require clang (apparently it doesn't work with GCC, in spite of being listed in the GCC manual - possibly it only works with C functions). If it works with GCC 4.6, the #ifdef should be changed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31808 72102866-910b-0410-8b05-ffd578937521
2010-12-31 16:45:05 +00:00
David Chisnall
26cca7b21a Add __attribute__ ((format_arg)) to [NSBundle -localizedStringForKey:value:table:]. This informs the compiler that the output can be used anywhere that the first argument can be used, and should silence all of the non-constant format string warnings that we get anywhere that _(@"foo") or similar is used.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31804 72102866-910b-0410-8b05-ffd578937521
2010-12-31 14:03:45 +00:00
David Chisnall
62087337b0 Don't use template as a symbol name in a header, because this breaks ObjC++.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31803 72102866-910b-0410-8b05-ffd578937521
2010-12-31 13:58:27 +00:00
Quentin Mathe
dfa04d7fb9 Added -stringByReplacingCharactersInRange:withString: (Mac OS 10.5 method)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31776 72102866-910b-0410-8b05-ffd578937521
2010-12-25 19:31:05 +00:00
Nicola Pero
433cba01d1 Fixed undeclared class in header
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31774 72102866-910b-0410-8b05-ffd578937521
2010-12-24 18:34:16 +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
Nicola Pero
49e56309be Updated headers to use the new Objective-C runtime API when using the new GNU Objective-C Runtime from GCC 4.6
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31763 72102866-910b-0410-8b05-ffd578937521
2010-12-23 00:06:36 +00:00
Nicola Pero
90bc2ff63a Removed unused check (and definition of) objc_thread_add
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31761 72102866-910b-0410-8b05-ffd578937521
2010-12-22 23:36:11 +00:00
Adam Fedor
4f7b8c2089 * Headers/Foundation/NSCalendar.h: Add NSCopying protocol
* Source/NSCalendar.m: Retain ivar. Add copyWithZone:
	* Source/NSURL.m (-resourceSpecifier): Separate behavior for
	file scheme vs other schemes.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31757 72102866-910b-0410-8b05-ffd578937521
2010-12-22 18:10:33 +00:00
Richard Frith-MacDonald
62de5b485f mostly fixups for ICU
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31742 72102866-910b-0410-8b05-ffd578937521
2010-12-16 10:09:43 +00:00
Stefan Bidigaray
c4fdcb6d93 Started working on NSCalendar. I have done very limited testing and would really appreciate if people could start testing the code here.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31741 72102866-910b-0410-8b05-ffd578937521
2010-12-16 02:57:31 +00:00
Stefan Bidigaray
1b50ad217a Added locale keyword handling in -componentsFromLocaleIdentifier: and made a few minor modifications to NSLocale. Also included changelog entry for last commit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31740 72102866-910b-0410-8b05-ffd578937521
2010-12-16 02:15:27 +00:00
Stefan Bidigaray
50a82a2281 Forgot to regenerate configure and update config.h.in.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31739 72102866-910b-0410-8b05-ffd578937521
2010-12-16 02:10:38 +00:00
Stefan Bidigaray
5db47c44eb Add new, completely empty and useless NSCalendar class.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31735 72102866-910b-0410-8b05-ffd578937521
2010-12-15 00:04:51 +00:00
Stefan Bidigaray
174ab7cde4 Implemented more NSLocale functionality.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31728 72102866-910b-0410-8b05-ffd578937521
2010-12-13 03:37:35 +00:00
Fred Kiefer
850c2fb314 Add a few OSX 10.6 methods for NSPropertyList.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31692 72102866-910b-0410-8b05-ffd578937521
2010-11-29 22:54:28 +00:00
Richard Frith-MacDonald
76b2adf16f cleanup foundation includes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31682 72102866-910b-0410-8b05-ffd578937521
2010-11-28 09:30:05 +00:00
David Chisnall
26561714f2 Reverted accidental include of uncommitted file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31646 72102866-910b-0410-8b05-ffd578937521
2010-11-23 13:21:43 +00:00
David Chisnall
00095bc74c Undid accidental commit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31645 72102866-910b-0410-8b05-ffd578937521
2010-11-23 13:20:34 +00:00
David Chisnall
e933a5dfee Added ChangeLog entry from last commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31644 72102866-910b-0410-8b05-ffd578937521
2010-11-23 13:16:53 +00:00
David Chisnall
089a23235a Revert accidental commit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31638 72102866-910b-0410-8b05-ffd578937521
2010-11-20 17:04:41 +00:00
David Chisnall
a5335c34fb Added implementation of NSRegularExpression, from iOS 4 Foundation.
This class is a thin wrapper around libicu regular expressions, so if we don't
have libicu we simply don't compile it at all.  This will give people a linker
failure, rather than a nonfunctional class if they try to use GNUstep without
ICU with code that requires it.

The Apple documentation says that this class has a primitive method that takes
a block as an argument and that this method is called by others, so subclasses
can replace that block method without touching the convenience methods.  We
mimic this behaviour when compiling with block, but when compiling without them
it's a problem.  The current code contains some ugly hacks that will work in
normal usage but break with subclassing when not compiling with blocks.

This commit also includes a partial implementation of NSTextCheckingResult,
implementing the subset of its functionality required for NSRegularExpression
to work.

It also includes numerous fixes to GSICUString.  This is heavily used by
NSRegularExpression, to avoid copying strings when mapping between UText for
libicu and NSString for GNUstep.


Note: I don't have a copy of iOS anywhere to test this against, so it's
entirely possible that there are significant discrepancies between this
implementation of NSRegularExpression and the iOS version.  This version should
function exactly as the iOS one is described as functioning, but I think we've
all seen that Apple documentation refers more to hopes than facts.  Any testing
that someone who does have an ip{hone,od,ad} can do is very welcome.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31635 72102866-910b-0410-8b05-ffd578937521
2010-11-19 22:06:18 +00:00
Eric Wasylishen
a0f083736c NSPredicate MATCHES and LIKE implementation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31616 72102866-910b-0410-8b05-ffd578937521
2010-11-17 21:46:31 +00:00
David Chisnall
a0e6eafd31 Add NSLocale.h to the correct Foundation.h (why do we have two?).
Note: I'm fairly sure that all of the #import lines in Foundation.h are wrong; we should be using "foo.h" instead of <Foundation/foo.h>, or we will pick up the installed version when including this file while building GNUstep.  I don't want to make this change in case it is intentional to work around some broken ObjC compiler somewhere though...



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31595 72102866-910b-0410-8b05-ffd578937521
2010-11-07 15:53:30 +00:00
David Chisnall
e523978a5d Make NSNetServices use formal protocol, as in 10.6. When compiling with clang, use @optional, otherwise fall back to defining an empty protocol and defining an informal protocol with the methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31594 72102866-910b-0410-8b05-ffd578937521
2010-11-07 15:43:46 +00:00
David Chisnall
a3d6bd2eab Expose 10.6-compatible interface for per-thread assertion handlers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31593 72102866-910b-0410-8b05-ffd578937521
2010-11-07 15:37:19 +00:00
David Chisnall
59ee016e3e Add NSLocale.h to Foundation.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31592 72102866-910b-0410-8b05-ffd578937521
2010-11-07 15:36:23 +00:00
David Chisnall
de820d8151 Added defines for __weak and __strong.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31591 72102866-910b-0410-8b05-ffd578937521
2010-11-07 14:48:21 +00:00
Richard Frith-MacDonald
895a0f38ff add delivery notification requests and fix memory leak.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31571 72102866-910b-0410-8b05-ffd578937521
2010-10-28 22:50:38 +00:00
David Chisnall
b7ad06e540 Define clang's feature-test macros if they are not defined, so we can use them
without copying the fall-back version into every file where it might be needed.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31568 72102866-910b-0410-8b05-ffd578937521
2010-10-27 14:50:21 +00:00
Richard Frith-MacDonald
b7f4faa90b Fix setup of HAVE_ICU
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31567 72102866-910b-0410-8b05-ffd578937521
2010-10-27 11:24:44 +00:00
David Chisnall
d01fbf4669 Include C standard headers unless explicitly excluded.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31561 72102866-910b-0410-8b05-ffd578937521
2010-10-25 14:40:32 +00:00
Quentin Mathe
8500f58da7 Added standard C headers included by CoreFoundation.h to preface.h.in
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31379 72102866-910b-0410-8b05-ffd578937521
2010-09-19 19:28:17 +00:00
Richard Frith-MacDonald
5b1fdea392 fix declaration
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31322 72102866-910b-0410-8b05-ffd578937521
2010-09-10 21:16:20 +00:00
Richard Frith-MacDonald
faa2feed90 avoid documentation warning
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31296 72102866-910b-0410-8b05-ffd578937521
2010-09-10 13:20:06 +00:00
Adam Fedor
30d632b4c6 * configure.ac: Check for dladdr without requiring -ldl
* configure, Headers/Additions/GNUstepBase/config.h.in: Regen


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31272 72102866-910b-0410-8b05-ffd578937521
2010-09-09 19:31:04 +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
Eric Wasylishen
345563c947 * Source/ObjectiveC2/runtime.h:
* Source/ObjectiveC2/runtime.m:
Implement protocol_copyMethodDescriptionList, protocol_copyProtocolList,
protocol_getMethodDescription, as well as a dummy version of
objc_copyProtocolList.
* Headers/Additions/GNUstepBase/GSObjCRuntime.h:
* Source/Additions/GSObjCRuntime.m:
Implement a convenience method, GSProtocolGetMethodDescriptionRecursive



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31254 72102866-910b-0410-8b05-ffd578937521
2010-09-08 20:30:19 +00:00
Richard Frith-MacDonald
3564932935 remove obsolete typed stream inclusion
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31248 72102866-910b-0410-8b05-ffd578937521
2010-09-08 09:00:15 +00:00
Eric Wasylishen
8211043308 * Headers/Additions/GNUstepBase/preface.h.in: Remove include of
objc/sarray.h



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31245 72102866-910b-0410-8b05-ffd578937521
2010-09-07 19:31:03 +00:00
Richard Frith-MacDonald
fd458700cb simplify last change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31187 72102866-910b-0410-8b05-ffd578937521
2010-08-19 21:08:37 +00:00
Richard Frith-MacDonald
9390c9ae42 Guess at fix for bug #30766
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31186 72102866-910b-0410-8b05-ffd578937521
2010-08-19 21:02:29 +00:00
Eric Wasylishen
a17d3b1466 Fix typo (GSAPI_LAST -> GS_API_LATEST)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31139 72102866-910b-0410-8b05-ffd578937521
2010-08-14 01:00:49 +00:00
Niels Grewe
4848c265e9 Make NSLocale use information about libicu availablity (perviously, it would
never build the ICU stuff because the corresponding macro wasn't defined).



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30995 72102866-910b-0410-8b05-ffd578937521
2010-07-19 07:54:52 +00:00
Richard Frith-MacDonald
2d4d2d6dc4 attempt to get avahi code working without breaking abi.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30957 72102866-910b-0410-8b05-ffd578937521
2010-07-13 12:13:31 +00:00
Niels Grewe
4db2b9cf28 Finnaly working NSNetServices via avahi-client.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30956 72102866-910b-0410-8b05-ffd578937521
2010-07-13 11:41:54 +00:00
Richard Frith-MacDonald
1452902204 Attempt to integrate Niels Grewe's avahi code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30952 72102866-910b-0410-8b05-ffd578937521
2010-07-13 10:35:13 +00:00
Richard Frith-MacDonald
2edf4d1b0c emergency fixup for broken build
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30907 72102866-910b-0410-8b05-ffd578937521
2010-07-01 07:17:53 +00:00
David Chisnall
3b2211e891 Added some documentation for the CXXException class.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30905 72102866-910b-0410-8b05-ffd578937521
2010-06-30 15:59:52 +00:00
David Chisnall
edcd8d0c5d Added class for catching C++ exceptions. When using libobjc2, you can catch C++ exceptions by writing @catch(CXXException *e). This will wrap the C++ exception in an Objective-C object and allow you to access it by sending a -thrownValue message to the object. This returns a pointer to the exception. For example, if the exception is an integer, you would retrieve it like this from Objective-C:
@catch(CXXException *e)
{
	int i = *(int*)[e thrownValue];
}

In ObjC++, you can also make sure that it really is an int, by doing:

assert(typeid(int) == *(std::type_info*)[e cxx_type_info]);

These interfaces are experimental and subject to change without notice.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30904 72102866-910b-0410-8b05-ffd578937521
2010-06-30 13:08:22 +00:00
Richard Frith-MacDonald
b417e6bf8c Workaround for runitme bug.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30864 72102866-910b-0410-8b05-ffd578937521
2010-06-26 14:04:09 +00:00
Richard Frith-MacDonald
1e0ab98f12 dd autoconf stuff for ICU
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30850 72102866-910b-0410-8b05-ffd578937521
2010-06-25 10:33:55 +00:00
Richard Frith-MacDonald
1de22f472c initial addition of NSLocale
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30849 72102866-910b-0410-8b05-ffd578937521
2010-06-25 07:18:20 +00:00
Richard Frith-MacDonald
fd58513127 coding standard tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30824 72102866-910b-0410-8b05-ffd578937521
2010-06-22 17:44:51 +00:00
Dave Wetzel
af2be47796 * Headers/Foundation/NSFileManager.h
* Source/NSFileManager.m
add attributesOfItemAtPath:error:



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30822 72102866-910b-0410-8b05-ffd578937521
2010-06-22 16:49:34 +00:00
Richard Frith-MacDonald
cfd056e44e include runtime header for blocks support if the compiler has it.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30812 72102866-910b-0410-8b05-ffd578937521
2010-06-22 10:09:51 +00:00
Richard Frith-MacDonald
8f53f101f0 regenerate to fix problems of buggy autoconf version
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30771 72102866-910b-0410-8b05-ffd578937521
2010-06-17 16:50:45 +00:00
Richard Frith-MacDonald
fcdd57d05f minor memory management updates/cleanups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30760 72102866-910b-0410-8b05-ffd578937521
2010-06-16 08:45:49 +00:00
Richard Frith-MacDonald
23b7ff95cd Simplify source by usuing autoconf
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30692 72102866-910b-0410-8b05-ffd578937521
2010-06-12 07:19:26 +00:00
Richard Frith-MacDonald
dcf5647de3 tweak for performance
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30673 72102866-910b-0410-8b05-ffd578937521
2010-06-11 12:00:02 +00:00
Richard Frith-MacDonald
d2a49f16a8 Fixes for bug #29845 and mime parsing improvements.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30635 72102866-910b-0410-8b05-ffd578937521
2010-06-09 15:03:37 +00:00
Richard Frith-MacDonald
3c6801eae6 Revert code which belongs in gdl2 rather than base
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30508 72102866-910b-0410-8b05-ffd578937521
2010-05-31 07:18:54 +00:00
Dave Wetzel
64f6e96d0a added encodingNamed:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30507 72102866-910b-0410-8b05-ffd578937521
2010-05-31 06:34:28 +00:00
Richard Frith-MacDonald
6388ec9d4f various minor bugfixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30470 72102866-910b-0410-8b05-ffd578937521
2010-05-29 06:42:38 +00:00
Richard Frith-MacDonald
20e7daac62 quick fix t get trunk compiling again.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30444 72102866-910b-0410-8b05-ffd578937521
2010-05-22 04:41:32 +00:00
Richard Frith-MacDonald
27dde9d07b Attempt to get correct charset for xml parsing.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30441 72102866-910b-0410-8b05-ffd578937521
2010-05-21 17:40:43 +00:00
Riccardo Mottola
67dcff87fa Guarded stdint.h inclusion
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30438 72102866-910b-0410-8b05-ffd578937521
2010-05-21 11:05:33 +00:00
Richard Frith-MacDonald
886aa2d93c add missing methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30283 72102866-910b-0410-8b05-ffd578937521
2010-05-03 06:00:45 +00:00
Fred Kiefer
4ad4022924 Add a few missing 10.4 initWithContentsOfXXX: methods. Fixes part of bug report #29736.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30279 72102866-910b-0410-8b05-ffd578937521
2010-05-02 11:02:26 +00:00
Dave Wetzel
9e723901b6 * Source/Additions/Unicode.m: replace objc_malloc with NSZoneMalloc
and objc_free with NSZoneFree

* Source/Additions/NSFileHandle+GNUstepBase.m: should work with ipv6
(The old code does fail on Snow Leopard, even with ipv4 addresses.)    

* Source/Additions/GSXML.m: added GSObjCRuntime.h
* Headers/Additions/GNUstepBase/GSObjCRuntime.h: 
replace objc_malloc with NSZoneMalloc and objc_free with NSZoneFree



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30221 72102866-910b-0410-8b05-ffd578937521
2010-04-23 04:06:17 +00:00
Nicola Pero
40d25d9fea Fixed installation-domains.conf on Windows - merged back the path configuration into the main configure script to do it. Minor other fixes to configuration.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30180 72102866-910b-0410-8b05-ffd578937521
2010-04-18 18:18:45 +00:00
Richard Frith-MacDonald
4ce499bb84 fix comment accidentally copied from +load
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30131 72102866-910b-0410-8b05-ffd578937521
2010-04-12 13:22:35 +00:00
Richard Frith-MacDonald
0eb84927ee Correction by David Ayers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30129 72102866-910b-0410-8b05-ffd578937521
2010-04-12 12:01:17 +00:00
Richard Frith-MacDonald
961c1db5a2 tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30126 72102866-910b-0410-8b05-ffd578937521
2010-04-12 11:25:32 +00:00
Richard Frith-MacDonald
d365d287cf improve documentation ... really runtime features but we don't have dos for that
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30125 72102866-910b-0410-8b05-ffd578937521
2010-04-12 11:19:08 +00:00
Richard Frith-MacDonald
ac3ce7be00 make mixed abi default now
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30063 72102866-910b-0410-8b05-ffd578937521
2010-03-28 08:22:46 +00:00
Richard Frith-MacDonald
561bd93398 fix typos
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30049 72102866-910b-0410-8b05-ffd578937521
2010-03-27 05:31:54 +00:00
David Chisnall
c75d9cd218 Fix for Foundation.h being imported after CoreFoundation.h; don't redefine OSType if it's already defined.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@30047 72102866-910b-0410-8b05-ffd578937521
2010-03-27 00:33:03 +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
97653c21a2 Made experimental API for sending emails available.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29999 72102866-910b-0410-8b05-ffd578937521
2010-03-18 09:56:51 +00:00
Richard Frith-MacDonald
8b6d77380c experimental configure option
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29994 72102866-910b-0410-8b05-ffd578937521
2010-03-17 15:34:51 +00:00
Richard Frith-MacDonald
7a0ddec62c Apply tidyup by Anibal Rindisbacher
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29986 72102866-910b-0410-8b05-ffd578937521
2010-03-17 05:36:11 +00:00
Richard Frith-MacDonald
d435122451 fix typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29979 72102866-910b-0410-8b05-ffd578937521
2010-03-16 12:03:10 +00:00
Richard Frith-MacDonald
7112daa5b4 mingw tweaks suggested by Vincent Richomme
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29973 72102866-910b-0410-8b05-ffd578937521
2010-03-16 06:19:58 +00:00
Richard Frith-MacDonald
4bbf250188 add explicit bracketing for safer macros.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29969 72102866-910b-0410-8b05-ffd578937521
2010-03-15 21:16:20 +00:00
Richard Frith-MacDonald
a83ae2b69d Prevent builds where nonfragile-abi state does not match that with which
the base library was configured.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29929 72102866-910b-0410-8b05-ffd578937521
2010-03-13 19:45:23 +00:00
Richard Frith-MacDonald
ee25a8f059 improve exception support
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29898 72102866-910b-0410-8b05-ffd578937521
2010-03-11 07:22:10 +00:00
Richard Frith-MacDonald
e21f059bf0 fix includes to iumports
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29894 72102866-910b-0410-8b05-ffd578937521
2010-03-10 14:53:51 +00:00
Adam Fedor
3eefcc5e1b Finish implementation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29893 72102866-910b-0410-8b05-ffd578937521
2010-03-10 03:50:21 +00:00
Richard Frith-MacDonald
b9070bdab8 check for loss of data on decoding
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29887 72102866-910b-0410-8b05-ffd578937521
2010-03-09 10:09:01 +00:00
Richard Frith-MacDonald
42db2fdf50 Improve debug
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29874 72102866-910b-0410-8b05-ffd578937521
2010-03-08 09:27:48 +00:00
Richard Frith-MacDonald
3132d54a5d 64bit fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29872 72102866-910b-0410-8b05-ffd578937521
2010-03-08 07:06:47 +00:00
Richard Frith-MacDonald
22f8bdb8c4 64 bit fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29871 72102866-910b-0410-8b05-ffd578937521
2010-03-08 06:43:14 +00:00
Richard Frith-MacDonald
026d6fc751 Add mechanism for gdl2.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29866 72102866-910b-0410-8b05-ffd578937521
2010-03-07 13:35:07 +00:00
Richard Frith-MacDonald
f59ba481f0 Move NSStream addition declarations to separate file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29853 72102866-910b-0410-8b05-ffd578937521
2010-03-05 12:41:40 +00:00
Richard Frith-MacDonald
1a4662001d Remove obsolete headers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29850 72102866-910b-0410-8b05-ffd578937521
2010-03-05 10:32:15 +00:00
Richard Frith-MacDonald
8ffe9f3c80 tweaks to build on osx
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29849 72102866-910b-0410-8b05-ffd578937521
2010-03-05 10:24:42 +00:00
Richard Frith-MacDonald
39fc4419b0 further cleanup ... always use -zone method to get an object's zone ...
so people can safely write subclasses using different allocation schemes.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29847 72102866-910b-0410-8b05-ffd578937521
2010-03-05 09:30:18 +00:00
Richard Frith-MacDonald
e947396a6e include stdio.h for GSPrintf
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29843 72102866-910b-0410-8b05-ffd578937521
2010-03-05 05:54:56 +00:00
Richard Frith-MacDonald
ef908fbb5b remove obsolete code and update other stuff fro new runtime api
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29840 72102866-910b-0410-8b05-ffd578937521
2010-03-05 05:24:43 +00:00
Richard Frith-MacDonald
102df587f7 more changes for new runtime
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29828 72102866-910b-0410-8b05-ffd578937521
2010-03-04 08:15:08 +00:00
Richard Frith-MacDonald
4fcce15ee0 Fix header error spotted by Fred
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29817 72102866-910b-0410-8b05-ffd578937521
2010-03-02 09:51:12 +00:00
Richard Frith-MacDonald
f710cb72e9 Remove obsolete code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29813 72102866-910b-0410-8b05-ffd578937521
2010-03-01 08:46:21 +00:00
Richard Frith-MacDonald
e98d8f6da5 update argument types for latest api
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29811 72102866-910b-0410-8b05-ffd578937521
2010-03-01 05:43:08 +00:00
David Chisnall
1fed8159bb Added a couple of convenience methods on NSString (OS X 10.5 compatibility).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29810 72102866-910b-0410-8b05-ffd578937521
2010-02-28 23:37:22 +00:00
Richard Frith-MacDonald
b59b875d50 mprove ifdef's for non-fragile-abi
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29809 72102866-910b-0410-8b05-ffd578937521
2010-02-28 19:43:35 +00:00
Richard Frith-MacDonald
bbc0ddd60f Use NSGetSizeAndAlignment
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29798 72102866-910b-0410-8b05-ffd578937521
2010-02-28 11:51:59 +00:00
Richard Frith-MacDonald
b1b69523be add objc_sizeOfType()
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29795 72102866-910b-0410-8b05-ffd578937521
2010-02-28 11:36:29 +00:00
Richard Frith-MacDonald
299c3aefeb cleanup compatibility header installation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29793 72102866-910b-0410-8b05-ffd578937521
2010-02-28 09:10:16 +00:00
Richard Frith-MacDonald
8aadd12c71 remove a few obsolete, unused methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29785 72102866-910b-0410-8b05-ffd578937521
2010-02-27 06:53:43 +00:00
Richard Frith-MacDonald
6b3e53917e inon-fragile ivar update
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29780 72102866-910b-0410-8b05-ffd578937521
2010-02-26 11:04:14 +00:00
Richard Frith-MacDonald
e43d625338 improve instance variable hiding
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29779 72102866-910b-0410-8b05-ffd578937521
2010-02-26 10:25:35 +00:00
Richard Frith-MacDonald
166f1afb4b build additions with NO_GNUSTEP=1
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29771 72102866-910b-0410-8b05-ffd578937521
2010-02-26 08:39:47 +00:00
Richard Frith-MacDonald
a000beebcb tweak for if bool is a reserved word
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29754 72102866-910b-0410-8b05-ffd578937521
2010-02-25 19:00:23 +00:00
Richard Frith-MacDonald
0d8647856e support very recent glibc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29738 72102866-910b-0410-8b05-ffd578937521
2010-02-25 10:51:10 +00:00
Richard Frith-MacDonald
c22351a70f regenerate
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29737 72102866-910b-0410-8b05-ffd578937521
2010-02-25 10:03:00 +00:00
Richard Frith-MacDonald
62939c969a compatibility and portability fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29736 72102866-910b-0410-8b05-ffd578937521
2010-02-25 10:00:48 +00:00
Richard Frith-MacDonald
3968c44cec Cleanup some deprecated code
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29730 72102866-910b-0410-8b05-ffd578937521
2010-02-25 08:19:52 +00:00
Richard Frith-MacDonald
b60b8bf73f Move gnustep specific macros
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29729 72102866-910b-0410-8b05-ffd578937521
2010-02-25 05:36:10 +00:00
Richard Frith-MacDonald
b1e904b3ae move GNUstep.h into common.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29727 72102866-910b-0410-8b05-ffd578937521
2010-02-25 05:26:57 +00:00
Richard Frith-MacDonald
8da37b5bf9 move a few functions from header to source file
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29725 72102866-910b-0410-8b05-ffd578937521
2010-02-25 05:07:34 +00:00
Richard Frith-MacDonald
4497ba7bdd Build with non-fragile ivars.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29715 72102866-910b-0410-8b05-ffd578937521
2010-02-24 10:23:47 +00:00
Richard Frith-MacDonald
8769dd8b6f deprecates some gnustep runtime wrappers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29697 72102866-910b-0410-8b05-ffd578937521
2010-02-22 10:13:20 +00:00
Richard Frith-MacDonald
dd42cc24ba Move includes to NSObjCRuntime.h to match OSX
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29692 72102866-910b-0410-8b05-ffd578937521
2010-02-20 18:32:07 +00:00
Richard Frith-MacDonald
ec2ebc1c47 tweaks to avoid compiler warnings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29691 72102866-910b-0410-8b05-ffd578937521
2010-02-20 18:05:00 +00:00
Richard Frith-MacDonald
b107ae4ac4 preparation for possibly excluding GNUstep extensions by default
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29690 72102866-910b-0410-8b05-ffd578937521
2010-02-20 17:16:23 +00:00
Richard Frith-MacDonald
c7fc73ec19 make runtime.h available to other code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29684 72102866-910b-0410-8b05-ffd578937521
2010-02-20 06:49:32 +00:00
Richard Frith-MacDonald
62011a8adf More include tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29671 72102866-910b-0410-8b05-ffd578937521
2010-02-19 14:21:02 +00:00
Richard Frith-MacDonald
14a557fcd7 avoid obsolete include
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29667 72102866-910b-0410-8b05-ffd578937521
2010-02-18 16:27:32 +00:00
Richard Frith-MacDonald
85760d2563 move a bit more stuff into additions
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29666 72102866-910b-0410-8b05-ffd578937521
2010-02-18 16:18:54 +00:00
Richard Frith-MacDonald
6a1ff80510 Backward compatibility fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29663 72102866-910b-0410-8b05-ffd578937521
2010-02-18 11:40:58 +00:00
Richard Frith-MacDonald
cccddb4573 Fix errors spotted by Fred
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29662 72102866-910b-0410-8b05-ffd578937521
2010-02-18 08:45:00 +00:00
Richard Frith-MacDonald
746afbcb53 Update integer limits code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29661 72102866-910b-0410-8b05-ffd578937521
2010-02-18 07:06:42 +00:00
Richard Frith-MacDonald
43bcaac3ad Attempt to allow documentation to be generated for uninstalled base package.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29655 72102866-910b-0410-8b05-ffd578937521
2010-02-16 19:51:52 +00:00
Richard Frith-MacDonald
7e8e79ae94 avoid unnecessary requests for signatures to remote process
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29652 72102866-910b-0410-8b05-ffd578937521
2010-02-16 17:08:47 +00:00
Richard Frith-MacDonald
dc010099a9 Enable 64bit api changes matching OSX 10.5
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29650 72102866-910b-0410-8b05-ffd578937521
2010-02-15 17:51:07 +00:00
Richard Frith-MacDonald
2d237c91ae remove obsolete invocation stuff
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29649 72102866-910b-0410-8b05-ffd578937521
2010-02-15 17:14:12 +00:00
Richard Frith-MacDonald
d763014aa5 cleanup fast enumeration issues
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29647 72102866-910b-0410-8b05-ffd578937521
2010-02-15 16:56:31 +00:00
Richard Frith-MacDonald
da2a563929 Fix erroneous configure change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29631 72102866-910b-0410-8b05-ffd578937521
2010-02-14 17:22:47 +00:00
Richard Frith-MacDonald
ea34103f35 fixup for old runtime
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29627 72102866-910b-0410-8b05-ffd578937521
2010-02-14 15:47:30 +00:00
Richard Frith-MacDonald
cd6051a668 fix missing check for runtime.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29626 72102866-910b-0410-8b05-ffd578937521
2010-02-14 15:41:44 +00:00
Richard Frith-MacDonald
eda0f191e7 Avoid accidental include of Foundation.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29620 72102866-910b-0410-8b05-ffd578937521
2010-02-14 13:52:29 +00:00
David Chisnall
99cb20ae16 Rewritten NSNumber implementation. This fixes several OS X-compatibility issues:
The -pointerValue method now returns the value cast to a pointer, not some random value, as the documentation says it should.  This is a change from OpenStep, which said:

> It's an error to send this message to an NSValue that doesn't store a pointer.

The OS X docs now say:

> The receiver's value as a pointer to void. If the receiver was not created to hold a pointer-sized data item, the result is undefined.

This means that any NSNumber created with a word-sized integer should return the same value.

Fixed a number of corner-cases in the compare: implementation caused by incorrect type promotion.  The OS X docs say:

> The compare: method follows the standard C rules for type conversion.

The OS X implementation does not do this.  We now match Apple's conversion rules bug-for-bug: Every value is stored in the smallest signed type that will hold it, unless there is no unsigned type that can hold it, in which case it is stored in an `unsigned long long`, comparisons between integer and floating point values cast both to a double, comparisons between integer types perform a real comparison (so an unsigned long long is always greater than any negative number, at any precision).  The Apple implementation is actually quite sane, it is just completely unrelated to the documentation in any way.

We now use the same range of reusable objects.  Note that there is an error in Cocoa Design Patterns in the description of how Apple's implementation works.  Do not use this as a reference.

We now return `nil` when an NSNumber is sent an -init message.  This is consistent with Apple's implementation but breaks some things in the GNUstep test suite (which RFM said he will fix).

There is a small change in NSValue.h so that the locale parameter is now an `id` not an `NSString*`.  This is because, under recent OS X, it may also be an `NSLocale` instance.  I am not sure how much GNUstep supports `NSLocale`, but this change shouldn't affect anything.

The new (private) GSNumberTypes.h file lets you define macros that are instantiated with each of the names of primitive C types.  These might be useful for simplifying other classes that have -intValue, -floatValue, and so on methods, such as the `NSCell` family.

The old NSConcreteNumberTemplate and NSConcreteNumber stuff has been removed.  The code is now a bit more than 10% of the size of the old NSNumber code, and is hopefully maintainable now, so the next change won't require a complete rewrite.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29618 72102866-910b-0410-8b05-ffd578937521
2010-02-14 12:57:44 +00:00
Richard Frith-MacDonald
79ce6ac700 minor include fixups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29616 72102866-910b-0410-8b05-ffd578937521
2010-02-14 11:01:08 +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
David Chisnall
6bf6ec959b Made NSAllocateObject() and NSDeallocateObject() use / take id instead of NSObject*. This matches Apple's definition and gets rid of 'assignment / initialization from distinct Objective-C type' warnings when you use NSAllocateObject() to create an instance without an explicit cast.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29611 72102866-910b-0410-8b05-ffd578937521
2010-02-13 17:33:23 +00:00
Richard Frith-MacDonald
55d4f390aa re-instate cleaned up version of string proxy code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29518 72102866-910b-0410-8b05-ffd578937521
2010-02-09 06:07:10 +00:00
Richard Frith-MacDonald
baf489409c Farious fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29513 72102866-910b-0410-8b05-ffd578937521
2010-02-08 17:52:36 +00:00
Richard Frith-MacDonald
6c84f23ae1 Coimplete operation queue implementation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29508 72102866-910b-0410-8b05-ffd578937521
2010-02-08 10:34:27 +00:00
Richard Frith-MacDonald
0dec7f1b97 NSOperationQueue additions
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29495 72102866-910b-0410-8b05-ffd578937521
2010-02-06 17:10:16 +00:00
Riccardo Mottola
d18782ed0e fixed c99-ism
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29486 72102866-910b-0410-8b05-ffd578937521
2010-02-05 21:00:10 +00:00
Riccardo Mottola
fb3ec312b6 provide gcc 2.95 variadic macro
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29485 72102866-910b-0410-8b05-ffd578937521
2010-02-05 20:57:36 +00:00
Richard Frith-MacDonald
9f98d4c443 tweak for OSX compatibility
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29480 72102866-910b-0410-8b05-ffd578937521
2010-02-05 11:41:24 +00:00
Richard Frith-MacDonald
1c11dee837 implement and document NSOperation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29476 72102866-910b-0410-8b05-ffd578937521
2010-02-04 16:47:45 +00:00
Richard Frith-MacDonald
49a063af84 Reinstate working symbolic stack trace code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29392 72102866-910b-0410-8b05-ffd578937521
2010-01-24 17:13:03 +00:00
Richard Frith-MacDonald
b662140e16 Apply patch to switch completely to using pthreads
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29367 72102866-910b-0410-8b05-ffd578937521
2010-01-23 17:00:13 +00:00
Eric Wasylishen
3110312b36 define CGFLOAT_DEFINED when defining CGFloat.
Also check that NSINTEGER_DEFINED and CGFLOAT_DEFINED are undefined
before defining NSInterger and CGFloat.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29351 72102866-910b-0410-8b05-ffd578937521
2010-01-21 22:41:52 +00:00
Richard Frith-MacDonald
138ba2c0ae Re-instate lost check for setsid
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29341 72102866-910b-0410-8b05-ffd578937521
2010-01-21 08:23:19 +00:00
Richard Frith-MacDonald
1c4d02d09d Fix for exception handling with libobjc2
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29247 72102866-910b-0410-8b05-ffd578937521
2010-01-09 07:24:05 +00:00
Eric Wasylishen
d4cee6fc57 Implement +[NSCharacterSet newlineCharacterSet]
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29219 72102866-910b-0410-8b05-ffd578937521
2010-01-05 22:28:12 +00:00
David Chisnall
c5103403f6 Refactored last two commits so that all of the real code is in GSIMap.h and is just called from the relevant classes, rather than copied and pasted everywhere. Also added fast enumeration support to GSCountedSet.
I think that's all of the classes that use GSIMaps for their implementation now fully supporting fast enumeration.  If there are any that I've missed, then just copy the methods from GSSet to implement them.  You just need to set the mutations pointer to something sensible (i.e. something that will change if the collection mutates) and then call the new GSIMapCountByEnumeratingWithStateObjectsCount() function.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29181 72102866-910b-0410-8b05-ffd578937521
2009-12-29 16:49:07 +00:00
David Chisnall
9e003700b4 Added fast enumeration support to GS[Mutable]Dictionary. This follows exactly the same pattern (and uses the same code as) GSSet. It's probably worth factoring out this code, because it is now used in four methods with almost no variation between them.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29180 72102866-910b-0410-8b05-ffd578937521
2009-12-29 16:21:01 +00:00
David Chisnall
41eb58f807 Added fast enumeration to NSSet. This changed the layout of GSMutableSet, adding a _version ivar, but this is a private class so it doesn't change the public ABI. All mutator methods in GSMutableSet must increment this variable, allowing thread-safe fast enumeration.
As with GSArray, GSSet uses its isa pointer for detecting mutations.  This may change as a result of adding KVO notifications, so it might not be the best solution, but I can't currently think of a way we could catch isa changing to [GSMutableSet class] and not changing to a hidden class...



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29179 72102866-910b-0410-8b05-ffd578937521
2009-12-29 15:59:14 +00:00
David Chisnall
34c77138fc Added implementations of some of the new (10.6) NSArray methods that take blocks as arguments. These all use the new GSBlocks.h macros, so compile cleanly with GCC, but can be used by code compiled by clang.
Some of these implementations are not as efficient as they could be (especially the ones that take an NSIndexSet as the first argument).  They also don't yet support concurrent enumeration.  Apple implements these using Grand Central.  We could possibly have a background thread that we send these things to (or use GCD if libdispatch is available).  It's not worth spawning a new thread for them, except in exceptional circumstances (and, unfortunately, we can't easily tell how expensive a single iteration of a block is.  Possibly we could time one block invocation, and if it's longer than some threshold make it concurrent, but it's probably not worth the effort).



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29176 72102866-910b-0410-8b05-ffd578937521
2009-12-27 16:49:52 +00:00
David Chisnall
05f18160df Added -enumerateObjectsUsingBlock: implementation to NSArray.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29174 72102866-910b-0410-8b05-ffd578937521
2009-12-27 15:25:12 +00:00
David Chisnall
7d0822ec49 Made NSArray conform to NSFastEnumeration. No idea why it wasn't already - it implements the methods...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29173 72102866-910b-0410-8b05-ffd578937521
2009-12-27 14:41:42 +00:00
David Chisnall
2c401de4f4 Added GSBlocks header. This defines two macros:
DEFINE_BLOCK_TYPE() defines a new block type.
CALL_BLOCK() calls a block.

These use the compiler's native support for blocks if it exists, but otherwise implement the lower-level version.  Note that the structure defined by the fall-back versions is NOT a complete definition of the block layout, and copies of this structure should never be instantiated.

This does not allow non-blocks-aware compiles (like GCC) to create blocks, but it does allow them to use blocks.  This means that we can implement things like NSArray's -enumerateObjectsUsingBlock: without breaking GCC compatibility.  To do so, you'd first need to declare a block type in the header, like this:

DEFINE_BLOCK_TYPE(GSEnumeratorBlock, void, id, NSUInteger, BOOL*);

Then declare the method like this:

- (void)enumerateObjectsUsingBlock: (GSEnumeratorBlock)aBlock;

Finally, implement it like this:

- (void)enumerateObjectsUsingBlock: (GSEnumeratorBlock)aBlock
{
	NSUInteger count = 0;
	BOOL shouldStop = NO;
	for (obj in self)
	{
		CALL_BLOCK(aBlock, obj, count++, &shouldStop);
		if (shouldStop)
		{
			return;
		}
	}
}

If you compile this with clang -fblocks then it will work using Clang's native support for blocks.  If you compile it with GCC or clang without -fblocks then it will use the other version.  Note that this example uses fast enumeration, so will only compile with clang.  A proper GNUstep implementation should have some fall-back code for primitive compilers that don't support this either.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29169 72102866-910b-0410-8b05-ffd578937521
2009-12-27 13:54:51 +00:00
Richard Frith-MacDonald
c7a2108c66 Readability tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@29115 72102866-910b-0410-8b05-ffd578937521
2009-12-11 15:13:16 +00:00
Richard Frith-MacDonald
2cc7e401da avoid preprocessor warnings on mingw
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28951 72102866-910b-0410-8b05-ffd578937521
2009-11-04 07:00:23 +00:00
Richard Frith-MacDonald
02a93a74af Have -drain call -release
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28950 72102866-910b-0410-8b05-ffd578937521
2009-11-04 05:51:34 +00:00
Richard Frith-MacDonald
20d59a0d7a fix missing macro
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28817 72102866-910b-0410-8b05-ffd578937521
2009-10-12 19:04:21 +00:00
Richard Frith-MacDonald
febe972488 new initialisation function.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28806 72102866-910b-0410-8b05-ffd578937521
2009-10-12 14:38:49 +00:00
Richard Frith-MacDonald
e4a6d046be cleanups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28787 72102866-910b-0410-8b05-ffd578937521
2009-10-10 08:16:17 +00:00
Richard Frith-MacDonald
d0bd5c8983 Fix files missed from last ocmmit.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28780 72102866-910b-0410-8b05-ffd578937521
2009-10-07 14:54:37 +00:00
Richard Frith-MacDonald
a6c9c8749a lrge changes to remove mframe
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28778 72102866-910b-0410-8b05-ffd578937521
2009-10-05 16:00:28 +00:00
Richard Frith-MacDonald
715bdcaa0a a bit step towards removing obsolete mframe code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28774 72102866-910b-0410-8b05-ffd578937521
2009-10-04 15:26:07 +00:00
Richard Frith-MacDonald
e93dcbf681 fix leak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28771 72102866-910b-0410-8b05-ffd578937521
2009-10-04 10:05:14 +00:00
Richard Frith-MacDonald
fcc33c1b71 explicitly specify types in union
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28762 72102866-910b-0410-8b05-ffd578937521
2009-10-02 15:14:42 +00:00
Richard Frith-MacDonald
7b1dbbff0b Default to an empty array type
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28761 72102866-910b-0410-8b05-ffd578937521
2009-10-02 14:41:25 +00:00
David Chisnall
7f8c48ddfc Added configure thingy to detect presence of runtime.h. Autoconf stuff by Wonfgang Lux.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28730 72102866-910b-0410-8b05-ffd578937521
2009-09-23 11:52:32 +00:00
Richard Frith-MacDonald
447a3d1c69 fix typos
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28694 72102866-910b-0410-8b05-ffd578937521
2009-09-17 08:52:03 +00:00
Richard Frith-MacDonald
6455c3e533 tweak header parsing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28687 72102866-910b-0410-8b05-ffd578937521
2009-09-15 15:28:35 +00:00
Richard Frith-MacDonald
75638580ff Log excess data.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28686 72102866-910b-0410-8b05-ffd578937521
2009-09-15 11:51:08 +00:00
Richard Frith-MacDonald
640ae938c6 Cleanups and minor bugfixes for new code.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28665 72102866-910b-0410-8b05-ffd578937521
2009-09-12 07:37:00 +00:00
David Chisnall
95c9e08026 Rewrote exception callstack generation to use the backtrace() and
backtrace_symbols() code.  Implemented the -callStackSymbols method from
	10.5 using this.  For this to be enabled, the configure script will
	require a small modification, which Gregory will add later.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28662 72102866-910b-0410-8b05-ffd578937521
2009-09-11 16:14:45 +00:00
David Chisnall
47eab60ed8 Added implementations of the hooks provided by the new runtime. This brings
NSObject up to feature-parity with the OS X 10.5 implementation when using the
new runtime and up to feature-parity with the 10.6 implementation if you are
using the new runtime and compiling with clang.

Also removes the objc_mutex_wibble stuff from NSObject in favour of just using
NSLocks (which, with the new implementation, are now faster than using
objc_mutex_stuff).



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28657 72102866-910b-0410-8b05-ffd578937521
2009-09-10 20:14:42 +00:00
Richard Frith-MacDonald
36e7376518 remove publicly visible ivars for future abi stability.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28626 72102866-910b-0410-8b05-ffd578937521
2009-09-07 16:25:04 +00:00
Richard Frith-MacDonald
418330b29d Avoid exposing pthread details in NSLock.h (as much as possible without
impacting performance).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28612 72102866-910b-0410-8b05-ffd578937521
2009-09-06 10:56:04 +00:00
Richard Frith-MacDonald
b4ddaee78f Minor fixes/tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28605 72102866-910b-0410-8b05-ffd578937521
2009-09-03 09:45:23 +00:00
David Chisnall
d7a877b871 * Source/NSLock.m
* Headers/Foundation/NSLock.h
	Completely rewritten implementations of NSLock.h classes.  These are now
	faster, more complete, OS X-compatible, and most importantly actually
	work.  The old ones, for example, called functions that were not
	implemented on Windows.  
	* Source/NSThread.m
	Call pthread functions directly in NSThread instead of via the libobjc
	abstraction layer.  Also fixed a few issues, such as GC not being
	initialized properly for NSThread subclasses that override -main (Javaism
	supported by OS X) and tidies up the code in several places, removing
	premature optimizations, especially those that introduce a test for an
	unlikely case at the start of a method and thus slow everything down.

	As a result of this change, GNUstep now depends on an implementation of
	POSIX threads.  This is included as standard on all modern UNIX systems,
	and as an option on less-modern UNIX systems and non-UNIX systems,
	including Windows.  If you are building GNUstep on Windows, please install
	the pthreads-win32 package, available from:

	http://sourceware.org/pthreads-win32/

	PLEASE TEST THIS!  There may be some code that depended on the old
	behaviour.  I have been running the new NSLock implementation on FreeBSD
	for a few weeks without issue; please report to me any problems that you
	have on your platform.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28598 72102866-910b-0410-8b05-ffd578937521
2009-09-02 13:03:13 +00:00
Richard Frith-MacDonald
6bbe31c18d tweak NSCache changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28582 72102866-910b-0410-8b05-ffd578937521
2009-09-01 04:40:07 +00:00
David Chisnall
c00f54bafb Added NSCache (OS X 10.6) implementation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28581 72102866-910b-0410-8b05-ffd578937521
2009-08-31 21:45:53 +00:00
David Chisnall
019f6b1da6 Added NSDiscardableContent protocol from Snow Leopard.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28577 72102866-910b-0410-8b05-ffd578937521
2009-08-30 16:40:24 +00:00
David Chisnall
9ddfb17425 Added version macro for Snow Leopard.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28576 72102866-910b-0410-8b05-ffd578937521
2009-08-30 16:35:39 +00:00
Richard Frith-MacDonald
5975ccf95f Fix for bug introduced by adding OSX compatibility for the -path method of
NSURL.  This was causing loading of URLs where the path ends in a slash to
fail (load the wrong URL).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28548 72102866-910b-0410-8b05-ffd578937521
2009-08-26 16:48:15 +00:00
Richard Frith-MacDonald
ae54787ec6 Updates for 1.19.2 release
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28540 72102866-910b-0410-8b05-ffd578937521
2009-08-25 11:13:00 +00:00
Richard Frith-MacDonald
e7db98165f OSX compatibility iprovement.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28528 72102866-910b-0410-8b05-ffd578937521
2009-08-24 07:07:36 +00:00
Richard Frith-MacDonald
fbb35d1684 Note that directory enumeration order is undefined.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28439 72102866-910b-0410-8b05-ffd578937521
2009-08-05 08:03:37 +00:00
Quentin Mathe
5b9f61f496 Included NSKeyValueObserving.h in Foundation.h as Cocoa does
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28420 72102866-910b-0410-8b05-ffd578937521
2009-07-30 17:47:13 +00:00
Richard Frith-MacDonald
4567f1790d Fix includes and comments
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28398 72102866-910b-0410-8b05-ffd578937521
2009-07-17 05:13:52 +00:00
Gregory John Casamento
575500fdf2 * Headers/Foundation/NSOperation.h
* Source/NSOperation.m: Added initial implementation of
	NSOperationQueue.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28395 72102866-910b-0410-8b05-ffd578937521
2009-07-15 00:02:34 +00:00
Gregory John Casamento
8ee18b36c7 * Headers/Foundation/Foundation.h
* Headers/Foundation/NSOperation.h
	* Source/GNUmakefile
	* Source/NSOperation.m: Initial implementation of NSOperation
	class.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28393 72102866-910b-0410-8b05-ffd578937521
2009-07-13 18:14:42 +00:00
Richard Frith-MacDonald
2e2d640c4d Add comments to avoid confusion.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28390 72102866-910b-0410-8b05-ffd578937521
2009-07-11 14:02:00 +00:00
Richard Frith-MacDonald
30ed7e0612 fix for tcp/ip ports
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28363 72102866-910b-0410-8b05-ffd578937521
2009-06-19 20:19:55 +00:00
Richard Frith-MacDonald
80a1dc28ae Add explicit disclaimer
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28350 72102866-910b-0410-8b05-ffd578937521
2009-06-13 08:10:40 +00:00
Richard Frith-MacDonald
6304106753 fix error cleaning up a define
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28348 72102866-910b-0410-8b05-ffd578937521
2009-06-13 07:33:51 +00:00
Richard Frith-MacDonald
a17d3c29b0 update documentation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28256 72102866-910b-0410-8b05-ffd578937521
2009-04-27 18:48:32 +00:00
Richard Frith-MacDonald
9cc306b2e1 Add two previously unimplemented methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28252 72102866-910b-0410-8b05-ffd578937521
2009-04-27 08:16:06 +00:00
Richard Frith-MacDonald
d8ec9172f6 fix some errors in comments causing documentation generation problems
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28250 72102866-910b-0410-8b05-ffd578937521
2009-04-26 05:37:21 +00:00
Richard Frith-MacDonald
bd5437b24a Apply fix for bug #26244 by Fred Morcos
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28245 72102866-910b-0410-8b05-ffd578937521
2009-04-24 08:13:52 +00:00
Richard Frith-MacDonald
4f5344d2c2 minor performance tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28237 72102866-910b-0410-8b05-ffd578937521
2009-04-20 08:18:11 +00:00
Richard Frith-MacDonald
067a687974 zeroing weak key fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28236 72102866-910b-0410-8b05-ffd578937521
2009-04-19 13:56:29 +00:00
Richard Frith-MacDonald
807d1b8a65 gc improvements
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28234 72102866-910b-0410-8b05-ffd578937521
2009-04-19 10:03:18 +00:00
Richard Frith-MacDonald
92c3166df3 more GC updates
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28223 72102866-910b-0410-8b05-ffd578937521
2009-04-16 09:07:13 +00:00
Richard Frith-MacDonald
79b93a4901 more GC improvements
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28220 72102866-910b-0410-8b05-ffd578937521
2009-04-15 08:03:19 +00:00
Richard Frith-MacDonald
9db45a6d7e Remove unused private method pointed out by David Chisnall
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28161 72102866-910b-0410-8b05-ffd578937521
2009-03-31 16:04:29 +00:00
Richard Frith-MacDonald
c6937301b8 Cleanups suggested/provided by David Chisnall
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28160 72102866-910b-0410-8b05-ffd578937521
2009-03-31 15:49:42 +00:00
Richard Frith-MacDonald
3452a47317 Fix error handling UNC path
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28145 72102866-910b-0410-8b05-ffd578937521
2009-03-29 07:32:11 +00:00
Richard Frith-MacDonald
3cfdb02718 try using sigsetjmp
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28111 72102866-910b-0410-8b05-ffd578937521
2009-03-21 15:31:52 +00:00
Richard Frith-MacDonald
971de91d62 Implement OSX10.5 NSMapTable API
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28086 72102866-910b-0410-8b05-ffd578937521
2009-03-16 10:54:59 +00:00
Richard Frith-MacDonald
8afbc2fcb7 GC bugfixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28062 72102866-910b-0410-8b05-ffd578937521
2009-03-10 11:30:16 +00:00
Richard Frith-MacDonald
bc9468c45f More moves towards OSX 10.5 GC compatibility.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28054 72102866-910b-0410-8b05-ffd578937521
2009-03-09 15:11:51 +00:00
Richard Frith-MacDonald
0d9c36063c revert
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28029 72102866-910b-0410-8b05-ffd578937521
2009-03-03 19:59:58 +00:00
Richard Frith-MacDonald
22d4b3470d Extension to support SOAP by allowing us to get status 500 responses
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28028 72102866-910b-0410-8b05-ffd578937521
2009-03-03 19:45:40 +00:00
Richard Frith-MacDonald
24d43481a8 Updates for 10.5 API changes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27962 72102866-910b-0410-8b05-ffd578937521
2009-02-23 20:42:32 +00:00
Richard Frith-MacDonald
1be05b5cd7 dd option of doing fuzzy equality tests.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27958 72102866-910b-0410-8b05-ffd578937521
2009-02-23 08:57:49 +00:00
Richard Frith-MacDonald
1db6e01877 Apply some optimisation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27950 72102866-910b-0410-8b05-ffd578937521
2009-02-22 20:01:53 +00:00
Richard Frith-MacDonald
1ccdbc638c Portability fixes for 64bit intel.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27930 72102866-910b-0410-8b05-ffd578937521
2009-02-20 17:44:58 +00:00
Adam Fedor
b5d16a6f3b Correct sense of test
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27901 72102866-910b-0410-8b05-ffd578937521
2009-02-17 15:36:30 +00:00
Adam Fedor
70c32cba13 Additional definitions to compile with apple-apple-apple
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27892 72102866-910b-0410-8b05-ffd578937521
2009-02-16 23:04:30 +00:00
Richard Frith-MacDonald
17136fe4d0 warn if gnustep-config was not found.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27877 72102866-910b-0410-8b05-ffd578937521
2009-02-16 06:46:55 +00:00
Richard Frith-MacDonald
d2fa82f877 MacOS-X compatibility fix for GC
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27845 72102866-910b-0410-8b05-ffd578937521
2009-02-11 10:11:33 +00:00
Xavier Glattard
b3da05d398 Add missing set filtering functionality
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27833 72102866-910b-0410-8b05-ffd578937521
2009-02-10 14:43:34 +00:00
Richard Frith-MacDonald
ec501bcde4 Attempt to fix thread registration for GC (bug #25541)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27829 72102866-910b-0410-8b05-ffd578937521
2009-02-10 12:16:40 +00:00
Fred Kiefer
0558cd18a7 Patch by Matt Rice to remove variable called class from header.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27825 72102866-910b-0410-8b05-ffd578937521
2009-02-09 16:49:23 +00:00
Richard Frith-MacDonald
910deff1a6 Add skeletal NSXML work as requested.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27824 72102866-910b-0410-8b05-ffd578937521
2009-02-09 16:16:11 +00:00
Richard Frith-MacDonald
5e132b3cf7 more GC fixed
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27788 72102866-910b-0410-8b05-ffd578937521
2009-02-04 21:26:43 +00:00
Richard Frith-MacDonald
0e2e58bf87 simplify GC ... don't need to add new zone
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27783 72102866-910b-0410-8b05-ffd578937521
2009-02-04 16:45:10 +00:00
Richard Frith-MacDonald
2635abce6c improve comment
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27765 72102866-910b-0410-8b05-ffd578937521
2009-02-03 15:43:16 +00:00
Richard Frith-MacDonald
afb0f171c7 Add fast enumeration
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27711 72102866-910b-0410-8b05-ffd578937521
2009-01-28 12:03:41 +00:00
Riccardo Mottola
171ce33276 Fix return pointer type
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27662 72102866-910b-0410-8b05-ffd578937521
2009-01-23 22:32:47 +00:00
Richard Frith-MacDonald
b502a17d9a add NSPointerArray
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27660 72102866-910b-0410-8b05-ffd578937521
2009-01-23 17:49:37 +00:00
Richard Frith-MacDonald
109062def9 fix and simplify last change£
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27659 72102866-910b-0410-8b05-ffd578937521
2009-01-23 16:10:39 +00:00
Richard Frith-MacDonald
feb04b60e0 tweak for typed memory use
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27658 72102866-910b-0410-8b05-ffd578937521
2009-01-23 11:45:20 +00:00
Richard Frith-MacDonald
15c7d8222f Tiny performance optimisation for most cases.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27657 72102866-910b-0410-8b05-ffd578937521
2009-01-23 06:04:25 +00:00
Richard Frith-MacDonald
8ed48908cd NSPointerFunctions added
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27655 72102866-910b-0410-8b05-ffd578937521
2009-01-22 18:43:47 +00:00
Richard Frith-MacDonald
94296c4747 implement -drain
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27654 72102866-910b-0410-8b05-ffd578937521
2009-01-22 15:59:06 +00:00
Richard Frith-MacDonald
39b3249632 complete NSGarbageCollector class
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27653 72102866-910b-0410-8b05-ffd578937521
2009-01-22 15:47:10 +00:00
Richard Frith-MacDonald
86c18013e5 fix #23570
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27645 72102866-910b-0410-8b05-ffd578937521
2009-01-21 06:39:39 +00:00
Richard Frith-MacDonald
399e2f9b38 finalize KV observations
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27639 72102866-910b-0410-8b05-ffd578937521
2009-01-20 11:41:41 +00:00
Richard Frith-MacDonald
e82bd33ab1 garbage collecting fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27638 72102866-910b-0410-8b05-ffd578937521
2009-01-20 10:15:52 +00:00
Richard Frith-MacDonald
6bccff5fc7 GC changes for MacOS-X compatiblity
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27630 72102866-910b-0410-8b05-ffd578937521
2009-01-19 11:00:33 +00:00
Richard Frith-MacDonald
d8f2b6b369 various gc change tidyups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27598 72102866-910b-0410-8b05-ffd578937521
2009-01-14 08:26:16 +00:00
Richard Frith-MacDonald
940de12cab More garbage collection updates/fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27590 72102866-910b-0410-8b05-ffd578937521
2009-01-13 15:57:38 +00:00
Richard Frith-MacDonald
67c379bc7a Add new class from macos-x
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27585 72102866-910b-0410-8b05-ffd578937521
2009-01-12 21:35:51 +00:00
Richard Frith-MacDonald
b830b55dee Change finalization to match MacOS-X
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27581 72102866-910b-0410-8b05-ffd578937521
2009-01-12 18:36:37 +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
Richard Frith-MacDonald
7255d33baf Update and fix for bug #25004
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27257 72102866-910b-0410-8b05-ffd578937521
2008-12-08 09:08:05 +00:00
Richard Frith-MacDonald
0f3f832de3 Fix keepalive bugs
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27249 72102866-910b-0410-8b05-ffd578937521
2008-12-07 16:03:29 +00:00
Richard Frith-MacDonald
c4fdb736f6 Minor cleanup/reorganisation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27240 72102866-910b-0410-8b05-ffd578937521
2008-12-07 06:02:02 +00:00
Richard Frith-MacDonald
b694892d87 Revert last change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27234 72102866-910b-0410-8b05-ffd578937521
2008-12-06 23:03:04 +00:00
Richard Frith-MacDonald
765370413a Fixup declaration
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27226 72102866-910b-0410-8b05-ffd578937521
2008-12-06 16:26:57 +00:00
Richard Frith-MacDonald
d1c53ea985 iImprove last change
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27224 72102866-910b-0410-8b05-ffd578937521
2008-12-06 15:27:49 +00:00
Richard Frith-MacDonald
8958eeea90 New convenience method in additions library
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27223 72102866-910b-0410-8b05-ffd578937521
2008-12-06 15:08:07 +00:00
Richard Frith-MacDonald
1674ac3746 Attempt fix for bug #24978
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27183 72102866-910b-0410-8b05-ffd578937521
2008-12-01 18:38:58 +00:00
Richard Frith-MacDonald
74f4c00f53 Add uncaught exception handler for native objc exceptions
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27168 72102866-910b-0410-8b05-ffd578937521
2008-11-28 15:38:48 +00:00
Gregory John Casamento
42ce7ccd01 * Headers/Additions/GNUstepBase/GSVersionMacros.h: Add
defines for earlier version of Mac OS X back to 10.0.
	* Source/synchronization.m: Correct a problem found during testing.
	* Testing/synctest/main.m: Updated test.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27136 72102866-910b-0410-8b05-ffd578937521
2008-11-26 15:06:06 +00:00
Richard Frith-MacDonald
b7b3ed920e Add ivar for expansion, remove a few lines unused code, add private keepalive.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27105 72102866-910b-0410-8b05-ffd578937521
2008-11-21 08:02:41 +00:00
Richard Frith-MacDonald
1d36408eea Update fgor MacOS compatibility
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27099 72102866-910b-0410-8b05-ffd578937521
2008-11-20 00:11:22 +00:00
Richard Frith-MacDonald
8d24f343e8 Fixups for a few problems in gnutls support with https over
NSURLConnection/NSURLProtocol


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27092 72102866-910b-0410-8b05-ffd578937521
2008-11-19 10:07:50 +00:00
Richard Frith-MacDonald
163e242a10 Add bsd implementations ... need testing to see if they compile/work
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27036 72102866-910b-0410-8b05-ffd578937521
2008-11-13 14:28:56 +00:00
Richard Frith-MacDonald
54f80c3b76 revert last change, instead set define to say we support win2000 and up
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27035 72102866-910b-0410-8b05-ffd578937521
2008-11-13 13:55:21 +00:00
Richard Frith-MacDonald
b3207e1550 implement latest OSX changes to NSProcessInfo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27032 72102866-910b-0410-8b05-ffd578937521
2008-11-13 10:09:50 +00:00
Richard Frith-MacDonald
2e24f46790 Clarify docs a little
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27019 72102866-910b-0410-8b05-ffd578937521
2008-11-09 10:11:18 +00:00
Richard Frith-MacDonald
c2bd907c9f Fix potential memory leak when an exception is raised
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26996 72102866-910b-0410-8b05-ffd578937521
2008-10-31 10:57:59 +00:00
Richard Frith-MacDonald
907b7bfcd8 Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26995 72102866-910b-0410-8b05-ffd578937521
2008-10-31 10:54:09 +00:00
Richard Frith-MacDonald
abee49fd42 Fixup for growing array to fixed size
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26994 72102866-910b-0410-8b05-ffd578937521
2008-10-31 10:47:08 +00:00
Nicola Pero
be8d677718 Fixed typo in header that would stop gnustep-gui from compiling
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26975 72102866-910b-0410-8b05-ffd578937521
2008-10-27 14:40:01 +00:00
Gregory John Casamento
8c7739da4e * Headers/Foundation/NSFileManager.h: Added declaration for new method
here.
	* Source/NSFileManager.m: Added implementation for the method 
	-(BOOL)createDirectoryAtPath:withIntermediateDirectories:attributes:
	error:.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26971 72102866-910b-0410-8b05-ffd578937521
2008-10-27 00:54:29 +00:00
Gregory John Casamento
3d16dda1a5 Add @synchronize support. The synchronize.m file will be committed to GCC as soon as Andrew P. looks at it and it is tested fully. I am committing it here for cases where the compiler can parse @synchronize, but doesn't have the necessary functions in the runtime.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26869 72102866-910b-0410-8b05-ffd578937521
2008-09-24 04:38:27 +00:00
Richard Frith-MacDonald
f6e6e34db6 Document -drain
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26828 72102866-910b-0410-8b05-ffd578937521
2008-09-01 19:22:02 +00:00
Gregory John Casamento
6c779e7f63 GPLv2 from GPLv3... remove copying file for GPLv3. Added methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26821 72102866-910b-0410-8b05-ffd578937521
2008-08-25 22:57:04 +00:00
Richard Frith-MacDonald
6984a82930 Try to ensure that ffi uses executable memory and doesn't segfault
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26723 72102866-910b-0410-8b05-ffd578937521
2008-06-28 05:13:47 +00:00
Richard Frith-MacDonald
924fcadb91 Updates for MacOS-X compatibility
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26690 72102866-910b-0410-8b05-ffd578937521
2008-06-23 07:15:10 +00:00
Richard Frith-MacDonald
3bbf4ce6d8 fix typo in comment
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26689 72102866-910b-0410-8b05-ffd578937521
2008-06-23 06:35:54 +00:00
Richard Frith-MacDonald
5d582fe696 Minor improvement to documentation for settign an exception handler
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26688 72102866-910b-0410-8b05-ffd578937521
2008-06-23 06:34:54 +00:00
Richard Frith-MacDonald
7506e0a37a Fixup cast
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26672 72102866-910b-0410-8b05-ffd578937521
2008-06-16 16:01:06 +00:00
Richard Frith-MacDonald
dd93513d0b Fix bug on some architectures.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26670 72102866-910b-0410-8b05-ffd578937521
2008-06-16 15:33:05 +00:00
Richard Frith-MacDonald
1c7c2890d0 add missing include
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26641 72102866-910b-0410-8b05-ffd578937521
2008-06-13 05:22:11 +00:00
Richard Frith-MacDonald
98b8957283 fix typo in macro name
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26623 72102866-910b-0410-8b05-ffd578937521
2008-06-10 18:20:23 +00:00
Richard Frith-MacDonald
0beeaa8945 Mostly deprectation changes, one possible obscure buffer overrun fix.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26621 72102866-910b-0410-8b05-ffd578937521
2008-06-10 11:17:13 +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
f5a87c292c Make method publioc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26450 72102866-910b-0410-8b05-ffd578937521
2008-04-17 07:53:46 +00:00
Richard Frith-MacDonald
c895d41e78 Some tidying up of macros.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26357 72102866-910b-0410-8b05-ffd578937521
2008-03-19 06:59:43 +00:00
Richard Frith-MacDonald
50a244c4c2 MacOS-X compatibility tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26345 72102866-910b-0410-8b05-ffd578937521
2008-03-18 13:55:46 +00:00
Richard Frith-MacDonald
f7fd0a7bec More thread changes for MacOS-X compatibility
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26340 72102866-910b-0410-8b05-ffd578937521
2008-03-18 05:45:05 +00:00
Richard Frith-MacDonald
5d8174ac84 Complete update of NSThread for MacOS-X 10.5 compatibility. Needs testing.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26332 72102866-910b-0410-8b05-ffd578937521
2008-03-17 15:23:11 +00:00
Richard Frith-MacDonald
a1063bfa3e Add exceptions for MacOS-X compatibility.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26325 72102866-910b-0410-8b05-ffd578937521
2008-03-17 05:45:55 +00:00
Matt Rice
3c69a9c73b * Source/NSException.m: Add NSObjectNotAvailableException.
* Headers/Foundation/NSException.h: Ditto.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26322 72102866-910b-0410-8b05-ffd578937521
2008-03-16 22:43:43 +00:00
Richard Frith-MacDonald
f5f2219ee7 Rewrite for MacOS-X compatibility fixes and enhancements plus some bugfixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26181 72102866-910b-0410-8b05-ffd578937521
2008-03-03 12:04:37 +00:00
Richard Frith-MacDonald
55e5eabfc9 Add runloop info pointer
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26180 72102866-910b-0410-8b05-ffd578937521
2008-03-03 08:31:10 +00:00
Richard Frith-MacDonald
f3ab133d03 Some MacOS panther additions
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26143 72102866-910b-0410-8b05-ffd578937521
2008-02-26 08:54:58 +00:00
Richard Frith-MacDonald
eecde45785 Some documentation corrections.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26115 72102866-910b-0410-8b05-ffd578937521
2008-02-21 15:12:28 +00:00
Richard Frith-MacDonald
a89f1a9e25 Attempt to work around header dependency problems on FreeBSD.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26112 72102866-910b-0410-8b05-ffd578937521
2008-02-20 12:40:49 +00:00
Richard Frith-MacDonald
726b05507e Minor tweaks plus added method for parsing mime headers.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26109 72102866-910b-0410-8b05-ffd578937521
2008-02-20 09:22:43 +00:00
Richard Frith-MacDonald
eb73c50d13 Tweaks to build under leopard
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26108 72102866-910b-0410-8b05-ffd578937521
2008-02-20 08:02:28 +00:00
Richard Frith-MacDonald
2a596c41c2 minor doc fixup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26086 72102866-910b-0410-8b05-ffd578937521
2008-02-18 10:24:41 +00:00
Richard Frith-MacDonald
6425664347 Some xml namespace handling fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@26002 72102866-910b-0410-8b05-ffd578937521
2008-01-26 08:34:58 +00:00
Nicola Pero
cedc0cb3e4 Updates for the fact that GNUSTEP_USER_DIR is obsolete/ignored in current gnustep-make/gnustep-base
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25941 72102866-910b-0410-8b05-ffd578937521
2008-01-14 10:39:21 +00:00
Richard Frith-MacDonald
1cdce22b47 Configuration system improvements.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25915 72102866-910b-0410-8b05-ffd578937521
2008-01-10 11:14:30 +00:00
Nicola Pero
5c6c74539f Added method to register namespaces with XPath
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25874 72102866-910b-0410-8b05-ffd578937521
2008-01-05 21:01:40 +00:00