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 |
|
Richard Frith-MacDonald
|
73f29ccde0
|
OSX compatibility improvements
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31909 72102866-910b-0410-8b05-ffd578937521
|
2011-01-18 12:07:21 +00:00 |
|
Richard Frith-MacDonald
|
7e79628495
|
Implement partial support for declarations.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31907 72102866-910b-0410-8b05-ffd578937521
|
2011-01-17 19:37:27 +00:00 |
|
Stefan Bidigaray
|
984fb84dd7
|
Add FIXME tag to -setMinimum: and -setMaximum:.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31886 72102866-910b-0410-8b05-ffd578937521
|
2011-01-13 00:34:14 +00:00 |
|
Stefan Bidigaray
|
c03d1096a6
|
Implmented a few more methods requiring ICU. Added code in -stringForObjectValue: to handle NSNumberFormatterBehavior10_4... need to test this code against OS X, I'm not sure I caught every case.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31885 72102866-910b-0410-8b05-ffd578937521
|
2011-01-13 00:29:30 +00:00 |
|
Stefan Bidigaray
|
316bd160d7
|
Fix copy-and-paste error.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31880 72102866-910b-0410-8b05-ffd578937521
|
2011-01-12 00:14:11 +00:00 |
|
Stefan Bidigaray
|
8111e270df
|
Fixed decimal separator behavior in NSNumberFormatter... NSLocale tests requiring NSNumberFormatter should all work as expected, now.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31879 72102866-910b-0410-8b05-ffd578937521
|
2011-01-12 00:04:04 +00:00 |
|
Richard Frith-MacDonald
|
cc405b9ed6
|
condense separators at start of path.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31875 72102866-910b-0410-8b05-ffd578937521
|
2011-01-11 13:46:04 +00:00 |
|
Stefan Bidigaray
|
27bf149e78
|
Added a few more methods to NSNumberFormatter and implemented NSLocale code that required changes to NSNumberFormatter. NSLocale now passes all tests in the testsuite.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31863 72102866-910b-0410-8b05-ffd578937521
|
2011-01-09 21:16:20 +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
|
85149f6b35
|
Fixed bugs found by testsuite.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31861 72102866-910b-0410-8b05-ffd578937521
|
2011-01-09 15:54:49 +00:00 |
|