Commit Graph

522 Commits

Author SHA1 Message Date
Christopher Lloyd
e346fd856b + Johannes Fortmann's patch:
- table view editing
- fine-grained bindings for table columns
- NSArray objectsAtIndexes:
- some fixes for KVO

+ Rolf Jansen's NSSortDescriptor initWithCoder/encodeWithCoder
+ Rolf Jansen's NSCell/NSButtonCell controlSize patch
2007-05-14 13:15:31 +00:00
Christopher Lloyd
c21384fbed - Added Rolf Jansen's [NSMutableArray sortUsingDescriptors:] implementation 2007-05-12 20:08:14 +00:00
Christopher Lloyd
f365a502da - NSGeometry.m, Rolf Jansen's NSIntegralRect, NSOffsetRect implementation
- cleaned up warnings
2007-05-12 16:17:43 +00:00
Christopher Lloyd
ccf3b51e72 Johannes Fortmann's KVC/KVO/KVB patch:
- KVC now works for methods prefixed with '_'
- KVC works properly on NSDictionary, NSArray
- KVO on NSArray throws; addObserver:toObjectsAtIndexes implemented
- NSArrayController arrangedObjects property; probably many bugs,
incomplete
- NSArrayController selection property; dito. set and get work; merges
values to NSMultipleValuesMarker etc.
- NSBinder now has support for a replacement key path. e.g. on a color
well, you bind against "value", but the corresponding key is named
"color". The method -(NSString*)_replacementKeyPathForBinding:
(NSString*)binding should return "color" in this case if "value" is
passed in.
- helper methods to get all used bindings; moved
_binderClassForBinding: to class scope
- _NSTableColumnBinder as supporting class for bindings of the form
column -> arrangedObjects.name
- _NSTableViewContentBinder as supporting class for bindings of the
form tableView.content -> arrangedObjects
- changes for NSTableView to use NSIndexSet for row selection
- changes for NSTableView to utilize the support classes instead of
its data source if applicable
- NSNull copyWithZone implemented
2007-05-11 12:49:23 +00:00
Christopher Lloyd
bedc7810fe - Fixed issue #29, indexGreaterThanIndex: not working.
- Implemented sel_isMapped()
2007-05-09 00:22:51 +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
d170ea9a3c - Fixed build warnings in NSTextView and KVO 2007-04-06 02:39:50 +00:00
Christopher Lloyd
1e6d2bb42a - Added Rolf Jansen's NSCell, NSButtonCell, NSButton patches for more button types and mixed state
- Implemented NSDisclosureBezelStyle in NSButtonCell in default theme

- Improved layout and more drawing with UxTheme

- Added Johannes Fortmann's KVO fixes from April 5th

- Fixed Linux/Unix header, linking and runtime problems reported by Anthony Beurivé
2007-04-06 01:43:26 +00:00
Christopher Lloyd
64055fe034 - Added Johannes Fortmann's KVC fixes and KVO implementation
- Cleaned up objc runtime/headers so that the differences between the KVO implementation for Cocotron vs. Apple runtime are a much smaller.

- Fixed issue 20 for pointer and non-retained object NSValue's.

- Fixed issue 19, NSSelectorFromString so that it registers unknown selectors

- Added Dirk Theisen's concrete NSDirectoryEnumerator and NSClassDescription implementation

- added more NSURL* methods.

- moved some control drawing into a new class NSGraphicsStyle which is responsible for control drawing in the current theme. NSGraphicsStyle implements the default theme and subclasses draw whatever look they want.

- preliminary support for the XP and above UxTheme API in the class NSGraphicsStyle_uxtheme, some controls will do native themed drawing now. Layout/highlighting is not perfect.
2007-04-02 14:40:36 +00:00
Christopher Lloyd
b83f6593fc - Dirk Theisen added NSFileType key to attributes dictionary returned by -[NSFileManager_win32 fileAttributesAtPath:traverseLink:]
- Added axial shaders via CGShading/CGFunction interface

- Added clipping to path

- Added ApplicationServices project for header compatibility if you use CoreGraphics

- Fixed problem with nib connections which do not have : at end

- Fixed problem with system images not appearing in check boxes loaded from nib
2007-03-23 21:20:59 +00:00
Christopher Lloyd
9d9ccbe544 - Renamed&Moved the NSXML* classes into NSPropertyList/NSOldXML*. These are being replaced by classes that adhere to the API documentation but are still needed to read plists while the new classes are being worked on.
- Added method starting points for NSXML*, NSOpenGL*, NSSegmented*, NSNib, NSURLRequest,NSURLResponse,NSURLConnection,NSURLAuthenticationChallenge,NSHTTPURLResponse,NSShadow,NSClassDescription

- Added blank starting points for NSIndexPath,NSValueTransformer,NSNetService*,NSDistributed*,NSDatePicker*,NSSortDescriptor,NSMetadata*,NSDecimal*

- Moved NSAffineTransform into Foundation/

- Changed KGImage_context into KGLayer
2007-03-19 02:52:21 +00:00
Christopher Lloyd
291d859a1e - Fixed case sensitivity on ObjC* #import's for case sensitive file systems submitted by halfactivist.
- CGWindow, NSCustomView, NSDrawer, NSWindow, NSWindowController, Win32Window fixes from Issues 10-17 submitted by Rolf Jansen.

- NSFileWrapper implementation submitted by Dirk Theisen.

- Added stubs to NSAssertionHandler, NSDirectoryEnumerator, NSFileManager for methods needed by NSFileWrapper addition.

- Added FlateDecode filter derived from a public domain implementation (not zlib) by Sean Barrett to the PDF system.

- Added ImageIO directory and starting point files.

- Added more starting point code in KoreGraphics and clean up in KG and Win32. Added KG(Mutable)Path.

- First pass at NSPDFImageRep hooks into underlying KG classes.
2007-03-11 19:28:02 +00:00
Christopher Lloyd
496f2b7ba1 NSKeyedUnarchiver - Rolf Jansen's fix for parsing scientific notation on floats
NSConnection subproject - added a lot of empty methods

Introduction of KoreGraphics (KG prefix) classes to the AppKit project. This is primarily a first pass at PDF parsing and rendering. It is not integrated with the rest of the AppKit, it is simply there and compiles.
2007-02-13 03:41:55 +00:00
Christopher Lloyd
333c7fba83 NSFileWrapper - Dirk Theisen has contributed an initial NSFileWrapper implementation. Thanks Dirk!
NSAssertionHandler - header added for NSFileWrapper

The various NSStream concrete classes have a first pass implementation: NSInputStream_socket, NSOutputStream_socket, NSInputStream_data, NSOutputStream_data , NSOutputStream_buffer, NSInputStream_file, NSOutputStream_file

The socket monitor/callback system has been overhauled to fix known problems going forward with socket based streams and distributed objects. This consists mainly of decoupling the select() management from the callback management allowing for accurate select() status across run loop mode changes and multiple callback monitors per socket. The major platform differences (windows vs. unix) were separated into their own files instead of the previous #ifdef mess. The NSInputSource system in the run loop was cleaned up to accommodate the new socket system and future additions.

These classes were deleted: NSSocketSet, NSSocketMonitorSet, NSSocketDescriptor, NSSocketMonitor, NSSocketMonitorSet_Windows, NSSocketInputSource_windows, NSSocketMonitorSet_Unix

And were replaced with: NSSocket, NSSocket_windows, NSSocket_bsd, NSSelectSet, NSSelectSet_windows, NSSelectSet_bsd , NSSelectInputSourceSet, NSSelectInputSource

NSTask and NSFileHandle on Linux/Solaris are affected by this as they were using the old socket monitoring system to look for background events and have been upgraded to the new one.

NSHandleMonitorSet_win32 upgraded with NSInputSource upgrade.

NSError - first pass implemented to assist with NSStream implementation.

-[NSMutableSet setSet:] - implemented

Cleared up some of the Linux/Solaris compiler warnings
2007-01-17 04:23:24 +00:00
Christopher Lloyd
d971345b27 First pass at key value coding from issues 6 and 7, addition of objc framework 2007-01-02 17:52: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
Christopher Lloyd
30916ff6e5 Original 2006-12-22 04:41:44 +00:00
Christopher Lloyd
675207edce Original 2006-12-22 00:49:22 +00:00
Christopher Lloyd
0706bdfd59 Initial directory structure. 2006-10-14 22:40:57 +00:00