Commit graph

7207 commits

Author SHA1 Message Date
Gregory John Casamento
49e8da568c Testing code 2024-12-04 20:44:41 -05:00
Gregory John Casamento
1ad7d1834e Set pullsDown last to avoid accidentally setting state 2024-11-27 17:12:15 -05:00
Gregory John Casamento
bb2eab66cd Move setMenuItem call to bottom so that it can consider the state when seeting up 2024-11-27 16:01:32 -05:00
williameveretteggplant
7855252df0
Only trigger NSClipView changes when setting new frame (#313) 2024-11-19 19:32:55 +01:00
Frederik Carlier
68e2716626
GSColorSliderCell: Move to libs-gui (#321)
This class is shared between the StandardPicker bundle and the WheelPicker bundles.  Exposing a class with the same name in two separate bundles results in undefined behavior.  Move this class to a shared module (libs-gui in this case) to resolve that.
2024-11-19 18:02:25 +01:00
johnathan-becker
82717eefec
fix issue with nsmenu items (#315) 2024-11-18 19:43:58 +01:00
Gregory Casamento
bc53ea0ecf
Merge pull request #319 from johnathan-becker/johnb-fix-textbox
Fix issue with NSCollectionView and single column views
2024-11-17 08:46:36 -05:00
rfm
f7fd33a746 When we allocate objects in a given zone, we are not guaranteed to get back something actually allocated in that zone (eg the runtime might use a common heap) so if we are creating/destroying other heap memory based on zone we need to make sure we are consistently using the same zone info. 2024-11-16 11:15:49 +00:00
Fred Kiefer
87e132ca82 Fix test GSCellFlags.
Make NSBezierPath -dealloc a bit saver.
2024-11-15 22:10:29 +01:00
Johnathan Becker
c80105a312
try this 2024-11-15 12:39:29 -07:00
Johnathan Becker
299af29885
try this 2024-11-15 12:36:08 -07:00
Johnathan Becker
7d477230ec
try this 2024-11-15 12:32:31 -07:00
williameveretteggplant
c71f9dd715
modify NSComboBox to handle attributed strings (#314)
* modify NSComboBox to handle attributed strings

* formatting
2024-11-05 00:12:37 +01:00
Frederik Carlier
ec89d161b0
NSTextFieldCell: Decode placeholder string (#310) 2024-11-02 17:50:48 +01:00
Sergii Stoian
42a79060b9
Make white as default selection highlight color for NSTableView (#312) 2024-11-02 00:03:20 +01:00
johnathan-becker
820492495a
implement showsresizeindicator (#311) 2024-11-01 20:10:29 +01:00
Sergii Stoian
5cd432374c
Merge pull request #302 from trunkmaster/menu-unhide
NSApplication: toggle menu item "Hide" title and action on user click.
2024-11-01 15:22:18 +02:00
Sergii Stoian
c5754158c5 NSApplication: use "Show" menu item title instead of "Unhide". 2024-11-01 12:53:19 +00:00
Sergii Stoian
9d419c9116 NSApplication.m: handle Hide/Unhide menu item title and action by changing
title and action of NSMenuItem object.
2024-11-01 11:35:26 +00:00
rfm
3879f8e909 Fix logic of test for changed information for tidy object dates. 2024-10-31 19:04:45 +00:00
Fred Kiefer
349dc21144 * Headers/AppKit/NSLayoutAnchor.h: Add missing include that is required after a change in base.
* Source/NSTableView.m: Forward declare new methods.
2024-10-29 22:42:06 +01:00
Frederik Carlier
acf00ce5d2
Allow themes to override [NSMenu _isVisible] (#307)
The default implementation of `[NSMenu]` uses `_aWindow` and `_bWindow` to determine the visibility of the menu.  Not all themes use these windows to build a menu.  For example, the WinUXTheme will use Win32 APIs to build a menu.

Allow themes to override the value of `[NSMenu _isVisible]` by introducing a `[GSTheme proposedVisibility: (BOOL)visible forMenu: (NSMenu *) menu]` method.  The default implementation simply eturns the proposed visibility.
2024-10-27 22:02:20 +01:00
williameveretteggplant
9901bbcb4c
Fix alternateContents in NSButtonCell (#305) 2024-10-17 08:23:02 +02:00
Sergii Stoian
afe151aaaf NSApplication: toggle title of menu item "Hide" to "Unhide" and vice versa.
Right-click app menu on hidden app icon should show "Unhide" on menu item and behave respectively.
2024-10-09 11:02:26 +00:00
Sergii Stoian
40fc3ab2ec
Merge pull request #299 from trunkmaster/fontpanel-autosizing
Font Panel autosizing fix - Fix autosizing of "Family" and "Typeface" browsers using different approach to NSView's default.
2024-10-09 01:20:20 +03:00
Gregory John Casamento
16ed635cd4 Merge branch 'master' of github.com:gnustep/libs-gui 2024-10-08 12:50:36 -04:00
Gregory John Casamento
c2324e102d Minor cleanup in NSOutlineView code 2024-10-08 12:49:59 -04:00
johnathan-becker
4d50863275
apply fix (#300) 2024-10-08 17:59:23 +02:00
Sergii Stoian
59381a7803 Merge branch 'master' into fontpanel-autosizing 2024-10-04 23:05:46 +03:00
Sergii Stoian
04e6cf804d NSFOntPanel: remove extra check while autosizing. 2024-10-04 23:05:23 +03:00
Sergii Stoian
64c5bb581d NSFontPanel: implement alternative method for autozing of browsers. 2024-10-03 16:21:53 +00:00
williameveretteggplant
3b02ac1d9d
implement integerValue method in NSSliderCell (#296)
the superclass method integerValue: method in NSCell uses the _object_value to retrieve the result, but the implementation of setObjectValue: in NSSliderCell sets _value. So integerValue: needs to return _value.
2024-10-03 09:14:45 +02:00
Riccardo
fb61a0f287
use macro to decode NSInteger into enum - fixes 64Bit Big Endian (#292) 2024-09-19 08:29:36 +02:00
Frederik Carlier
3784462321
GSMemoryPanel: Only call GSDebug* in debug mode (#289)
The GSDebug* methods are conditional on NDEBUG not being defined; so do not attempt to call these methods if this variable is not set.
2024-09-14 10:31:42 +02:00
Frederik Carlier
6a3681aa82
Add APPKIT_EXPORT_CLASS, APPKIT_EXPORT annotations (#288)
Some GS* classes and methods are used by the ColorPicker or Printing bundles.  That means that they are referenced from an external module.  For this module to be able to resolve these symbols, on Windows, they need to be exported.

This commit adds `APPKIT_EXPORT_CLASS` and `APPKIT_EXPORT` annotations, allowing ColorPickers to compile on Windows.
2024-09-12 22:45:55 +02:00
Gregory John Casamento
530dee1e2f Minor fix in NSNib to use NULL, quick fix in NSBundleAdditions to fix issue with model not returning top-level objects 2024-08-29 16:16:43 -04:00
Gregory John Casamento
e1f3109c94 Fix issues with setting editable property on NSTableColumn and call _keyPathForValueBinding 2024-08-21 00:12:03 -04:00
Gregory John Casamento
8ed8754b2a Correction compile error 2024-08-20 23:43:30 -04:00
Gregory John Casamento
068684d6d3 Add method _keyPathForValueBinding in _setObjectValue for table view 2024-08-20 23:00:16 -04:00
Gregory John Casamento
1a188b7eb7 Add method _keyPathForValueBinding in _setObjectValue for Outline view 2024-08-20 22:56:18 -04:00
Gregory John Casamento
27d57fe5eb Add method _keyPathForValueBinding to encapsulate the code for getting the path 2024-08-20 22:53:31 -04:00
Gregory John Casamento
4b380ab272 Merge conflic fixes 2024-08-18 22:11:42 -04:00
Gregory Casamento
97ea7c5cc5
Merge pull request #281 from gnustep/NSBrowser_branch
Add new 10.6 delegate methods to NSBrowserDelegate
2024-08-18 21:08:54 -04:00
Gregory John Casamento
5befed5855 Fix a number of issues pointed out by @fredkiefer 2024-08-18 17:25:47 -04:00
Gregory John Casamento
fbc0cd160b Fix issues mentioned by @fredkiefer as well as some addiutional cleanup 2024-08-12 14:44:13 -04:00
Gregory John Casamento
ddf6546c37 Release selection_index_paths in -dealloc method, per discussion with @fredkiefer 2024-08-11 17:06:49 -04:00
Gregory John Casamento
118eb26a5f Fix issues mentioned by @fredkiefer 2024-08-11 16:40:37 -04:00
Gregory John Casamento
bb2c12d74a Merge branch 'master' of github.com:gnustep/libs-gui into NSTreeController_branch2 2024-08-09 14:27:23 -04:00
Gregory Casamento
6474e53fb6
Update NSOutlineView.m - remove unbind per discussion with @fredkiefer 2024-08-09 02:28:29 -04:00
Gregory John Casamento
5d9e49a2ff Remove both instances where we get properties from the binding where it is not needed during the loading process, per discussion with @fredkiefer 2024-08-08 18:20:00 -04:00