Commit Graph

27 Commits

Author SHA1 Message Date
Christopher Lloyd
bde9664ee2 fix leak in bindings 2010-10-28 22:15:05 -04:00
Christopher Lloyd
7b045dfb6b - Mike Shields' NSBox custom type implementation
- Onyx2D optimizations, faster blend, image resample, axial gradient
- NSBitmapImageRep now copies original CGImage lazily, memory leaks fixed
- Debug configurations
- NSDictionary optimizations
2010-05-11 11:28:47 -04:00
Christopher Lloyd
09f4876472 - variety of key value binding fixes
- merge CoreFoundation/project.pbxproj from mercury branch
- NSCachedImageRep drawInRect: fix
- NSThread fixes for performing selectors across threads
- NSCLog functions for internal logging, switch use of OBJCLog to NSCLog
- Protocol fixes
- mutex locking in objc_class.m
- mutex locking on the NSZombieObject table
- faster binary property list reader, use of CFUID
- use of CFUID in NSKeyedUnarchiver
- removed more svn:mergeinfo
2010-03-16 15:13:03 +00:00
Christopher Lloyd
cbeae71792 (fixes issue #499) constant NSString fixes by Sven Weidauer, NSPathCell/Control import fixes 2010-03-02 16:33:55 +00:00
Christopher Lloyd
9cf7fc36f2 Andy Balholm's NSCachingBinder changes 2009-08-05 20:08:31 +00:00
Christopher Lloyd
99f1e2d3c1 Andy Balholm's NSTextFieldBinder 2009-08-05 19:59:20 +00:00
Christopher Lloyd
a4aac1660a Andy Balholm's Continuously Updates Value bindng option 2009-07-19 16:06:35 +00:00
Christopher Lloyd
cec867e7b4 Andy Balholm's NSEditor and NSEditorRegistration patch 2009-07-19 16:02:29 +00:00
Christopher Lloyd
a73db3310f - split CoreGraphics out into it's own framework project. AppKit still embeds CoreGraphics but it is also built standalone on Foundation. (don't link against both)
- new experimental AppKit-MacOS-i386 target which sits on Apple's Foundation, ApplicationServices (not operational). Header&api usage fixes to clean this up.
- Redid NSBezierPath so it doesn't rely on private Cocotron CoreGraphics API.
- Change the NSRaise macros/functions to be inline so AppKit can just include it instead of depending on them in Foundation since they aren't present in OSX.
- split NSRaiseException() into it's own Foundation private header and removed use from AppKit.
- changed use of NSRangeEntries so AppKit can embed it on MacOS
- switched NSOutlineView use of NSInt*CallBacks to NSInteger*CallBacks
- added CGPDFContext and CGDataConsumer
2009-06-05 03:16:46 +00:00
Christopher Lloyd
0138291acf - NSEntityDescription fix for updated objc runtime
- Removed NSMethodSignature cache, not thread safe.
- Removed NSIndexPath cache, not thread safe.
- Moved NSPropertyListReader_vintage class caching into instance.
- Removed caching of page size in NSPageSize() for linux/solaris/darwin.
- objc cache entry initialization tweaks
- removed unused _selectorCount
- Moved NSBundle static _sharedLookInDirectoriesArray to per-instance
- Moved NSProcessInfo static _counter and _counterLock to per instance
- Uncommented NSClassDescription use of @synchronized as the compiler can handle it now.
- Remove _fontHolder from NSInterfacePartAttributedString
- declared some variables with static scope as static
2009-02-25 01:13:55 +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
Johannes Fortmann
3f1a57e96d - first take on NSDictionaryController
- bugfix in NSString+KVCAdditions
- NSOpenGLView initWithFrame:pixelFormat: calls super initWithFrame:
- NSBinder conditionallySetsEnabled checks for setEnabled: method, not setEditable:
- NSMultipleValueBinder catches exceptions during per-cell set
- NSNib tries to load nibs compiled from .xib file
2008-12-03 11:51:16 +00:00
Johannes Fortmann
aa1dbec7f6 some NSArrayController fixes: there's probably still a lot of stuff broken, but now addObject: should be a lot faster 2008-10-11 11:00:58 +00:00
Johannes Fortmann
94b3303d01 Some bindings refactoring:
- move common stuff from array controller to object controller
- move common stuff from KVO binder to vanilla binder
- replacement key path for values used
- binding thru NSObjectController now works
2008-09-15 17:19:52 +00:00
Christopher Lloyd
d1f381cc6f - Issue #114 patch by steph...@sente.ch, fixes for compiler warnings 2008-05-15 14:00:27 +00:00
Johannes Fortmann
532e5084c3 setProperty now releases old property
fix for c++ destructors in Linux
renamed instance variables in binder classes
2008-03-31 16:11:19 +00:00
Christopher Lloyd
d204ace317 - Issue #75, Johannes Fortmann's C++ constructor and bindings patch:
With this patch, the .cxx_construct and .cxx_destruct methods will be called on NSAllocateObject/NSDeallocateObject. Note that you'll have to run gcc with -fobjc-call-cxx-cdtors to have these methods created.
Additionally, there are some KVO and bindings fixes:
- observing a change inside a hierarchy would give the wrong object as being changed
- array operator @sum implemented
- NSArrayController selectedObjects now depends on selection
- some additional binding parameters implemented
2008-03-12 19:25:28 +00:00
Christopher Lloyd
fccad58544 - Rolf Jansen's fix for NSObject+BindingSupport.m crasher
- Win32SplashPanel.h/.m deleted
2007-11-21 21:04:43 +00:00
Christopher Lloyd
6ba570c3fc - Johannes Fortmann's Nov 8, 2007 patch and NSControllerSelectionProxy.h/.m for binding and controllers
- Rolf Jansen's fixes for r56 regression
2007-11-11 02:21:42 +00:00
Christopher Lloyd
fcda3ab7d9 - Large number of missing AppKit constant/methods added, most of the simpler ones implemented. Cleanup and instance size changes.
- Some existing implementation updated for new methods, primarily NSDocument
- Removed legacy keyed encoding/decoding functionality in AppKit
2007-11-08 15:58:54 +00:00
Christopher Lloyd
257c7d9c28 - Rolf Jansen's NSTableView patch from 05/09/2007
- Added Rolf Jansen's merge sort in NSMutableArray and NSMutableArray_concrete

+ Johannes Fortmann's patch from 05/22/2007:
- NSArrayController:
 - renamed instance variables
 - use arrangeObjects:, rearrangeObjects methods
 - implement addObject:, removeObject: and friends
 - implement newObject
- some more binding options
- NSTableView bindings corresponding to columns now being established
if missing
- NSAffineTransform rotating
- NSBezierPath addClip, setClip fix; changed unimplemented methods to
throw
- some decoding on NSNumberFormatter; NSCell uses formatter
2007-05-22 17:16:17 +00:00
Christopher Lloyd
4303498e18 + Johannes Fortmann's bindings patch:
- deep KVO is routed through public addObserver: function now, which
means that observing values on an array now throws the exception as it
should.
- NSArrayController now returns _NSObservableArray class, which allows
observing values on array objects. Observing operators is supported,
but will fire change notifications even though no change (i.e.
@max.value fires everytime a value changes, not only in case the
maximum changes)
- binding options are respected for a few values
- defaults for binding options can be specified on a per-class basis
through a plist
- multi-value bindings work (in an extremely limited way)
- binding a table column against an array not provided by the table's
NSArrayController works
- column bindings create suitable sort descriptor prototypes
- clicking a column header changes the table view's sort descriptors
2007-05-19 03:47:03 +00:00
Christopher Lloyd
cd3770ede4 + Johannes Fortmann's bindings patch:
- deep KVO is routed through public addObserver: function now, which
means that observing values on an array now throws the exception as it
should.
- NSArrayController now returns _NSObservableArray class, which allows
observing values on array objects. Observing operators is supported,
but will fire change notifications even though no change (i.e.
@max.value fires everytime a value changes, not only in case the
maximum changes)
- binding options are respected for a few values
- defaults for binding options can be specified on a per-class basis
through a plist
- multi-value bindings work (in an extremely limited way)
- binding a table column against an array not provided by the table's
NSArrayController works
- column bindings create suitable sort descriptor prototypes
- clicking a column header changes the table view's sort descriptors
2007-05-17 15:01:54 +00:00
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
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
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