Commit Graph

53 Commits

Author SHA1 Message Date
Sergey Bugaev
e3bb5c9196 CGFloat/O2Float-ization
See darlinghq/darling#418
2018-09-12 09:25:27 +03:00
Sergey Bugaev
d4879dbace Fix -[NSButtonCell attributedTitle] segfaulting when title is nil 2017-12-28 22:52:10 +03:00
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
Christopher Lloyd
b76f9e3346 merge 5ec3034 2015-03-30 22:05:27 -04:00
Christopher Lloyd
1e0bc608c3 merge 67ab18d 2015-03-30 22:02:38 -04:00
Airy ANDRE
b67d75c21a updateCell: isn't supposed to send value changed notification 2014-05-08 17:00:58 +02:00
Robert Grant
fc24ff3df6 Use the same image for sizing as displaying 2013-10-30 11:14:54 -04:00
Airy ANDRE
3d15520852 NSSegmentedControl sizeToFit doesn't work 2013-04-24 15:58:00 +02:00
Robert Grant
c7328803d0 use imageRectForBounds when placing the image within the button cell 2013-04-15 14:49:26 -04:00
Airy ANDRE
029971e05a Better popmenu menus : same look as other menu, support for images, validation... 2013-04-11 17:02:32 +02:00
Airy ANDRE
b1b7c8cda0 Too long control titles should be clipped with "..." 2011-11-07 17:31:57 +01:00
Autorelease Pool
5ec3034919 fix problem that textured buttons would still look like enabled even if disabled (black text) 2011-10-27 16:03:26 +02:00
Autorelease Pool
67ab18d56d fix drawing of buttons with image in the NSImageBelowCase the text could be pushed out of the button at the top 2011-10-10 00:58:43 +02:00
Pauli Ojala
716290c62b improved handling of buttons with NSMiniControlSize 2011-09-06 13:53:38 +03:00
Pauli Ojala
bca4ad786e Merge from main Cocotron branch 2011-07-29 13:50:25 +03:00
Pauli Ojala
5f6477a115 Changed Win32 antialiasing to ClearType, modified textured button gradient style to match Cocoa 2011-07-29 13:45:57 +03:00
Robert Grant
216bf7db5b Minor tweaks to make mini-sized NSPopUpButtonCells look nice 2011-05-27 08:49:28 -04:00
Christopher Lloyd
48e96c43c6 Implemented correct ordering for -[NSApp orderedWindows], -[NSWindow orderedIndex]. Fix NSCell, NSButtonCell, NSBrowserCell init/titling values. Fix NSButton NSShadowlessSquareBezelStyle drawing. Added more use of locking for CGLContext. Fix some GDI error recovery/usage. 2011-03-24 22:11:35 -04:00
Christopher Lloyd
17948b2818 map windows virtual keys to mac virtual keys for -[NSEvent keyCode] 2010-11-01 15:10:14 -04:00
Christopher Lloyd
1cd83ad45c NSButton, NSButtonCell fixes, recessed bezel, NSTableView, Column fixes 2010-10-22 14:47:24 -04:00
Christopher Lloyd
8b99802d8d Issue #574 by Pauli Ojala, textured NSButton's 2010-05-17 22:37:55 -04:00
Christopher Lloyd
f7f1d14b22 NSRegularSquareBezelStyle drawing implemented in NSButtonCell 2010-03-05 17:30:43 +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
0ad80ec0c8 (fixes issue 407) by Erlend Böe
(fixes issue 409) by Erlend Böe with modification to release already initialized _timeZone
(fixes issue 410) by Erlend Böe
(fixes issue 414) by Erlend Böe, NSDateFormatter missing methods
(fixes issue 415) added NSOSStatusErrorDomain constant
(fixes issue 417) added NSStringDrawing options
(fixes issue 419) by Markus Hitter, NSDateFormatter off by one for month
(fixes issue 421) by Markus Hitter, NSWindow resign main window behavior fix
(fixes issue 422) by Erlend Böe, NSDateFormatter returns
(fixes issue 424) by tobias at platen-software.de, CoreFoundation.xcodeproj and NSKeyedUnarchiver fix
(fixes issue 425) by Markus Hitter, NSButtonCell drawing fix
2009-10-29 15:21:40 +00:00
Christopher Lloyd
94b6e9b585 fine changes to NSCell, NSButtonCell init's. removed never reached test 2009-10-20 15:42:03 +00:00
Christopher Lloyd
20dff96e56 - added frame style drawing to NSImageCell
- replaced _wraps with _lineBreakMode in NSCell, NSFormCell, NSTextFieldCell, NSButtonCell. added nib decoding of value
- added a few missing setNeedsDisplay: in NSImageView
- added keyed encoding to NSColor and concrete subclasses, switched pasteboard i/o to keyed encoding
- fixed drawing of images in an NSButtonCell in a flipped view
- fine changes to NSOutlineView's cell width calculations
2009-09-16 20:40:16 +00:00
Christopher Lloyd
777ff4ba1b NSButtonCell reorganized to match 10.5 drawBezel/Image mechanism 2009-08-31 16:12:17 +00:00
Christopher Lloyd
473ace3fe1 #366, implement NSButton setButtonType: in terms of NSButtonCell setButtonType:, add more NSButtonCell API 2009-08-24 19:08:04 +00:00
Christopher Lloyd
fc6d94e7a1 NSBox fix by Mathew Burrack to use title cell for drawing 2009-06-26 05:03:16 +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
Johannes Fortmann
bfdea5af7d reverted r419 since I don't see any way to implement the 10.5 semantics correctly 2009-03-16 17:01:43 +00:00
Johannes Fortmann
74be1cf047 - build font family list lazily
- X11: fallback font
- X11: error handler (does nothing)
- NSButtonCell: split drawing in -drawInterior, -drawBezel
- (incomplete) bezierPathWithRoundedRect:
2009-03-08 14:22:13 +00:00
Christopher Lloyd
617b577d5d - Issue #204 Ken Aspeslagh's -[NSButtonCell cellSize] implementation 2008-12-01 19:32:26 +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
Dr. Rolf Jansen
a0038f1f04 NSButtonCell:
fix for inappropriate background re-drawing within the content area of NSTabViewItems and probably other drawing areas
fine tuning of button controls layout size in dependency of the control size parameter
2008-08-28 14:45:49 +00:00
Christopher Lloyd
ea7a8a921e - Removed CGContextSetCalibrated* functions, the Windows user colors defined within their own color space and gamma adjustment of device/calibrated pushed into KGContext_gdi
- Fixed problem with NSPopUpButton cell having a blank title introduced with the NSButtonCell attributed title changes

- SWRender, AA Sample structure flattened
2008-05-19 20:30:25 +00:00
Christopher Lloyd
22bbe557d3 - Issue #115 patch by steph...@sente.ch, split -[NSColor set] into -[NSColor setFill] and -[NSColor setStroke] 2008-05-16 18:59:00 +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
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
Christopher Lloyd
ec80813506 Rolf Jansen's fixes:
-Panels and Drawers no longer appear in task bar
-[NSText(View) setFont:range:] implemented
-NSCell, NSButtonCell loading state from nib file
-NSCell,NSTextField sendsActionOnEndEditing implemented
-NSTabView layout adjustments
-NSComboBox improvements
2007-11-19 14:49:00 +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
6510258e28 - Issue 40 fix by Rolf Jansen, compile errors/warnings in NSButtonCell and NSFormCell 2007-08-27 16:02:57 +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
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
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
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