David Chisnall
acf11e142d
Fix NSEnumerationReverse in the other place where this bug was pasted. I must have been asleep or drunk when I wrote this method.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32055 72102866-910b-0410-8b05-ffd578937521
2011-02-11 11:31:41 +00:00
David Chisnall
8c06de29c6
Fix [NSArray -indexesOfObjectsWithOptions:passingTest:] with NSEnumerationReverse option. Was doing forward iteration in all cases.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32054 72102866-910b-0410-8b05-ffd578937521
2011-02-11 11:29:34 +00:00
David Chisnall
887f25cb5b
Remove some redundant arithmetic (l - 0).
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32053 72102866-910b-0410-8b05-ffd578937521
2011-02-11 11:09:55 +00:00
David Chisnall
1e886a2b5a
Removed redundant code line spotted by analyser - looks like copy-and-paste bug from line 1192 (line 1200 was always replacing the value stored by 1199).
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32052 72102866-910b-0410-8b05-ffd578937521
2011-02-11 11:06:25 +00:00
Richard Frith-MacDonald
594a654252
NSZombie fixups
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32051 72102866-910b-0410-8b05-ffd578937521
2011-02-11 10:00:00 +00:00
Richard Frith-MacDonald
37f65fb873
fix bad commit
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32050 72102866-910b-0410-8b05-ffd578937521
2011-02-11 09:36:38 +00:00
Richard Frith-MacDonald
9eb046056c
tweaks for clang static analyser warningS
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32048 72102866-910b-0410-8b05-ffd578937521
2011-02-11 09:02:33 +00:00
Richard Frith-MacDonald
7deeb174a4
revert
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32047 72102866-910b-0410-8b05-ffd578937521
2011-02-11 07:22:23 +00:00
Stefan Bidigaray
360d24cda1
Avoid unnecessary memory copying.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32046 72102866-910b-0410-8b05-ffd578937521
2011-02-11 04:06:00 +00:00
David Chisnall
0239c9b9a5
Use NSClassFromString() to look up NSZombie class. This has two advantages:
...
1) Doesn't rely on Apple-incompatible behaviour in the GCC runtime that introduces fun heisenbugs.
2) Doesn't require constructing the dtable for NSZombie if we're not actually using it.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32039 72102866-910b-0410-8b05-ffd578937521
2011-02-10 18:53:48 +00:00
David Chisnall
0d28d838fd
Revert last commit. The actual Apple behaviour is what libobjc2 used to do, not what it does now. It's incredibly ugly, and should not have been allowed: It makes NSObject the superclass of NSObject's metaclass, but does NOT do the same transform for any other classes.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32038 72102866-910b-0410-8b05-ffd578937521
2011-02-10 18:40:18 +00:00
David Chisnall
a8cd2e588c
Make [NSObject -class] return self if self is a class. This is needed for a weird bit of the ObjC spec relating to metaclasses of root classes. The GNUstep runtime behaviour mimics the Apple behaviour, while the GCC runtime mimics the StepStone behaviour, so we get some somewhat irritating differences.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32037 72102866-910b-0410-8b05-ffd578937521
2011-02-10 18:33:26 +00:00
Richard Frith-MacDonald
be3a8ecc45
leak fixing
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32035 72102866-910b-0410-8b05-ffd578937521
2011-02-10 12:11:03 +00:00
Richard Frith-MacDonald
bc34d0505f
Minor cleanups.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32031 72102866-910b-0410-8b05-ffd578937521
2011-02-10 10:52:54 +00:00
David Chisnall
2edfea16be
Fix bug reported by static analyser - NSData was testing ivars instead of arguments in -initWithBytesNoCopy:length:freeWhenDone:. The correct behaviour was to throw an exception if passed a NULL pointer and a length. The actual behaviour was to test whether the data object was invalid. This could lead to accidental NULL-pointer dereferencing later.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32030 72102866-910b-0410-8b05-ffd578937521
2011-02-10 10:13: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
88e468e8bf
Implemented [NSTimeZone-localizedName:locale:].
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32025 72102866-910b-0410-8b05-ffd578937521
2011-02-10 02:20:57 +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
Richard Frith-MacDonald
bfd062d985
minor performance tweak when handling lots of performs on other threads.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32020 72102866-910b-0410-8b05-ffd578937521
2011-02-09 10:10:04 +00:00
Richard Frith-MacDonald
a28cbe7271
clarify comment
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32012 72102866-910b-0410-8b05-ffd578937521
2011-02-07 22:53:35 +00:00
Richard Frith-MacDonald
525371f50b
locale tweaks
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32006 72102866-910b-0410-8b05-ffd578937521
2011-02-07 17:21:00 +00:00
Richard Frith-MacDonald
fe3f6c7d60
minor osx compatibility tweak
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31999 72102866-910b-0410-8b05-ffd578937521
2011-02-04 22:46:08 +00:00
Richard Frith-MacDonald
8574a1d8de
apply patch to fix leaks.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31997 72102866-910b-0410-8b05-ffd578937521
2011-02-03 21:21:45 +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
Stefan Bidigaray
a234bad5f3
Implemented doesRelativeDateFormatting methods.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31994 72102866-910b-0410-8b05-ffd578937521
2011-02-03 02:15:16 +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
d136fc4986
Update autoupdatingCurrentCalendar whenever Locale, Time Zone and/or Calendar defaults change.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31977 72102866-910b-0410-8b05-ffd578937521
2011-01-29 18:49:21 +00:00
Richard Frith-MacDonald
883fd6211b
Fix bug positing notifications
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31976 72102866-910b-0410-8b05-ffd578937521
2011-01-29 16:15:46 +00:00
Quentin Mathe
33cea653e0
Fixed wrongly placed closing bracket. Should be outside of #if GS_USE_ICU == 1,
...
otherwise compilation fails without libicu installed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31973 72102866-910b-0410-8b05-ffd578937521
2011-01-29 15:35:22 +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
e652a5db92
Fixed errors found by test suite.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31967 72102866-910b-0410-8b05-ffd578937521
2011-01-29 02:01:42 +00:00
Stefan Bidigaray
ab8a264326
Added -isEqual: to NSCalendar.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31965 72102866-910b-0410-8b05-ffd578937521
2011-01-28 00:49:16 +00:00
Stefan Bidigaray
351e9eb29a
Make sure UCalendar is open before trying to use it.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31962 72102866-910b-0410-8b05-ffd578937521
2011-01-28 00:23:57 +00:00
Stefan Bidigaray
d80a4a55f2
Set some sensible defaults to NSNumberFormatter.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31960 72102866-910b-0410-8b05-ffd578937521
2011-01-27 23:29:41 +00:00
Stefan Bidigaray
3029c5982c
Add currency code when creating locale identifiers. And fix a crash in NSDateFormatter due to double release.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31956 72102866-910b-0410-8b05-ffd578937521
2011-01-27 00:37:52 +00:00
Stefan Bidigaray
807395c0a1
Minor memory management fixed to NSLocale.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31955 72102866-910b-0410-8b05-ffd578937521
2011-01-26 23:59:23 +00:00
Stefan Bidigaray
eb7fdf6c6d
Change behavior of -numberFromString: and -stringFromNumber: to match Apple documentation. These are 10.4 and above methods and should not work with 10.0 ones.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31949 72102866-910b-0410-8b05-ffd578937521
2011-01-25 02:25:32 +00:00
Stefan Bidigaray
c88f90f049
Check ICU presence in private function.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31946 72102866-910b-0410-8b05-ffd578937521
2011-01-24 23:49:46 +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
ffa1863308
Stop using OS_API_VERSION() in .m files.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31934 72102866-910b-0410-8b05-ffd578937521
2011-01-23 18:03:09 +00:00
Stefan Bidigaray
93bdb7cca2
Fixed initialization bug in NSDateFormatter and implement NSCalendar-components:fromDate:
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31933 72102866-910b-0410-8b05-ffd578937521
2011-01-23 17:10:21 +00:00
Stefan Bidigaray
e0418b2822
Minor memory management fix.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31932 72102866-910b-0410-8b05-ffd578937521
2011-01-23 15:53:02 +00:00
David Chisnall
f72329aa06
Some small fixes in NSNumberFormatter. Mostly stop using == to compare C strings.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31930 72102866-910b-0410-8b05-ffd578937521
2011-01-23 15:42:20 +00:00
Stefan Bidigaray
c38f0427f7
Added more code to NSDateFormatter.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31929 72102866-910b-0410-8b05-ffd578937521
2011-01-23 15:03:31 +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
4604c1f98c
Add GlobalDefaults directory support.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31922 72102866-910b-0410-8b05-ffd578937521
2011-01-21 15:19:40 +00:00
Richard Frith-MacDonald
882abe8e74
Fix error handling whitespace in xml
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31910 72102866-910b-0410-8b05-ffd578937521
2011-01-19 09:21:23 +00:00