Commit Graph

29 Commits

Author SHA1 Message Date
Sergey Bugaev
348fdf7813 Fix direct isa access 2017-12-17 16:11:05 +03:00
Andrew Hyatt
a23df37eff Remove execution bit from source files of AppKit 2017-08-23 09:25:24 -07:00
Rolf
4768465f6d binding doesn't work for none binded NSTextFields -- deactivate bindinginfo until the real issues has been sorted out 2015-08-09 23:39:31 -03:00
Airy ANDRE
178b81c537 Revert previous first-responder-on-click change and implement NSView & NSControl needsPanelToBecomeKey the Apple way (which is different from the Apple doc way...) 2014-08-25 19:38:34 +02:00
Airy ANDRE
b67d75c21a updateCell: isn't supposed to send value changed notification 2014-05-08 17:00:58 +02:00
Airy ANDRE
f63e1bdb24 Better formatter support 2013-03-27 20:19:14 +01:00
Robert Grant
9a5c9ba947 Ensure bindings are cleared in NSControl dealloc - to avoid confusion 2012-02-17 14:13:30 -05:00
Robert Grant
b57452087f Allow the mouse to leave the slider control bounds - it makes using it much nicer 2012-01-09 18:06:25 -05:00
Airy ANDRE
8f16979f6b Various text editing fixes 2011-11-14 14:02:46 +01:00
Pauli Ojala
ea181f19ae added support for NSInteger values in accessors to match Cocoa 2011-09-06 13:52:17 +03:00
Christopher Lloyd
47cb06926c NSControl fixes, NSPDFImageRep fixes 2010-10-22 15:22:22 -04:00
Christopher Lloyd
3c0f029d38 - NSBitmapImageRep use of CF* for CF types
- NSScroller use of display fixes
- NSMenuView use of display fixes
- NSToolbar fixes for delegate based default items
- NSToolbarItemView selection drawing
- NSControl fixes
- NSGraphicsContext behavior fixes
- NSBundle pathForResourceFile:inDirectory:, pathsForResourcesOfType:inDirectory fixes, localization table caching
- NSAffineTransform decoding
- NSString boolValue, intValuem integerValue, longLongValue fixes
- NSPathUtilities constants, skeletons
- renamed objc_msg_send to objc_msgSendv, objc_msgSendv_stret implementation for Windows (unused)
- NSOldXMLReader fixes when disabling exceptions
- NSCurrentLocaleIsMetric for windows
- Switch Foundation to use -l ws2_32
2010-03-09 18:14:48 +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
Dr. Rolf Jansen
94d611ab3c (fixes issue #425) by Markus Hitter, BezelStyle button shouldn't background drawing 2009-11-06 00:47:16 +00:00
Christopher Lloyd
58d7e57528 - NSColorPanel support for an opacity slider, NSColorPicker, NSColorPanel cleanup, switch to arrow sliders with tick marks (visual not correct)
- NSColor API switch to CGFloat
- fixed adjustEventLocation: for NSOpenGL views
- fixed KGContext_builtin_gdi.m so it can work with non-DIB bitmaps
- (fixes issue 402)
- (fixes issue 393)
2009-10-07 17:19:32 +00:00
Christopher Lloyd
131191eacf turn of bezel in NSCell when setBordered is modified per documentation, NSControl setNeedsDisplay:YES when setBordered/setBezeled 2009-08-19 03:23:44 +00:00
Christopher Lloyd
cec867e7b4 Andy Balholm's NSEditor and NSEditorRegistration patch 2009-07-19 16:02:29 +00:00
Christopher Lloyd
d90b0b9bce change imports to use NSKeyedArchiver.h 2009-06-19 18:12:28 +00:00
Christopher Lloyd
3edcca086e removed now empty NSNibKeyedUnarchiver 2009-06-19 17:31:04 +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
e64bcd2609 - NSAlert implemented
- NSButton expanded to match doc.s, NSCell, NSButtonCell attributedTitle work
2008-05-13 18:43:48 +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
9a385037d9 Rolf Jansen's fixes:
- NSString percent escape methods return self instead of nil
- precision fix for NSStringFormatter
- [NSFont familyName] implemented
- NSControl, doubleValue, setDoubleValue, takeDoubleValueFrom: implemented
2007-11-26 02:43:51 +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
95a0d5cf32 - Issue 39 fix for NSDateFormatter, check for error being NULL in NSDateFormatter getObjectValue:
- Fixed bug in NSRunLoop which would cause a timer set up during an ASAP notification to not fire
- Removed text drag acceptance by non-key text fields, not the correct behavior
- Assortment of missing methods added, some implemented whole or partially, some not.
- Updated some of the Objective-C runtime structures to reflect Apple conventions (OBJCMethod -> struct objc_method, OBJCMethodList -> struct objc_method_list, etc)
2007-08-26 18:29:25 +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
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
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