Luboš Doležel
80f925978a
* Source/NSBundle.m:
...
* Headers/Foundation/NSBundle.h: add -resourceURL
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37602 72102866-910b-0410-8b05-ffd578937521
2014-01-14 14:13:31 +00:00
Richard Frith-MacDonald
5960e99013
move executable extensions code out to NSTask+GNUstepBase.m to avoid duplication
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37590 72102866-910b-0410-8b05-ffd578937521
2014-01-13 12:08:04 +00:00
Richard Frith-MacDonald
376afc9144
comment about path portability
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37577 72102866-910b-0410-8b05-ffd578937521
2014-01-12 06:34:57 +00:00
Richard Frith-MacDonald
cc4ee79a3e
alter NSDeveloperDirectory to give the path to the installed development system (the gnustep package on windows)
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37573 72102866-910b-0410-8b05-ffd578937521
2014-01-11 08:58:57 +00:00
Quentin Mathe
f89c8939a4
Fixed +[NSValueTransformer valueTransformerForName:] to automatically register
...
any available NSValueTransformer subclass that matches the given name and is
not yet registered. This behavior is described in the Cocoa API documentation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37565 72102866-910b-0410-8b05-ffd578937521
2014-01-09 10:21:55 +00:00
Richard Frith-MacDonald
99517dd9b1
move random data generation out to category for easier use
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37558 72102866-910b-0410-8b05-ffd578937521
2014-01-08 11:14:53 +00:00
Marcus Müller
83cf4ab39f
NSMetadataQueryDelegate uses new GS_PROTOCOLS_HAVE_OPTIONAL macro now (and
...
minor tweaks)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37528 72102866-910b-0410-8b05-ffd578937521
2013-12-31 13:14:11 +00:00
Marcus Müller
64d6268f40
several macros added to properly support protocols containing @optional
...
also on GCC >= 4.6
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37525 72102866-910b-0410-8b05-ffd578937521
2013-12-30 13:37:40 +00:00
Marcus Müller
6dd4f6fba1
NSNetServiceListenForConnections option implemented for GSAvahiNetService
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37521 72102866-910b-0410-8b05-ffd578937521
2013-12-26 23:16:36 +00:00
Marcus Müller
adc50bb90f
fixed typo in Headers/Foundation/NSStream.h which prevented formal
...
protocol specification to be picked up by clang
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37520 72102866-910b-0410-8b05-ffd578937521
2013-12-26 23:02:49 +00:00
Richard Frith-MacDonald
ee8b3b987c
fixes for task notification
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37484 72102866-910b-0410-8b05-ffd578937521
2013-12-20 13:32:29 +00:00
Richard Frith-MacDonald
263e81a85c
improve build on windows
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37483 72102866-910b-0410-8b05-ffd578937521
2013-12-20 13:28:45 +00:00
Richard Frith-MacDonald
1aeea18a33
tweaks to build on windows
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37482 72102866-910b-0410-8b05-ffd578937521
2013-12-20 12:51:52 +00:00
Richard Frith-MacDonald
9b99122b0f
iUUID for unix by leeg
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37480 72102866-910b-0410-8b05-ffd578937521
2013-12-20 12:26:22 +00:00
Richard Frith-MacDonald
65039c3531
changes from bug #40930
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37478 72102866-910b-0410-8b05-ffd578937521
2013-12-20 10:18:12 +00:00
Richard Frith-MacDonald
9fd1bf4218
fix from #40931
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37477 72102866-910b-0410-8b05-ffd578937521
2013-12-20 10:05:10 +00:00
Richard Frith-MacDonald
0805c455d0
compatibility tweak from #40925
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37476 72102866-910b-0410-8b05-ffd578937521
2013-12-20 10:01:16 +00:00
Fred Kiefer
32a9c4c1dd
* Headers/Foundation/NSArray.h,
...
* Source/NSArray.m: Move -setValue:forKey: from NSMutableArray
to NSArray.
Patch by Marcian Lytwyn <marcian.lytwyn@advcsi.com>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37464 72102866-910b-0410-8b05-ffd578937521
2013-12-13 21:01:22 +00:00
Quentin Mathe
52fa3a2c07
Changed keys argument type to (const id <NSCopying>[]) in
...
-[NSDictionary initWithObjects:forKeys:count:] and
+dictionaryWithObjects:forKeys:count:, to follow the current Cocoa API.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37431 72102866-910b-0410-8b05-ffd578937521
2013-12-05 13:16:36 +00:00
Riccardo Mottola
27bc2a3cf3
Insert some kludge for PTR stuff on systems with fake C99 compatible headers.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37419 72102866-910b-0410-8b05-ffd578937521
2013-11-29 17:42:44 +00:00
Riccardo Mottola
ce7b612350
include inttypes.h before undefining/defining
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37416 72102866-910b-0410-8b05-ffd578937521
2013-11-27 00:06:54 +00:00
Riccardo Mottola
7f332cc704
fix trivial error
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37415 72102866-910b-0410-8b05-ffd578937521
2013-11-26 23:22:49 +00:00
Riccardo Mottola
961344bc89
Detect broken PTR limits (notably solaris 8) and provide replacements
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37414 72102866-910b-0410-8b05-ffd578937521
2013-11-26 22:55:47 +00:00
Richard Frith-MacDonald
0e287d4440
Make ICU and other libraries used by base available for gui etc. Also fix for windows build
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37409 72102866-910b-0410-8b05-ffd578937521
2013-11-25 08:54:08 +00:00
Richard Frith-MacDonald
3e72da99e5
add -isoYear
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37377 72102866-910b-0410-8b05-ffd578937521
2013-11-18 15:19:23 +00:00
Richard Frith-MacDonald
ff8fb085de
remove solaris10 kludge
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37329 72102866-910b-0410-8b05-ffd578937521
2013-10-30 04:44:11 +00:00
Richard Frith-MacDonald
6b04d159b4
try to integerate Riccardo's inttypes patch
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37313 72102866-910b-0410-8b05-ffd578937521
2013-10-29 09:14:45 +00:00
Eric Wasylishen
f1cf2f888f
* Source/NSException.m:
...
* Headers/Foundation/NSThread.h: Add trivial implementation of
+[NSThread callStackSymbols] that uses GSStackTrace.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37249 72102866-910b-0410-8b05-ffd578937521
2013-10-18 02:00:54 +00:00
Fred Kiefer
bc968c5a9f
Add 10.6 class method dateWithTimeInterval:sinceDate:
...
Patch by Marcian Lytwyn <marcian.lytwyn@advcsi.com>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37230 72102866-910b-0410-8b05-ffd578937521
2013-10-14 22:30:33 +00:00
Richard Frith-MacDonald
3809634e47
Fix for bug #40047 by Larry Campbell
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37108 72102866-910b-0410-8b05-ffd578937521
2013-09-18 17:43:42 +00:00
Richard Frith-MacDonald
2e99b562d8
SSL/TLS certificate enhancements.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37103 72102866-910b-0410-8b05-ffd578937521
2013-09-18 12:49:07 +00:00
Richard Frith-MacDonald
6adc307bfa
another attempt to improve characterset detection
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37059 72102866-910b-0410-8b05-ffd578937521
2013-09-10 07:24:29 +00:00
Fred Kiefer
b7ea982477
* Headers/GNUstepBase/GSVersionMacros.h: Fix usage of __APPLE__ macro.
...
Patch by Graham Lee <iamleeg@gmail.com>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37028 72102866-910b-0410-8b05-ffd578937521
2013-08-30 20:24:08 +00:00
Luboš Doležel
8ea74f67d7
More fixes in GSBlocks.h
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36980 72102866-910b-0410-8b05-ffd578937521
2013-08-15 11:04:06 +00:00
Luboš Doležel
5302e0903c
Fixing GCC compile problem
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36977 72102866-910b-0410-8b05-ffd578937521
2013-08-15 07:09:09 +00:00
Luboš Doležel
13fd35dd29
Added missing GCC_VERSION macro declaration into GSBLocks.h
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36976 72102866-910b-0410-8b05-ffd578937521
2013-08-14 21:38:07 +00:00
Luboš Doležel
f932a9ddb4
* Headers/GNUstepBase/GSBlocks.h: Fixed the DEFINE_BLOCK_TYPE macro
...
for certain GCC versions
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36975 72102866-910b-0410-8b05-ffd578937521
2013-08-14 21:34:31 +00:00
Luboš Doležel
cac2ee2d7e
* Source/NSBundle.m: add NSBundle pathForAuxiliaryExecutable: and -privateFrameworksPath and their URL counterparts
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36973 72102866-910b-0410-8b05-ffd578937521
2013-08-14 21:10:35 +00:00
Richard Frith-MacDonald
e50bb2e496
added OSX convenience method
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36966 72102866-910b-0410-8b05-ffd578937521
2013-08-12 08:56:18 +00:00
Luboš Doležel
351c6d8b54
Added NSBundle executableURL and builtInPlugInsURL
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36959 72102866-910b-0410-8b05-ffd578937521
2013-08-10 13:31:46 +00:00
Luboš Doležel
c08c16568d
Added -[NSBundle bundleURL]
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36958 72102866-910b-0410-8b05-ffd578937521
2013-08-10 13:15:29 +00:00
Wolfgang Lux
15ebc62649
Fix definition of GS_OSX_ADJUST, which got things backward.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36874 72102866-910b-0410-8b05-ffd578937521
2013-07-11 22:03:17 +00:00
Richard Frith-MacDonald
498b8300c3
add new class from Graham Lee <iamleeg@gmail.com>
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36860 72102866-910b-0410-8b05-ffd578937521
2013-07-09 18:59:38 +00:00
Richard Frith-MacDonald
58ab45113f
re-add MAC_OS_X_VERSION_MAX_ALLOWED
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36857 72102866-910b-0410-8b05-ffd578937521
2013-07-09 04:35:54 +00:00
Fred Kiefer
64932aad00
Include objc.h otherwise __GNU_LIBOBJC__ isn't defined.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36838 72102866-910b-0410-8b05-ffd578937521
2013-07-05 13:55:10 +00:00
Richard Frith-MacDonald
4a39c51ca9
reverse logic in OSX test
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36833 72102866-910b-0410-8b05-ffd578937521
2013-07-04 06:30:35 +00:00
Richard Frith-MacDonald
f5818799fe
fix incorrect use of OSX specific versioning
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36832 72102866-910b-0410-8b05-ffd578937521
2013-07-04 06:29:06 +00:00
Richard Frith-MacDonald
5d9651ff89
document version macros for OSX
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36830 72102866-910b-0410-8b05-ffd578937521
2013-07-04 06:19:49 +00:00
Richard Frith-MacDonald
f3b8c69161
add missing API file and xcode project from Ibadinov Marat <ibadinov@me.com>
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36816 72102866-910b-0410-8b05-ffd578937521
2013-07-03 09:39:16 +00:00
Richard Frith-MacDonald
a517ff2804
fix typo
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36814 72102866-910b-0410-8b05-ffd578937521
2013-07-03 08:18:10 +00:00
Richard Frith-MacDonald
38ea0d2b27
Add new type encoding parser by Ibadinov Marat, modified to build on gnu/linux
...
without warnings, using gcc.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36813 72102866-910b-0410-8b05-ffd578937521
2013-07-03 07:55:48 +00:00
Richard Frith-MacDonald
b2d5fd280c
Changes for 64bit clean printf format strings.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36810 72102866-910b-0410-8b05-ffd578937521
2013-07-03 06:46:41 +00:00
Richard Frith-MacDonald
1a38078395
fix error in osx compatibility version macro ... just use MAX_ALLOWED if given.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36808 72102866-910b-0410-8b05-ffd578937521
2013-07-03 04:59:40 +00:00
Richard Frith-MacDonald
a2e1553dbe
Temporarily disable format for gcc
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36801 72102866-910b-0410-8b05-ffd578937521
2013-07-02 16:17:54 +00:00
Richard Frith-MacDonald
9a93be8534
add format checking to NSLog/NSException
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36800 72102866-910b-0410-8b05-ffd578937521
2013-07-02 15:53:46 +00:00
Richard Frith-MacDonald
adb11a2b12
fix typo
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36784 72102866-910b-0410-8b05-ffd578937521
2013-07-01 08:12:22 +00:00
Richard Frith-MacDonald
d5b121c182
iversion correction by wolfgang
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36783 72102866-910b-0410-8b05-ffd578937521
2013-07-01 07:51:55 +00:00
Richard Frith-MacDonald
f6d743629f
update documentation generation for new versions.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36782 72102866-910b-0410-8b05-ffd578937521
2013-07-01 07:46:48 +00:00
Richard Frith-MacDonald
19bec3c0c9
A few string methods and OSX version compatibility tweaks.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36781 72102866-910b-0410-8b05-ffd578937521
2013-07-01 07:08:55 +00:00
Luboš Doležel
d29e2005e9
Fixing a compile issue
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36736 72102866-910b-0410-8b05-ffd578937521
2013-06-21 07:33:58 +00:00
Luboš Doležel
26c0b8b274
* Headers/GSBlocks.h: weakly import _Block_copy and _Block_release
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36735 72102866-910b-0410-8b05-ffd578937521
2013-06-20 22:04:14 +00:00
Sebastian Reitenbach
3fafe05f0c
* Source/Additions/Unicode.m
...
Headers/Foundation/NSString.h
revert my change from 2013-05-29
breaks decoding of .gorm files in NSString for me on amd64
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36701 72102866-910b-0410-8b05-ffd578937521
2013-06-06 10:11:27 +00:00
Sebastian Reitenbach
5c58cc793a
* Headers/Foundation/NSString.h
...
make NSStringEncoding enum typdef to NSUInteger
* Source/Additions/Unicode.m
fix format string to print out NSStringEncoding
OK Richard
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36678 72102866-910b-0410-8b05-ffd578937521
2013-05-29 16:05:41 +00:00
Fred Kiefer
276d411340
* Tests/base/NSArchiver/stringEncoding.m: Use PASS_EQUAL instead
...
of PASS.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36617 72102866-910b-0410-8b05-ffd578937521
2013-05-13 20:55:37 +00:00
David Chisnall
c3a9c60b14
Fix GNUstep.h in ObjC++11 mode.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36600 72102866-910b-0410-8b05-ffd578937521
2013-05-08 09:50:52 +00:00
Richard Frith-MacDonald
8398b7e156
fixups to avoid future ABI breakage
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36538 72102866-910b-0410-8b05-ffd578937521
2013-04-15 09:07:19 +00:00
Richard Frith-MacDonald
53a553fb47
fix minor error in last NSData edit, some other minor issues,
...
and avoid more false positives.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36536 72102866-910b-0410-8b05-ffd578937521
2013-04-15 07:00:42 +00:00
Richard Frith-MacDonald
f371df09b6
more static analyser fixups
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36532 72102866-910b-0410-8b05-ffd578937521
2013-04-14 18:49:23 +00:00
Richard Frith-MacDonald
97cecc058e
tweaks to keep static analyzer happy
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36527 72102866-910b-0410-8b05-ffd578937521
2013-04-14 16:25:27 +00:00
Richard Frith-MacDonald
00b20340b4
NSInteger/NSUInter tweak plus improve documentation.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36516 72102866-910b-0410-8b05-ffd578937521
2013-04-13 09:10:01 +00:00
Richard Frith-MacDonald
1fc503029f
prepare documentation for release
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36443 72102866-910b-0410-8b05-ffd578937521
2013-03-28 08:10:03 +00:00
Richard Frith-MacDonald
9447e1d6d2
header version macro fix pointed out by lubos dolezel
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36441 72102866-910b-0410-8b05-ffd578937521
2013-03-26 22:36:24 +00:00
Richard Frith-MacDonald
d087429b96
restructuring and bugfixing
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36434 72102866-910b-0410-8b05-ffd578937521
2013-03-26 09:27:49 +00:00
Richard Frith-MacDonald
ec5d649b45
new methods supplied by Lubos Dolezel
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36391 72102866-910b-0410-8b05-ffd578937521
2013-03-20 17:37:16 +00:00
Richard Frith-MacDonald
50e7207673
fix bogus ifdef
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36386 72102866-910b-0410-8b05-ffd578937521
2013-03-20 08:16:38 +00:00
Richard Frith-MacDonald
ac3e413d7c
update/correct OSX versions of methods
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36385 72102866-910b-0410-8b05-ffd578937521
2013-03-20 07:21:15 +00:00
Richard Frith-MacDonald
7847a7dd4d
changes for build on Androd by Emmanuel Maillard
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36364 72102866-910b-0410-8b05-ffd578937521
2013-03-16 05:25:49 +00:00
Richard Frith-MacDonald
e15c981429
a few new methods
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36311 72102866-910b-0410-8b05-ffd578937521
2013-03-08 14:07:34 +00:00
Richard Frith-MacDonald
75f5788037
Apply patch by Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36272 72102866-910b-0410-8b05-ffd578937521
2013-03-05 12:27:20 +00:00
Richard Frith-MacDonald
c787ce0957
add gcc version checks for attribute macros
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36257 72102866-910b-0410-8b05-ffd578937521
2013-03-04 10:02:46 +00:00
Richard Frith-MacDonald
7ca6e56d39
prep for release
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36208 72102866-910b-0410-8b05-ffd578937521
2013-02-28 16:50:37 +00:00
Fred Kiefer
c34d31015d
* Headers/Foundation/NSDistributedNotificationCenter.h,
...
* Source/NSDistributedNotificationCenter.m: Correct the return
types of the factory methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35960 72102866-910b-0410-8b05-ffd578937521
2013-01-13 16:59:49 +00:00
Richard Frith-MacDonald
7dc7161748
fix range error in last substring creation change
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35940 72102866-910b-0410-8b05-ffd578937521
2013-01-08 21:59:38 +00:00
Gregory John Casamento
feb7c308aa
* Headers/Foundation/NSMetadata.h: Add _ to delegate.
...
* Source/GNUmakefile: Remove reference to NSMetadata.m
* Source/NSMetadata.m: Remove from here and add OS specific
implementations.
* Source/unix/GNUmakefile: Add new file...
* Source/unix/NSMetadata.m: UNIX implementation...
* Source/win32/GNUmakefile: Add new file..
* Source/win32/NSMetadata.m: Windows implementation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35932 72102866-910b-0410-8b05-ffd578937521
2013-01-05 05:50:21 +00:00
David Chisnall
18b53c8777
Calloc nodes in GSIMap instead of mallocing them. This ensures that their initial value is always zero and so can be released safely.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35924 72102866-910b-0410-8b05-ffd578937521
2012-12-27 12:42:56 +00:00
David Chisnall
69d4344a0a
Add methods from 10.8 for using zeroing weak references in collections.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35877 72102866-910b-0410-8b05-ffd578937521
2012-12-11 17:49:28 +00:00
Richard Frith-MacDonald
01dded102c
add methods to control line folding
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35826 72102866-910b-0410-8b05-ffd578937521
2012-11-27 16:13:25 +00:00
Gregory John Casamento
5e24b65085
* Headers/Foundation/NSMetadata.h
...
* Source/NSMetadata.m: Add NSMetadataQueryAttributeValueTuple and
NSMetadataQueryResultGroup classes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35820 72102866-910b-0410-8b05-ffd578937521
2012-11-25 19:40:10 +00:00
Gregory John Casamento
faf804b536
* Headers/Foundation/NSMetadata.h: Add ivars.
...
* Source/NSMetadata.m: Cleanup compilation error.
2012-11-20 12:50-EST Gregory John Casamento <greg.casamento@gmail.com>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35812 72102866-910b-0410-8b05-ffd578937521
2012-11-21 17:11:08 +00:00
Gregory John Casamento
7e905d5069
* Headers/Foundation/NSMetadata.h: Declaratioins for constants and
...
NSMetadataItem.
* Source/NSMetadata.m: Implementation of NSMetadataItem and definition
of constants.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35809 72102866-910b-0410-8b05-ffd578937521
2012-11-20 17:58:34 +00:00
Gregory John Casamento
97589d82d2
Correct compilation error
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35805 72102866-910b-0410-8b05-ffd578937521
2012-11-19 03:15:09 +00:00
Gregory John Casamento
65d3018c68
* Headers/Foundation/NSMetadataQuery.h: Remove old file.
...
* Source/GNUmakefile: Change name to NSMetadata.[hm].
* Source/NSMetadata.m: Add new file with correct name.
* Source/NSMetadataQuery.m: Remove old file.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35804 72102866-910b-0410-8b05-ffd578937521
2012-11-18 16:54:08 +00:00
Gregory John Casamento
f6656b4051
* Headers/Foundation/Foundation.h: Add NSMetadataQuery.h to
...
include list.
* Headers/Foundation/NSMetadataQuery.h: New header for class.
* Source/GNUmakefile: Add NSMetadataQuery.[hm] to makefile.
* Source/NSMetadataQuery.m: Abstract implementation for
NSMetdataQuery. The idea is much like NSFileStream and other
classes which have operating system specific implementations.
On linux this will, most likely, interface with locate/slocate.
I'm not certain what it will talk to on Win32.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35803 72102866-910b-0410-8b05-ffd578937521
2012-11-18 16:37:57 +00:00
Wolfgang Lux
c67e228f86
Use dedicated code for glibc specific variant of strerror_r based on
...
an autoconf test instead of trying to tweak feature test macros to use
the POSIX version.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35774 72102866-910b-0410-8b05-ffd578937521
2012-11-02 13:44:30 +00:00
Richard Frith-MacDonald
710f96dbb6
correct declared return type
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35765 72102866-910b-0410-8b05-ffd578937521
2012-10-30 14:05:12 +00:00
Richard Frith-MacDonald
45dc918955
fix rectangle intersection bug for empty rectangles
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35754 72102866-910b-0410-8b05-ffd578937521
2012-10-28 06:46:05 +00:00
Quentin Mathe
7c88cff675
Prevent redefinition warnings for ObjC++ related macros
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35738 72102866-910b-0410-8b05-ffd578937521
2012-10-25 14:37:12 +00:00
Richard Frith-MacDonald
8eb0bdb33c
Davie added objectsPassingTest:
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35731 72102866-910b-0410-8b05-ffd578937521
2012-10-22 04:38:47 +00:00
Richard Frith-MacDonald
9eb4770f5a
Remove stupid OSX compatibility hack ... no longer needed.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35692 72102866-910b-0410-8b05-ffd578937521
2012-10-15 14:37:31 +00:00
Richard Frith-MacDonald
e9d41fe2db
Fix logging for prettier display of class/method names.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35670 72102866-910b-0410-8b05-ffd578937521
2012-10-12 07:00:17 +00:00
Richard Frith-MacDonald
f4eb5e2726
More SSL/TLS options support
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35618 72102866-910b-0410-8b05-ffd578937521
2012-09-30 10:14:00 +00:00
Richard Frith-MacDonald
7771aba9e1
add priority settings.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35616 72102866-910b-0410-8b05-ffd578937521
2012-09-28 16:08:19 +00:00
Richard Frith-MacDonald
db9c84ff4e
more tls reorganisation
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35605 72102866-910b-0410-8b05-ffd578937521
2012-09-26 15:23:24 +00:00
Richard Frith-MacDonald
a7171ab9be
restructure for maintainability
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35598 72102866-910b-0410-8b05-ffd578937521
2012-09-24 09:07:55 +00:00
Richard Frith-MacDonald
2539f6207c
Extend use of gnutls to older APIs so we don't need both gnutls and openssl
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35595 72102866-910b-0410-8b05-ffd578937521
2012-09-23 12:26:28 +00:00
Niels Grewe
2927b474b5
Fix compilation with the non-fragile ABI and restore a line in
...
GSVersionMacros.h that seems to have been left commented out accidentally.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35594 72102866-910b-0410-8b05-ffd578937521
2012-09-23 08:29:17 +00:00
Richard Frith-MacDonald
55149fdc40
Memory management nad documentation fixes.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35584 72102866-910b-0410-8b05-ffd578937521
2012-09-21 10:27:05 +00:00
Richard Frith-MacDonald
a4140c8f51
Changes to restore sorting functiionality
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35579 72102866-910b-0410-8b05-ffd578937521
2012-09-20 09:32:00 +00:00
Niels Grewe
f8fd11f3fd
Completely overhaul how we do sorting in -base. GSSorting.h now defines an
...
interface that can be used for all sorting tasks in the library. The actual sort
algorithms to use are now plugable. Timsort is the new default sorting
algorithm, the existing algorithms, shellsort and quicksort, can still be
selected using a configure switch.
Also implement the new NSComparator (blocks) based sorting and insertion index
searching methods for NSMutableArray and NSArray.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35573 72102866-910b-0410-8b05-ffd578937521
2012-09-19 13:31:09 +00:00
Gregory John Casamento
e26964a166
* Headers/Foundation/Foundation.h
...
* Headers/Foundation/NSScriptWhoseTests.h
* Source/GNUmakefile
* Source/NSObject+NSComparisonMethods.m: Move the
comparison methods to the header for NSScriptWhoseTests.h,
but don't define the abstract class since we don't support
Apple script.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35570 72102866-910b-0410-8b05-ffd578937521
2012-09-17 16:05:06 +00:00
Richard Frith-MacDonald
4985cf3413
OSX compatibility tweaks inspiered by testplant
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35555 72102866-910b-0410-8b05-ffd578937521
2012-09-10 05:18:09 +00:00
Niels Grewe
ee4052bf6d
Compatibility improvements for QNX.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35451 72102866-910b-0410-8b05-ffd578937521
2012-08-26 08:55:49 +00:00
Niels Grewe
868d8a6922
Add support for logging to the QNX slog via NSLog().
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35450 72102866-910b-0410-8b05-ffd578937521
2012-08-25 23:55:51 +00:00
David Chisnall
98d6f0baa3
Define macros to expose things in C headers that we need (e.g. INTPTR_MAX) that aren't exposed by default when compiling Objective-C++.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35433 72102866-910b-0410-8b05-ffd578937521
2012-08-20 15:51:30 +00:00
Niels Grewe
383d5ccec2
Changes to support clang's __attribute__((objc_root_class)).
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35412 72102866-910b-0410-8b05-ffd578937521
2012-08-16 12:31:16 +00:00
David Chisnall
c257d44725
Remove spurious commas in enums.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35308 72102866-910b-0410-8b05-ffd578937521
2012-07-20 12:39:35 +00:00
David Chisnall
e447a91b60
If the user is compiling with a compiler in native exceptions mode, and they are not specifying the exception model, assume that they want the ones that their compiler will use.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35307 72102866-910b-0410-8b05-ffd578937521
2012-07-20 12:39:13 +00:00
Richard Frith-MacDonald
186f17482a
fix for bug #36824
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35283 72102866-910b-0410-8b05-ffd578937521
2012-07-11 04:51:42 +00:00
Richard Frith-MacDonald
224d210918
tweak comments
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35282 72102866-910b-0410-8b05-ffd578937521
2012-07-10 06:58:54 +00:00
Richard Frith-MacDonald
cd3225d8c9
fix for bug #36650
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35265 72102866-910b-0410-8b05-ffd578937521
2012-07-08 15:00:21 +00:00
David Chisnall
3cb1b08b26
Support for collection subscripting (NSArray and NSDictionary).
...
Yes, the syntax is ugly, but no doubt people will start using it in June...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35033 72102866-910b-0410-8b05-ffd578937521
2012-04-06 12:23:10 +00:00
David Chisnall
b1449b2cba
Ensure that the limits declarations that we use are actually exposed when compiling ObjC++.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35030 72102866-910b-0410-8b05-ffd578937521
2012-04-06 12:01:34 +00:00
Fred Kiefer
a490907e32
* Headers/Foundation/NSObject.h (-error:): Declare return type.
...
Patch by Benoît Garrigues <bgarrigues@gmail.com>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35013 72102866-910b-0410-8b05-ffd578937521
2012-03-27 21:47:10 +00:00
Niels Grewe
fa47f6da10
Detect the presence of libdispatch and, if available, use it for collection
...
enumeration methods that take blocks as arguments. This allows us to implement
the NSEnumerationConcurrent option of those methods with minimal effort.
The searching methods on NSIndexSet and all the sorting methods are still
missing.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35010 72102866-910b-0410-8b05-ffd578937521
2012-03-27 17:05:19 +00:00
Richard Frith-MacDonald
cd57095d65
get code to compile/link again
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35004 72102866-910b-0410-8b05-ffd578937521
2012-03-27 10:03:40 +00:00
Niels Grewe
abb5a4dd3e
Attempt to fix block definitions for blocks without arguments in GCC
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35003 72102866-910b-0410-8b05-ffd578937521
2012-03-27 09:30:12 +00:00
Niels Grewe
132de12a73
Add completion block support to NSOperation.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34996 72102866-910b-0410-8b05-ffd578937521
2012-03-26 14:47:07 +00:00
Richard Frith-MacDonald
c86e143298
tidy a little
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34981 72102866-910b-0410-8b05-ffd578937521
2012-03-22 20:58:27 +00:00
Niels Grewe
c6df5dc455
Implement a few blocks related enumeration methods on NSDictionary (with
...
unit tests).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34965 72102866-910b-0410-8b05-ffd578937521
2012-03-20 20:17:45 +00:00
Richard Frith-MacDonald
548e2ae5da
Fred says that his compiler treats #error differently ... tyr using double quotes to prevent problems.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34962 72102866-910b-0410-8b05-ffd578937521
2012-03-20 17:35:04 +00:00
Niels Grewe
0f6803451e
Define NS_REQUIRES_NIL_TERMINATION macro.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34960 72102866-910b-0410-8b05-ffd578937521
2012-03-20 16:28:59 +00:00
Richard Frith-MacDonald
4f81bfd607
Attempt at more helpful error message.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34959 72102866-910b-0410-8b05-ffd578937521
2012-03-20 15:09:42 +00:00
Richard Frith-MacDonald
6908b4724d
Use NSLog consistently for debug output
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34920 72102866-910b-0410-8b05-ffd578937521
2012-03-11 11:00:08 +00:00
Richard Frith-MacDonald
1a55779dd7
Apply patch by Jens Alfke with minor changes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34902 72102866-910b-0410-8b05-ffd578937521
2012-03-07 08:37:54 +00:00
Eric Wasylishen
89016e2e63
* Headers/Foundation/NSString.h (-compare:options:range:locale:):
...
Rename locale parameter from "dict" to "locale".
* Source/NSString.m (-compare:options:range:locale:): If locale
paramater is not nil and not an NSLocale instance, substitute
+[NSLocale currentLocale].
* Source/NSString.m: Clarify some locale related documentation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34882 72102866-910b-0410-8b05-ffd578937521
2012-03-06 02:08:47 +00:00
Richard Frith-MacDonald
a207342ff5
add some comments
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34862 72102866-910b-0410-8b05-ffd578937521
2012-03-02 09:09:15 +00:00
Richard Frith-MacDonald
fc0a0e782f
fixups for ICU changes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34858 72102866-910b-0410-8b05-ffd578937521
2012-03-02 07:31:47 +00:00
Eric Wasylishen
5393256ae6
* Source/NSString.m: Implement a codepath using ICU for
...
-compare:options:range:locale: and
-rangeOfString:options:range:locale: when a non-nil locale
is provided.
* Headers/Foundation/NSString.h (-compare:options:range:locale:):
Change type of locale parameter to id; it can be NSDictionary or
NSLocale.
* configure.ac: add some ICU headers used in NSString change
* configure: regenerate
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34856 72102866-910b-0410-8b05-ffd578937521
2012-03-02 06:53:16 +00:00
Richard Frith-MacDonald
26ffe755bb
Apply fixes for a couple of bug reports.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34855 72102866-910b-0410-8b05-ffd578937521
2012-03-01 19:39:20 +00:00
Eric Wasylishen
4db79e6fef
* Source/GSLocale.m:
...
- Deprecate GSSetLocale and GSSetLocaleC; they now do nothing
but print a warning.
- Introduce GSDefaultLanguageLocale(), which is a
substitute for GSSetLocale(LC_MESSAGES, nil), which just returns the
current setting of LC_MESSAGES.
* Source/NSObject.m (+initialize): Remove GSSetLocaleC call,
which was changing the libc locale.
* Source/NSUserDefaults.m: Use GSDefaultLanguageLocale() instead of
GSSetLocale(LC_MESSAGES, nil)
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34841 72102866-910b-0410-8b05-ffd578937521
2012-02-28 06:20:53 +00:00
Richard Frith-MacDonald
cd676ece36
moe consistent use of white space to match coding standard etc
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34809 72102866-910b-0410-8b05-ffd578937521
2012-02-23 17:57:50 +00:00
Richard Frith-MacDonald
e7d7505a8d
Fixup version
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34721 72102866-910b-0410-8b05-ffd578937521
2012-02-04 13:33:03 +00:00
Richard Frith-MacDonald
e7edb88bde
Comment about obsolete RETAIN/RELEASE/AUTORELEASE etc being deprecated
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34697 72102866-910b-0410-8b05-ffd578937521
2012-02-02 16:10:22 +00:00
Richard Frith-MacDonald
d3b4830a65
try to work round selinux restrictions on invocations
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34660 72102866-910b-0410-8b05-ffd578937521
2012-01-29 16:57:06 +00:00
David Chisnall
874875cc71
Tweak the exception mismatch handling so that if base is using native
...
exceptions and the user doesn't specify an exception mode then we just don't
define the NS_ macros, so code that uses @try etc. compiles without requiring
every cc line to specify a long -D flag just to be allowed to #import
Foundation.h.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34501 72102866-910b-0410-8b05-ffd578937521
2012-01-12 10:10:33 +00:00
Richard Frith-MacDonald
ff7ce0ea8e
tweak for older compilers
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34495 72102866-910b-0410-8b05-ffd578937521
2012-01-11 13:29:46 +00:00
Richard Frith-MacDonald
ee93c60ae5
Remove duplicated methods
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34494 72102866-910b-0410-8b05-ffd578937521
2012-01-11 09:19:16 +00:00
Richard Frith-MacDonald
5e74b70bff
Try to tidy/simplify objc2 header support.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34459 72102866-910b-0410-8b05-ffd578937521
2012-01-08 14:25:56 +00:00
Richard Frith-MacDonald
42f0192c2c
Rewrite hierarchy handling to match OSX
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34441 72102866-910b-0410-8b05-ffd578937521
2012-01-06 12:22:30 +00:00
Richard Frith-MacDonald
997222976b
Little tweak to ease debugging ... get compiler to know the class of the
...
_internal pointer and generate information so gdb can access the internal
cass without needing a cast.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34425 72102866-910b-0410-8b05-ffd578937521
2012-01-05 20:40:12 +00:00
Richard Frith-MacDonald
ded72b8e75
Fix NSXML ABI breakage
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34412 72102866-910b-0410-8b05-ffd578937521
2012-01-04 12:41:45 +00:00
Richard Frith-MacDonald
7b7faac752
Revert ABI breakage
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34410 72102866-910b-0410-8b05-ffd578937521
2012-01-04 09:20:32 +00:00
Fred Kiefer
cbf50c0e7e
Comment out duplicate declaration of ivars to get base to compile again.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34409 72102866-910b-0410-8b05-ffd578937521
2012-01-04 08:29:56 +00:00
Gregory John Casamento
6cbe121535
* Headers/Foundation/NSXMLDocument.h
...
* Headers/Foundation/NSXMLElement.h
* Headers/Foundation/NSXMLNode.h: Move declarations.
* Source/NSXMLDocument.m: Correct parsing issues.
* Source/NSXMLElement.m: Remove local declaration of _children
* Source/NSXMLNode.m: Remove internal. Move all declarations here
directly.
2012-01-03 14:22-EST Gregory John Casamento <greg.casamento@gmail.com>
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34408 72102866-910b-0410-8b05-ffd578937521
2012-01-03 21:42:33 +00:00
Gregory John Casamento
c7088ba09c
* Headers/Foundation/NSXMLElement.h
...
* Headers/Foundation/NSXMLNode.h
* Source/NSXMLElement.m
* Source/NSXMLNode.m: Move _URI to NSXMLNode.
change dealloc accordingly.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34406 72102866-910b-0410-8b05-ffd578937521
2012-01-03 18:10:45 +00:00
Gregory John Casamento
15fee4d787
* Headers/Foundation/NSXMLNode.h: Add _stringValue
...
* Source/NSXMLNode.m: Change stringValue and setStringValue:
resolvingEntities: to assign to _stringValue instead of _objectValue.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34404 72102866-910b-0410-8b05-ffd578937521
2012-01-03 17:23:44 +00:00
Gregory John Casamento
fa4435dec6
* Headers/Foundation/NSXMLElement.h: Change _attributes to be
...
a NSMutableDictionary instead of an NSMutableArray.
* Source/NSXMLElement.m: Change implementation of some methods
to use an NSMutableDictionary instead of arrays. Initialize
ivars in initializer.
* Source/NSXMLPrivate.h: Remove redundant method.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34394 72102866-910b-0410-8b05-ffd578937521
2012-01-03 03:28:25 +00:00
Fred Kiefer
24d2c077d6
Remove duplicate declaration of ivar _name to get base to compile again.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34377 72102866-910b-0410-8b05-ffd578937521
2012-01-01 17:06:00 +00:00
Gregory John Casamento
7b7b2a6f9d
First cut at NSXMLDocument changes.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34371 72102866-910b-0410-8b05-ffd578937521
2011-12-30 21:40:12 +00:00
Wolfgang Lux
3b65abba77
Implement NSTextCheckingResult -resultByAdjustingRangesWithOffset:
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34350 72102866-910b-0410-8b05-ffd578937521
2011-12-23 16:49:23 +00:00
Wolfgang Lux
4e79a89139
Various fixes in NSTextCheckingResult class.
...
Add copyright notice to header and implementation files.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34349 72102866-910b-0410-8b05-ffd578937521
2011-12-23 16:09:49 +00:00
Richard Frith-MacDonald
32fc733268
changes to support alternative header locations
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34290 72102866-910b-0410-8b05-ffd578937521
2011-12-15 09:42:39 +00:00
Richard Frith-MacDonald
016c110ec8
OSX compatibility tweaks ... NSNotFound defined as NSIntegerMax
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34289 72102866-910b-0410-8b05-ffd578937521
2011-12-15 09:09:59 +00:00
Eric Wasylishen
a54d3f2bdd
* Source/NSFileManager.m:
...
* Headers/Foundation/NSFileManager.h: Add removeItemAtPath:error:
method, as a simple wrapper around removeFileAtPath:handler: with
no handler.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34251 72102866-910b-0410-8b05-ffd578937521
2011-12-06 06:21:33 +00:00
Richard Frith-MacDonald
430a7eea99
Rewrite to store defaults in multiple files (one per persistent domain).
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34201 72102866-910b-0410-8b05-ffd578937521
2011-11-21 11:24:26 +00:00
Fred Kiefer
8bbb8d2ade
Make the new protocol optional for clang by protecting the definition
...
the same way as in NSNetServices.h
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34134 72102866-910b-0410-8b05-ffd578937521
2011-11-07 19:01:27 +00:00
Fred Kiefer
b39cd43a32
Turn the NSXMLParserDelegateEventAdditions informal protocol into the
...
protocol NSXMLParserDelegate.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34133 72102866-910b-0410-8b05-ffd578937521
2011-11-07 15:54:43 +00:00
Richard Frith-MacDonald
a59695c097
Implement optimisations suggested by Fred's vcachegrind profiling.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34093 72102866-910b-0410-8b05-ffd578937521
2011-10-31 08:12:26 +00:00
Richard Frith-MacDonald
704a39c91b
fixes for gnutls detection and objc library detection
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34030 72102866-910b-0410-8b05-ffd578937521
2011-10-19 16:53:39 +00:00
Richard Frith-MacDonald
37f430d9d9
tidyup private api
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34029 72102866-910b-0410-8b05-ffd578937521
2011-10-19 15:25:38 +00:00
Richard Frith-MacDonald
3569303331
documentation cleanups
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34015 72102866-910b-0410-8b05-ffd578937521
2011-10-17 10:59:02 +00:00
Quentin Mathe
32bdf04b26
Fixed NSXMLNode compilation when using the "pure" non-fragile ABI
...
(--disable-mixedabi was passed to Base configure).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34013 72102866-910b-0410-8b05-ffd578937521
2011-10-17 10:24:07 +00:00
Richard Frith-MacDonald
aae4782eb3
Make the use of nil for a file URL path raise an invalid argument exception
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33939 72102866-910b-0410-8b05-ffd578937521
2011-10-04 05:40:29 +00:00
Richard Frith-MacDonald
afc6974925
Provisional IPv6 support added.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33933 72102866-910b-0410-8b05-ffd578937521
2011-10-03 16:03:19 +00:00
Richard Frith-MacDonald
cbf54ac301
Add a few OSX compatibility methods
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33929 72102866-910b-0410-8b05-ffd578937521
2011-10-02 11:17:49 +00:00
Eric Wasylishen
7d457ce4cc
* Source/NSUserDefaults.m:
...
- Refactoring of the code to read the system language list
into a separate function, systemLanguages().
- Add support for the LANGUAGE environment variable, a GNU extension.
It holds a colon-separated list of locales, and is intended to let
the user specify a list of their preferred languages in order.
For example, the language settings GUI in Ubuntu modifies the
LANGUAGE variable.
More info here:
http://www.gnu.org/software/gettext/manual/gettext.html#The-LANGUAGE-variable
- When populating NSLanguages, "expand" locales into a list of
related variants, formed by stripping off region suffixes. This
ensures that if a user's environment is set to a regional version
of a language (say CanadaFrench) but an application is only
traslated into French, the plain French translation will still be used.
e.g. if the system locales are {fr_CA, en_CA}, expand the list to
{fr_CA, fr, en_CA, en}.
* Headers/GNUstepBase/GSLocale.h:
* Source/GSLocale.m:
New functions GSLocaleVariants and GSLanguagesFromLocale
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33910 72102866-910b-0410-8b05-ffd578937521
2011-09-29 19:00:46 +00:00
Richard Frith-MacDonald
35e02db554
tweaks for apple compiler
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33790 72102866-910b-0410-8b05-ffd578937521
2011-08-26 11:15:35 +00:00
Riccardo Mottola
ff93804152
Additional cast to void* to keep OpenBSD compiler happy.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33757 72102866-910b-0410-8b05-ffd578937521
2011-08-16 22:14:36 +00:00
David Chisnall
4cdea64975
Make -base compile almost without warnings again. Fixes:
...
- Using the correct format specifier
- Remove substringFromRange: (GNUstep extension) from NSString.h and use the non-deprecated version in -base.
- Delete definitions of methods that are the same in both a class and a category on that class (NSArray and NSObject).
Two files still have warnings:
- The GNUTLS stuff is using a load of deprecated APIs.
- xmlparse.m replaces a method using a category. This method seems to always return nil. Not sure what it's meant to do, or why it isn't a delegate of some kind.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33756 72102866-910b-0410-8b05-ffd578937521
2011-08-16 16:04:43 +00:00
David Chisnall
92f5b363ed
Remove a reference to a nonexistent header.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33699 72102866-910b-0410-8b05-ffd578937521
2011-08-07 08:24:59 +00:00
David Chisnall
fa6f119996
Clean up NSRegularExpression, so that it compiles without warnings with or without ICU, but we don't pretend that we support things that we don't and silently return nonsense results to make debugging difficult for GNUstep users.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33688 72102866-910b-0410-8b05-ffd578937521
2011-08-03 12:04:27 +00:00
Fred Kiefer
00c8832228
Remove some of the compiler warnings on system without clang or ICU.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33680 72102866-910b-0410-8b05-ffd578937521
2011-08-02 08:33:33 +00:00
David Chisnall
a5b1427e87
Add some out qualifiers to NSError** parameters, matching the OS X 10.7 API diffs. They seem to have missed a lot - this change should have been made on every NSError ** to stop ARC from using the complicated copy-and-writeback semantics, but only a small number of changes are documented. It's possible that this is just an error in the docs, so someone with 10.7 should check.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33668 72102866-910b-0410-8b05-ffd578937521
2011-07-31 19:12:01 +00:00
David Chisnall
dbe026608e
Ooops, should have been -> const id[].
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33667 72102866-910b-0410-8b05-ffd578937521
2011-07-31 18:37:12 +00:00
David Chisnall
8713e21d91
More ARC fixups: id* -> const id* in NSSet
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33666 72102866-910b-0410-8b05-ffd578937521
2011-07-31 18:34:40 +00:00
David Chisnall
aafdf366ea
Remove the duplicate definition of the NSObject protocol methods in the
...
NSObject class (redundant since they are implicitly added by the class adopting
the protocol, and stupid because there was already one copy-and-paste error
where they differed slightly). Also replaced all of the references to
nonexistent documentation with actual documentation.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33662 72102866-910b-0410-8b05-ffd578937521
2011-07-31 16:19:21 +00:00
David Chisnall
b85364de7e
Cleanup:
...
- (void)release;
to
- (oneway void)release;
so everything implementing -release actually implements the one declared in the NSObject protocol.
Start marking things that are unavailable in ARC mode as unavailable in ARC mode.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33660 72102866-910b-0410-8b05-ffd578937521
2011-07-31 15:31:39 +00:00
David Chisnall
12745b6fde
Don't export functions that use id if we're not in Objective-C mode. I'm not entirely sure what this gs_consume stuff does, since it's not documented, but it looks a lot like it might be nonsense - it's almost certainly broken in ARC mode, where this static inline function will be emitted as objc_release() and will free the object.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33652 72102866-910b-0410-8b05-ffd578937521
2011-07-27 18:03:22 +00:00
Quentin Mathe
9cb22639d9
Fixed missing oneway qualifier on -release return type.
...
Recent Clang trunk versions complain about it.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33634 72102866-910b-0410-8b05-ffd578937521
2011-07-26 10:47:16 +00:00
David Chisnall
c1cca9a336
Added NSJSONSerialization (10.7) implementation. The code path reading from an NSInputStream is not well tested - please try and break it!
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33631 72102866-910b-0410-8b05-ffd578937521
2011-07-25 15:50:51 +00:00
Fred Kiefer
716586a5cc
Fix small bug introduced when switching to Macros.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33627 72102866-910b-0410-8b05-ffd578937521
2011-07-25 10:58:38 +00:00
Fred Kiefer
254aa22792
Try to clean up after last commit.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33625 72102866-910b-0410-8b05-ffd578937521
2011-07-24 20:47:36 +00:00
David Chisnall
d2ea054c26
Lots of little fixes to make -base compile with -Werror (now builds without warnings).
...
Richard: I'm unsure about three of these, which were fixes in memset() calls in:
- NSConcreteMapTable.m
- NSConcreteHashTable.m
- Additions/NSData+GNUstepBase.m
Please can you check them? I think they are intended to zero the entire object
(rather than the first word), but the lack of comments makes me unsure.
Most changes were just tweaks to variable types. I've also removed some dead code from NSInvocation. This was small group of things that were marked for internal use only, but not actually referenced in the code anywhere.
Other improvements:
- NSArray / NSDictionary fixed up to use the 10.7 (ARC-friendly) prototypes.
- getObjects:andKeys: implemented for NSDictionary (10.5 method)
- NSPointerArray and NSHashTable now properly support weak objects.
- Tests for weak objects in collections.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33621 72102866-910b-0410-8b05-ffd578937521
2011-07-24 13:09:22 +00:00
David Chisnall
bc37adfb0c
Add support (and test) for weak keys and values in NSMapTable. This support should work in GC mode. It also works if the runtime supports ARC, even if the compiler does not use this support.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33617 72102866-910b-0410-8b05-ffd578937521
2011-07-23 16:16:01 +00:00
David Chisnall
3e3d12b661
Added read / write barrier support to GSIMap.h. These define macros for reading and writing keys and writing values.
...
These are currently unused - the next commit will make NSMapTable use them.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33612 72102866-910b-0410-8b05-ffd578937521
2011-07-23 13:14:20 +00:00
David Chisnall
d323a291d8
Change id* -> id[] for OS X 10.7 compatibility in NSArray. This change is required for ARC: now, id* means pointer to a single object, id[] means array.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33607 72102866-910b-0410-8b05-ffd578937521
2011-07-22 16:07:23 +00:00
David Chisnall
d9fda65728
Added NSRegularExpressionSearch (10.7) support to NSString.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33600 72102866-910b-0410-8b05-ffd578937521
2011-07-21 13:17:27 +00:00
Richard Frith-MacDonald
4a5cb96bef
For the avoidance of confusion, remove references to obsolete header.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33562 72102866-910b-0410-8b05-ffd578937521
2011-07-15 13:53:45 +00:00
Richard Frith-MacDonald
497cb2af93
ssh handshake improvements and consmetic tweaks
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33535 72102866-910b-0410-8b05-ffd578937521
2011-07-12 11:40:15 +00:00
Fred Kiefer
c0fac74ded
* Headers/GNUstepBase/GNUstep.h: Define the __has_feature macro,
...
as this file may be used without preface.h being included first.
Fixes bug #33708 . Patch by Tim Kack <timkack@gmail.com>.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33461 72102866-910b-0410-8b05-ffd578937521
2011-07-05 08:20:10 +00:00