Commit Graph

161 Commits

Author SHA1 Message Date
Johannes Fortmann
5a8fbcb491 This should fix issue 107.
The problem was that allocating a lock for objc_sync_enter would call NSPlatform currentPlatform for the lock class, which in turn
would try to get the thread dictionary, which would call sync_enter. Changed NSThread to use a traditional NSLock.
2008-05-14 17:34:15 +00:00
Christopher Lloyd
1ea7bc8547 - Issue #109 patch from steph...@sente.ch, NSStringFromPoint/Size/Rect(), NSPoint/Size/RectFromString()
- Issue #108 patch from steph...@sente.ch, NSAffineTransform fixes
2008-05-14 13:44:55 +00:00
Johannes Fortmann
d7813c6420 - replace @synchronized in _NSThreadSharedInstance with FIXME 2008-05-13 22:04:37 +00:00
Johannes Fortmann
04fd6ebef9 fix for locking-related crash on NSThread creation 2008-05-13 21:28:07 +00:00
Christopher Lloyd
e64bcd2609 - NSAlert implemented
- NSButton expanded to match doc.s, NSCell, NSButtonCell attributedTitle work
2008-05-13 18:43:48 +00:00
Johannes Fortmann
8de0df5a30 tests:
- NSRunloop performSelectorOnThread:...waitUntilDone:YES/NO
- KVO with old and new style dependencies
- NSMutableArray
2008-05-13 17:26:58 +00:00
Johannes Fortmann
adf903d705 assorted stuff:
- NSThread memory race fix
- trivial hash implemented for several classes
- NSSet setByAddingObjectsFromSet:, NSCountedSet isEqual:
- KVC optimizations, support for keyPathsForValuesAffectingValueForKey: and KVO notifications for subclasses of NSMutableDictionary
2008-05-13 17:23:00 +00:00
Johannes Fortmann
b406946eac NSArray corrections 2008-05-13 14:23:17 +00:00
Christopher Lloyd
8dade20c07 - Upgraded JPEG reader from stb_image.c 1.00 to 1.14, fixes bugs
- SWRender cleanup
2008-05-08 03:26:31 +00:00
Dr. Rolf Jansen
7d2f876400 fixes for warnings and errors when building the Debug configuration of the AppKit-Windows-i386 target. 2008-05-07 10:14:17 +00:00
Christopher Lloyd
3f5df7aa28 - SWRender, change all usage of Matrix3x3 to CGAffineTransform 2008-05-05 16:28:23 +00:00
Christopher Lloyd
2a5d96934b - SWRender, remove use of Vector3, change use of Vector2 to CGPoint, change use of RIfloat to CGFloat 2008-05-05 04:00:19 +00:00
Christopher Lloyd
e698157b7a - SWRender, Split KGPaint into specific subclasses, changed image drawing into KGPaint_image, merged KGRasterizer and KGPixelPipe int KGRasterizer, got rid of stray static variable in KGImageSource_JPEG. 2008-05-04 01:25:46 +00:00
Christopher Lloyd
51add64d47 - Added CGPDFDocument.h in ApplicationServices to repository 2008-05-01 18:52:43 +00:00
Johannes Fortmann
99623c9996 some more tests, not all of which pass yet. 2008-05-01 15:30:34 +00:00
Johannes Fortmann
d6ad504436 object enumeration implementation for NSSet, bugfix & optimization for NSArray 2008-05-01 15:18:26 +00:00
Christopher Lloyd
98306ebf1a - Issue #79,m John Engelhart's NSPlatform_darwin.m additions
- Cleaned up Linux/Darwin build warnings/errors
2008-05-01 14:34:20 +00:00
Christopher Lloyd
03800201c2 - Added CGPDFDocument.m to repository 2008-05-01 14:30:14 +00:00
Christopher Lloyd
a570c48944 - SWRender, added PDF draw test
- PDF drawing related cleanup
2008-05-01 03:39:59 +00:00
Christopher Lloyd
524349a088 - Issue #76 fix, implementation of -[NSHost name]
- Created CoreFoundation project and moved CF* headers into it
2008-05-01 03:29:21 +00:00
Christopher Lloyd
74767976e4 - Actually implemented the timestamp getter. 2008-05-01 00:12:01 +00:00
Christopher Lloyd
3b664ec3e7 - Issue #94 fixed. It uses the current time as opposed to the time since startup since the Windows API GetTickCount() for getting time since startup is not accurate and is only fixed in Vista with GetTickCount64(). 2008-04-30 19:03:52 +00:00
Christopher Lloyd
4a1cd93e74 - Issue #96-101 fixes by Cedric Luthi, missing NSImageView.h import, NSButtonCell drawInteriorWithFrame:inView:, NSMatrix addColumn, NSPopUpButtonCell setMenu:, NSTableView rectOfRow:, NSTabViewItem setLabel:
- Issue #88, NSOpenGLView now receives mouse events
2008-04-30 18:40:25 +00:00
Johannes Fortmann
78c737cd18 Fix for KVC memory leak; found by Dirk Theisen 2008-04-30 13:25:47 +00:00
Christopher Lloyd
2b7e272164 - Issue #88, partial fix, subclasses of NSOpenGLView will load as a custom view subclass and init properly. Mouse events not working yet. 2008-04-29 17:16:35 +00:00
Christopher Lloyd
4bf2a1687a - Issue 90, Dan Knapp's NSColor fix for new system colors present in an archive 2008-04-29 03:43:42 +00:00
Johannes Fortmann
aa7eae87c1 - KVO fix for @encode expressions with offsets
- NSMenu doesn't call setEnabled: if "enabled" is bound
2008-04-27 15:02:13 +00:00
Christopher Lloyd
fe6f4f2009 - Minimal C interface for CGImageSource.h added
- Contents of AppKit/ImageIO/ moved to AppKit/CoreGraphics.subproj/ for SWRender testing and easier sharing of classes
- CGImageSource usage added to SWRender
- Changed JPEG image source so it uses ivars instead of globals
- fixed/implemented some image/surface pixel formats
2008-04-25 19:07:18 +00:00
Christopher Lloyd
6569f1d255 - CoreDataExports.h added
- CGLayer, CGPattern C interface added
2008-04-24 01:45:29 +00:00
Christopher Lloyd
9ff4c636da - Forgot to actually svn add dllmain.m 2008-04-23 19:43:18 +00:00
Christopher Lloyd
401cc173ae - Added dllmain.m and proper framework search path to CoreData 2008-04-23 19:39:31 +00:00
Christopher Lloyd
645250f03d - Issue #84 fix in NSDocumentController, NSDocumentController was referring to a NSMenu's itemArray while the array was changing due to KVC & -[NSMenu _setItemArray:]
- Added NSIntegerMapKeyCallBacks
- Added variety of CGBitmapContext, CGImage, CGDataProvider, CGGeometry, CGPath, CGPattern, CGColor  C interfaces to the .h's in ApplicationServices and underlying implementation in AppKit.
- Consolidated KGPath/VGPath more. Consolidated KGImage/KGSurface(VGImage) more into read-only and read-write images.
- Moved some KG classes from SWRender to AppKit
- SWRender overhaul to use the whole KG interface (context,color,path,etc.) directly using the C CoreGraphics interface and a common test template for both CG and KG using the C interface.
2008-04-23 17:52:06 +00:00
Christopher Lloyd
bb911f3690 - Changed optimization level from -O3 to -Os in AppKit and Foundation for Windows targets due to problems encountered with -O3 and gcc 4.3.0. 2008-04-23 03:36:54 +00:00
Christopher Lloyd
d47c8154b6 - Fixed nib loading so it will work with .nib plain files 2008-04-22 18:02:21 +00:00
Johannes Fortmann
883037c847 Unit tests are back, this time without any BSD code.
NSDistributedNotificationCenter to have SenTestingKit compile cleanly
NSString stringByAppendingPathExtension won't build strings like SomeDir\.extension, making them SomeDir.extension instead to match Apple impl.
2008-04-18 13:27:16 +00:00
Christopher Lloyd
5aabd688f9 - Moved CG* headers to ApplicationServices and changed references in KG classes, this allows for building the KG classes on OSX from SWRender
- Cleanup of CG/KG classes, use CGGeometry instead of NSGeometry, fixed PathElement constant names
- SWRender, image resampling optimizations, added better basis for cubic curve tessellation
2008-04-17 16:59:58 +00:00
Johannes Fortmann
8c43dbb586 - removed SenTestingKit due to Google Code restrictions
- removed UnitTests due to missing SenTestingKit
2008-04-16 19:12:14 +00:00
Johannes Fortmann
8586e1c297 - testcases: properties, new style exceptions
- STAssertNil macro in SenTestKit
2008-04-16 18:59:37 +00:00
Johannes Fortmann
1787400c7d target for testing on darwin; undo typeof define in Foundation (it's a gnu99 construct) 2008-04-16 14:03:58 +00:00
Johannes Fortmann
13b8a1e170 Added unit testing system based on SenTestingKit. 2008-04-16 11:42:55 +00:00
Johannes Fortmann
6f0008345b Low-Level runtime fixes
- void* in NSGetSizeAndAlignment
- removed implementation of NSProxy +respondsToSelector
- some objc_ methods
- NSBundle executablePath and NSTask launchedTask
2008-04-16 11:12:40 +00:00
Johannes Fortmann
8c40b0c046 - license boilerplate fixes
- NSDelayedPerform, NSOrderedPerform wrap exceptions, retain arguments
- NSSavePanel beginSheetForDirectory: implemented. Running the panel is detached to another thread to preserve instant-return semantics of Apple AppKit; this is experimental.
- some other small stuff
2008-04-15 14:03:15 +00:00
Christopher Lloyd
1320c34588 - SWRender, small fill rate and resampling optimizations, removed tile reflect mode 2008-04-14 17:04:59 +00:00
Christopher Lloyd
d6fa1e1f91 - SWRender, fill rate improvements, migration towards CGImage API. 2008-04-12 03:50:37 +00:00
Christopher Lloyd
a287c303f1 - SWRender, more cleanup, implemented bicubic resampling, fill rate optimizations 2008-04-11 01:37:26 +00:00
Johannes Fortmann
081518cf21 fix for issue 78 2008-04-10 21:54:42 +00:00
Christopher Lloyd
44511579a1 - SWRender, more fill optimizations, added blending test, several blend formulas fixed and tested. 2008-04-07 20:07:41 +00:00
Johannes Fortmann
5d821940fd - now it actually works and is enabled. Really. 2008-04-07 12:38:59 +00:00
Johannes Fortmann
1da880ac2a - do not release lock in objc_sync_exit 2008-04-06 18:12:21 +00:00
Johannes Fortmann
89d714df1b - NSLock tryLock, lockBeforeDate: implementation for Windows
- that means @synchronized now works
- performSelector:onThread: and friends
- NSFastEnumeration is now located in NSEnumerator.h
2008-04-06 17:03:54 +00:00