Commit Graph

24 Commits

Author SHA1 Message Date
Sergey Bugaev
348fdf7813 Fix direct isa access 2017-12-17 16:11:05 +03:00
Christopher Lloyd
631462795d Reformat entire project using newer style 2015-05-23 20:15:45 -04:00
Christopher Lloyd
42ed272496 disable clang format in cases 2015-05-22 22:15:48 -04:00
Tilo Prütz
5cc5b7a4ef Use 'include' instead of 'import' on system headers.
When using 'import' for system headers on Linux with GCC 4.6.2 the header control macros do not work
as intended and therefore everything is messed up.
2012-01-13 12:27:09 +01:00
Tilo Prütz
e1a0b6eb79 removed some trailing whitespaces 2012-01-13 12:26:06 +01:00
Tilo Prütz
34ef634a5c [PATCH] Prepare compile CF+F under Linux/GCC4.6 without warnings
That is with:
CFLAGS += -Wall -Werror -std=gnu99 -Wno-unknown-pragmas -Wno-strict-aliasing -Wno-sequence-point

Improvements made:

- <process.h> does not exists in Linux
- some Windows special code was not wrapped into #ifdef WINDOWS
- corrected case in at least one import
- replaced nil by NULL or 0 when used for non-object pointers or numbers
- added missing imports
- removed/commented out unused variables
- added dummy usage for some needed variables (i.e. localException in NS_HANDLER)
- removed noop fprintf
- added casts if necessary
- initialized variables if necessary
- replaced *<variable>++ by *<variable> += 1 since the former returns a value wich was ignored
- surrounded assignments used as boolean expression by braces
- added missing return statements

N.B.: Since this commit does not contain any runtime related changes the result will not compile at
all with stock gcc under Linux :).
2012-01-10 09:47:53 +01:00
Christopher Lloyd
39fe18177f NSPredicate fixes 2010-10-20 11:06:44 -04:00
Christopher Lloyd
2fefe01644 - enable -Wreturn-type, -Wswitch, -Wmissing-braces, -Wparentheses, -Wunused-function, -Wunused-label for Foundation and AppKit Release configurations, and fixed all accompanying warnings.
- CFNetwork and CoreServices targets for Darwin and Linux i386
2010-03-23 15:02:22 +00:00
Christopher Lloyd
548ca541b0 More NS(U)Integer cleanup, more stdint conversion 2009-06-01 20:04:55 +00:00
Christopher Lloyd
e52ddce7e3 More NS(U)Integer conversion, missing va_end's 2009-05-21 15:44:14 +00:00
Christopher Lloyd
53acf47923 - mass change of unsigned/int to NSUInteger/NSInteger in Foundation and assorted type changes for 64-bit
- Added Darwin x86_64 Foundation/objc target for 64-bit compile testing
2009-05-19 17:14:03 +00:00
Christopher Lloyd
97a4048fb2 Updated towards Objective-C 2.0 runtime API and some decoupling of objc runtime from Foundation
- added 2.0 objc/runtime.h, message.h with most of the declarations
- added deprecated.h for deprecated declarations
- cleanup objc-class.h to use standard naming for structs
- moved FOUNDATION_EXPORT to NSObjCRuntime.h
- deleted ObjCTypes.h, ObjectiveC.h
- moved Object.h/Protocol.h to objc headers
- added method.m, ivar.m for method_ and ivar_ functions
- Changed all use of deprecated SELNAME to sel_getName
- Changed use of OBJCLog in Foundation to replacement NSCLog
- Changed most all the equivalent OBJC* names to 2.0 function names
- rename OBJCIsKindOfClass to NSObjectIsKindOfClass, move to NSObject.m
- removed empty OBJCReportStatistics, objc_lock.h
2009-04-07 00:17:26 +00:00
Johannes Fortmann
d2f2fdfec9 NSPredicate "contains" fixed
NSPopUpButton lastItem
lots of bindings fixes; bindings refactored
NSImage -lockFocusOnRepresentation with nil will fill in image data after creating cached rep
table view preparedCellAtColumn implemented; is now used to prepare cell
2009-02-09 20:32:41 +00:00
Christopher Lloyd
5e5ecbf249 - Issue #187 fix by chrismc828, NSComparisonPredicate typo, _left should be _right 2008-10-24 13:15:24 +00:00
Christopher Lloyd
812b0eb2ce - NSExpression_constant retains constant value instead of copy per correct behavior 2008-05-15 14:48:01 +00:00
Christopher Lloyd
d1f381cc6f - Issue #114 patch by steph...@sente.ch, fixes for compiler warnings 2008-05-15 14:00:27 +00:00
Christopher Lloyd
e5c2e1c5b5 - Issue 47 fix by Rolf Jansen, %f formatting bug fixes
- NSApplication*ActiveNotification's behavior implemented
- gcc 4.2.1 compiler warnings reduced
- First pass at PDF output, -[NSView dataWithPDFInsideRect:], and underlying NSPrintOperation, KGPDFContext and KGPDF* code functional but not complete (text, images and shadings not functional)
- Cleanup of KGContext,KGGraphicsState to be more general/abstract, moved KGRendering/DeviceContext into Win32
- NSCachedImageRep changed to use NSWindow instead of CGLayer
2007-10-15 18:08:57 +00:00
Christopher Lloyd
a286b26947 - Added Darwin-i386 and Darwin-ppc targets to Foundation and objc
- Added platform_darwin and appropriate classes
- Reduced compiler warnings for the Linux, Solaris, Darwin targets.
2007-07-05 19:06:44 +00:00
Christopher Lloyd
4c3a9a4a70 - Issue #28 fix by Rolf Jansen
- Issue #33 fix
- Dirk Theisen's NSIndexPath implementation added
- Dirk Theisen's NSThread and [NSColor colorWithAlphaComponent:] changes
-[NSObject methodForSelector:] and +[NSObject instanceMethodForSelector:] now return objc_msgForward instead of NULL if selector not present per behavior of Apple's Foundation but not documented (thanks to Mike Ash)
2007-06-18 16:22:20 +00:00
Christopher Lloyd
35d4c5b24f - Added Dirk Theisen's NSAssertionHandler.h
- First pass at functional NSIndexSet, NSMutableIndexSet
- Added hex identifiers in NSPredicate parser

- Roughed in NSSegmented*, NSSearchField*, NSLevelIndicatorCell*, NSAnimation, NSViewAnimation, NSTokenField*, NSTextTable*, NSTextBlock*

Implemented:
-[NSArray sortedArrayUsingDescriptors:]
-[NSMutableArray  replaceObjectsInRange:withObjectsFromArray:range:]
-[NSTask_win32 processIdentifier]
-[NSTextView firstRectForCharacterRange:]
-[NSView addSubview:positioned:relativeTo:]
2007-05-08 18:00:25 +00:00
Christopher Lloyd
edddfd8e94 - Issue #27, integrated cacaodev's NSComparisonPredicate changes (regex comparisons not added as we have no regex yet)
- NSPredicate scanner/parser completed
- Another pass at the NSExpression* and NS*Predicate classes

- added template for NSGlyphInfo, NSGlyphGenerator
- setters/getters in NSDatePicker, NSDatePickerCell implemented
- setters/getting for NSAlert implemented
-[NSString compare:options:range:] implemented
2007-04-29 13:45:20 +00:00
Christopher Lloyd
ab72409ef1 - Fixed issue #24, NSImage now retains self for NSCopying
- Fixed issue #25, %C should work now in NSString format strings
- Initial pass at issue #26, partial implementation of NSKeyedArchiver

- Initial pass at recursive descent parser for NSPredicate format strings.
- A few CoreFoundation headers added to Foundation
- NSConditionLock template added.
-[NSBundle objectForInfoDictionaryKey:] implemented
-[NSCharacterSet isSupersetOfSet:] implemented (poorly)
-[NSMutableData replaceBytesInRange:withBytes:length:] implemented
-[NSData dataWithBytesNoCopy:length:freeWhenDone:] implemented
-[NSString UTF8String] implemented
-[NSString stringByStandardizingPath] added by not implemented correctly
-[NSError localizedDescription] implemented
+[NSSet setWithObjects:count:] implemented
- AppKit/binders renamed AppKit/NSKeyValueBinding
- Initial pass at NSFontDescriptor added
-[NSView convertSize:to/fromView:] implemented
-[NSFont getAdvancements:forGlyphs:count:] implemented
-A few NSAnimation/NSViewAnimation definitions added
2007-04-22 18:58:47 +00:00
Christopher Lloyd
1ceab3e309 - Added Johannes Fortmann's NSNibBindingConnector, Binders.zip changes into AppKit/binders/ and KVO fixes
- Added Rolf Jansen's color and font panel nibs which fix layout issues with the new button frame adjustment

- Moved nib loading functionality to NSNib, NSNibLoading now uses NSNib
- Fixed NSFileHandle_posix.m not importing NSRaise.h
- NS*Controller header templates
- First pass at NSSortDescriptor
- Preliminary work on NSPredicate et al
2007-04-10 16:31:07 +00:00
Christopher Lloyd
578873e3cf Added templates for many missing classes, updated copyright for 2007, +[NSValue valueWithRange:],-[NSObject className] 2007-01-01 21:11:21 +00:00