Commit Graph

62 Commits

Author SHA1 Message Date
Sergey Bugaev
a66dd5efba NSInteger-ization & CGFloat/O2Float-ization
See https://github.com/darlinghq/darling/issues/418
2018-09-02 23:14:39 +03:00
Sergey Bugaev
348fdf7813 Fix direct isa access 2017-12-17 16:11:05 +03:00
Andrew Hyatt
1c81808e25 Create include directories 2017-08-07 23:33:12 -07:00
Christopher Lloyd
631462795d Reformat entire project using newer style 2015-05-23 20:15:45 -04:00
Robert Grant
d583f1a07a memory leak + best practice improvements 2013-11-11 09:19:46 -05:00
Airy ANDRE
2f7bd59f3f NSUserDefaultsController not properly built in initWithCoder: when not a NSSharedInstance 2013-10-24 20:55:35 +02:00
Airy ANDRE
b82d78c53d Fix defaults KVO (+ kill forced lowercase of first char of observed properties) 2013-06-21 15:34:07 +02:00
Airy ANDRE
c09030bd48 The shared NSUserDefaultsController should be retained in initWithCoder 2012-03-19 13:12:15 +01:00
Airy ANDRE
b3026a2231 NSArrayController selectionIndex should return NSNotFound when there is no selection 2012-02-20 20:01:22 +01:00
Airy ANDRE
137214854e More leaks and retain loops fixes 2012-02-13 16:46:27 +01:00
Robert Grant
09bd0ecef6 Make sure the selection proxy doesn't keep asking for selectedObjects while things are changing in the array controller 2011-11-17 18:01:41 -05:00
Robert Grant
806ca066b6 NSArrayController isn't reliably keeping arrangedObjects sync'd with content 2011-07-19 09:13:52 -04:00
Robert Grant
b08ddd752f NSControllerSelectionProxy isn't observing the selected objects and setValue:forUndefinedKey: isn't generated change notifications (and things are hard to debug in this area) 2011-07-11 09:24:52 -04:00
Airy ANDRE
796f5ec7d7 NSArrayController selection problems 2011-05-23 19:09:01 +02:00
Christopher Lloyd
f33bbc6d17 merge from ivucica-cocotron 2010-12-19 09:08:51 -05:00
Christopher Lloyd
bb52b16c47 OpenGLView fixes 2010-11-30 14:40:27 -05:00
Christopher Lloyd
57117efa74 minor NSController fixes for prior commit on NSController 2010-11-04 15:13:27 -04:00
Christopher Lloyd
b74462ef6c NSDictionaryController fixes, NSController fixes 2010-11-03 00:07:41 -04:00
Ivan Vučica
a5cb7579d6 NSArrayController previously did not declare several IBActions in its header, causing compile-time warnings 2010-09-21 20:46:13 +02:00
Mike Shields
e95ac5e170 Fixed shifting of selected indexes when removing an object. You don't want to shift the index removed, just those above it 2010-09-17 14:47:42 -04:00
Mike Shields
2bd44abf8f Committing all the changes made to get apps running with relatively good stability. 2010-08-30 15:51:14 -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
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
418c3a5bd9 assorted controller behavior fixes 2010-03-10 16:33:22 +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
fa90772cc6 Issue #341, enable -Werror-implicit-function-declaration and cleaned up missing prototypes 2009-08-06 19:27:34 +00:00
Christopher Lloyd
cec867e7b4 Andy Balholm's NSEditor and NSEditorRegistration patch 2009-07-19 16:02:29 +00:00
Christopher Lloyd
7f5929f310 - fixed warning in NSObservationProxy
- switching backing store type from DDB to 32bit r/g/b/a DIBSection
- added experimental, disabled, layered window code to Win32 and cleanup up some constants
2009-06-12 01:50:38 +00:00
Christopher Lloyd
30bc8be10c - Decoding of NIB external name table replacement, allObjects, and NSCustomObject substantially changed to use mostly public API and be compatible with Apple's Foundation. Custom object's are instantiated only after replacement is performed and only done if present in NSIBObjectData's NSNamesKeys (tests indicate they are always in this array).
- Type fixes on -[NSCoder/NSKeyedUnarchiver decodeBytesForKey:...]
- Foundation project fix for copied Info.plist
- added NSKeyedUnarchiver delegate protocol, partial implemented. private replaceObject:withObject: method
- changed use of -[NSString _KVC_partBeforeDot:afterDot:] in AppKit to NSStringKVCFunctions.h because it is not present in Apple's Foundation
- changed NSApplication use of objc_msg_lookup to methodForSelector
- moved KGContext/NSPrintInfo imageableRect logic into Win32Display
2009-06-09 19:24:50 +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
Johannes Fortmann
3226b44ae2 gdb po and -description method will return UTF8 strings
X11 socket set to non blocking
X11 font config via libfontconfig
font drawing clip fix
NSObjectController and NSArrayController -selectedObjects returns NSArray like Apple implementation
Unit test for NSObjectController
2009-02-16 15:18:36 +00:00
Johannes Fortmann
efef531650 don't have X11 mess with our window contents
implement ROI in observable array + test
2009-02-11 21:16:23 +00:00
Johannes Fortmann
4eb6a80fdb _NSObservableArray unit test and many fixes
KVO now ignores '.' in keypaths starting with '@'
2009-02-10 18:04:33 +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
753d6d00f0 fix typo (issue 248)
clarified _keys member name
2009-01-24 13:21:23 +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
0406fdcb7c vintage property list reader creates NSNumbers for values parseable as double or int
NSUserDefaults sends NSUserDefaultsDidChangeNotification
NSArrayController (badly) supports bindings against contentSet
NSProgressIndicator animate binding implemented
2008-10-01 21:19:30 +00:00
Johannes Fortmann
f81c718b30 finished NSUserDefaultsController:
now also works if appliesImmediately is NO
2008-09-26 18:12:07 +00:00
Johannes Fortmann
0bfcf7f5b2 NSUserDefaultsController implemented
fix for direct instance variable access without automatic notification
NSButtonCell now accepts numerical value of strings as object value
2008-09-26 14:40:02 +00:00
Johannes Fortmann
017bc9a611 warning fixes
forgot FileHandle test
2008-09-16 15:27:49 +00:00
Johannes Fortmann
16a61e1d2f added missing file
some fixes for selection proxy observing
2008-09-16 15:19:59 +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
Johannes Fortmann
2e78ea50f8 - reduced @synchronized lock contention by using several locks depending on object address; no lock needed for release
- some warning fixes
- NSSegmentedControl/Cell implemented (no images yet)
2008-09-14 20:34:48 +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
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
Johannes Fortmann
7c822ee1dc - NSAutoreleasePool -drain as alias for -release
- _NSPrintForDebugger (so po works in gdb)
- NSFastEnumerationState, countByEnumeratingWithState: in NSArray and NSEnumerator (protocol probably needs its own file)
- KVC accessors _key, isKey, _isKey
- objc_setProperty
- C++ constructors are only called if CLASS_HAS_CXX_STRUCTORS is set on the class
- small NSObjectController KVO deps fix
2008-03-28 18:47:18 +00:00
Johannes Fortmann
40651f7eb8 forgot NSArrayController.m 2008-03-20 17:27:01 +00:00
Johannes Fortmann
d54accc0e9 - KVO dependent key would overwrite each other before. Fixed.
- if NSDebugEnabled is set, KVO will emit diagnostics for methods which look like setters but have the wrong signature
- NSArrayController selectionIndex and friends now fire the right change messages
- NSPopUpButton content, contentValues and selectionIndex bindings now work
2008-03-20 17:26:13 +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