Commit graph

7929 commits

Author SHA1 Message Date
Ivan Vučica
280c3e0095 Clean up -[NSImage initWithCoder:], reduce amount of releases of self.
Some context available in PR #12 and  PR #13.
2017-12-07 19:07:43 +00:00
fredkiefer
7270f8efc7 Add new backingScaleFactor method on NSScreen. 2017-12-03 22:02:06 +01:00
Ivan Vučica
350ba62d7d
Cleanup: Replace tabs with spaces in NSImage.m. 2017-10-29 14:25:47 +00:00
Graham Lee
aff13d41bb correct decoding of named images from keyed archivers
As @tedge noted on the original pull request for this work, I didn't return the correct object in the keyed archiver case.
2017-10-29 14:23:35 +00:00
Ivan Vučica
93218f7fc1
Update ChangeLog.
This is to complement PR #12.
2017-10-28 17:10:23 +00:00
Gregory Casamento
9af91b0334
Merge pull request #12 from iamleeg/named-image-unarchiving
Named image unarchiving
2017-10-28 12:16:25 -04:00
Graham Lee
2c34ae8fe5 revert spurious whitespace change 2017-10-28 08:48:36 +01:00
Graham Lee
5e3ed6dff7 If an unknown named image is unarchived, keep the name 2017-10-28 08:45:05 +01:00
fredkiefer
e3d51643ca Protect against [window screen] returning nil. 2017-10-05 23:05:28 +02:00
Ivan Vučica
020d3fa183 release-chore: Preparations for 0.26.0. Backfill of ReleaseNotes.
Bumping version to 0.26.0. Adding stub news entries related to the
release into news.texi and ReleaseNotes.gsdoc.

Also, this commit backfills ReleaseNotes for releases 0.24.1, 0.25.0
and 0.25.1.
2017-10-01 22:20:13 +01:00
fredkiefer
3ac7a369c5 * Source/NSStepperCell.m (-trackMouse:...untilMouseUp:): Adjust
to changes in super class.
2017-08-31 23:57:41 +02:00
fredkiefer
c72d2df3ff * Source/NSButtonCell.m (-setButtonType:): Warn about unsupported
button types.
* Source/NSCell.m (-performClickWithFrame:inView:): Highlight the
cell only if drawing is possible.
2017-08-27 11:23:43 +02:00
fredkiefer
e853f4fdbf Rewrote mouse tracking logic to be closer to the Cocoa definition. 2017-08-27 11:13:17 +02:00
Daniel Ferreira
b2fa5c5de2 Update ChangeLog 2017-08-27 01:42:00 +01:00
Daniel Ferreira
3a1bec5d1f Externs: add private string attribute definitions
Define some private NSAttributedString attribute name definitions. Their
functionality is not yet implemented.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
471a81ddb8 NSSpellChecker: implement stub for +isAutomaticQuoteSubstitutionEnabled
Implement stub for +[NSSpellChecker isAutomaticQuoteSubstitutionEnabled]
for compatibility purposes.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
39d9105d35 NSSpellChecker: implement stub for +isAutomaticDashSubstitutionEnabled
Implement stub for +[NSSpellChecker isAutomaticDashSubstitutionEnabled]
for compatibility purposes.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
9e8ef84b54 NSGestureRecognizer: implement stub for -locationInView:
Implement stub for -[NSGestureRecognizer locationInView:] for
compatibility purposes.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
b09cdec727 NSWindow: define more NSWindowCollectionBehavior values
Define new values for the NSWindowCollectionBehavior enum for
compatibility purposes.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
3e9cdce801 NSWindow: add stub for +windowNumberAtPoint:belowWindowWithWindowNumber:
Add stub for +[NSWindow windowNumberAtPoint:belowWindowWithWindowNumber:]
for compatibility purposes.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
10d0dce115 NSSpellChecker: add stub for -checkGrammarOfString:...
Add a stub for the -checkGrammarOfString:... method for compatibility
purposes.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
677572bef1 NSSpellChecker: add stub for +isAutomaticTextReplacementEnabled
Add stub for +[NSSpellChecker isAutomaticTextReplacementEnabled] for
compatibility purposes.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
ac56a5aeae NSDragging: create NSDraggingSource protocol
Create NSDraggingSource protocol for increased compatibility with GUI.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
9ce55e08ca NSSpellChecker: add missing definitions
Add definitions for the NSCorrectionResponse enum for increased
compatibility, as well as some spell checking notification constants.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
4f4db46c87 NSWindow: add stub for -backingScaleFactor
Add stub for -[NSWindow backingScaleFactor] for compatibility purposes.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
07d0f2002f NS{Application,Window}: define modal constants
Define constants and stubs related to modal sheets in GUI for increased
compatibility.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
5e8b278e93 NSFont: define font weight constants
Define font weight constants introduced in macOS 10.11.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
5a66de7139 Externs: export the _NXSmartPaste constant
Export the private _NXSmartPaste constant for compatibility purposes.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
1560978a60 NSAttributedString: add private attribute stub
Add a stub for NSTextInsertionUndoableAttributeName, a private
NSAttributedString attribute.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
8321f7ee5d NSButtonCell: define new button cell constants
Define new button cell constants in the NSButtonCell header. These
buttons are not yet implemented, however.
2017-08-27 01:42:00 +01:00
Daniel Ferreira
5ce4348754 NSText: define new NSTextAlignment constants
Define new-style NSTextAlignment* constants on GUI for compatibility
purposes with new macOS versions.
2017-08-27 01:42:00 +01:00
Riccardo Mottola
78be5ef0ea Initialize density to 0, so that in case it is unset (72dpi) it is not a random value in case the struct is not zeroed 2017-08-25 14:20:58 +02:00
Riccardo Mottola
02af4bbcd9 Add russian translation 2017-08-09 01:45:05 +02:00
Daniel Ferreira
83e505c8a8 chore: add Travis CI build to GUI
Add a Travis CI build to gnustep-gui to check if everything is really
okay before accepting patches.

Recent events have shown that bad patches have passed through the review
process, specially when it comes to breaking compatibility with GCC. A
CI routine would distinctly avoid these cases.
2017-08-06 18:48:26 +00:00
Alex
fa2fabb5b7 Add Polish translation. 2017-08-06 18:41:16 +00:00
Alex
b0b5e51a1e Add German translation for ColorPickers's StandardPicker.strings 2017-08-04 12:41:07 +01:00
fredkiefer
b713d0c023 Clean up NSPasteboardItem files. 2017-07-31 23:21:59 +02:00
Daniel Ferreira
257017c65f NSGraphicsContext: create -CGContext methods
Create methods which allow a graphics context to be created with a
CGContext as an equivalent to a graphics port. The context set through
this property will be used in gnustep-back.
2017-07-31 11:41:11 +01:00
Daniel Ferreira
dc9ff85436 Quartz: Expose methods for bridge with Opal
Expose methods for bridging Opal types and GUI classes. The new
relations are the following:

a) NSImage -> CGImage
b) NSColor -> CGColor
c) NSImageRep -> CGImage

The actual implementation for this bridge is implemented in the Backend
library.

This significantly improves compatibility with AppKit.
2017-07-31 11:41:11 +01:00
Ivan Vučica
1cb15c2735 Remove RETAIN() when returning -[NSPasteboardItem types].
Objective-C memory management policy specifies that methods named with
alloc, new, copy and mutableCopy are the ones that return objects with
refcount 1.

Additionally, `@property (..., copy, ...)` only modifies the setter; the getter
still returns the object as-is. While it should be correct to create
a new immutable object every time, we should not create an object
with refcount 1, but an autoreleased object.
2017-07-31 11:36:15 +01:00
Ivan Vučica
4026fbc2be Add _startingItemNumber-related TODOs to NSTextList. 2017-07-31 11:26:43 +01:00
Daniel Ferreira
13724679d9 Update ChangeLog 2017-07-31 11:22:59 +01:00
Daniel Ferreira
6d4302cd97 NSTextList: create startingItemNumber property
Add the `startingItemNumber` property to NSTextList introduced in macOS
10.6.
2017-07-31 11:22:59 +01:00
Daniel Ferreira
5403e47b60 NSPasteboardItem: create base implementation
Implement the NSPasteboardItem class. For now, it remains relatively
useless since NSPasteboard does not yet know how to use it. However, it
should be pluggable into NSPasteboard once NSPasteboard learns about
NSPasteboardReading and NSPasteboardWriting.
2017-07-31 11:22:59 +01:00
Daniel Ferreira
34ecd57e4e NSPasteboard: define NSPasteboard{Reading,Writing}
Define the NSPasteboardReading and NSPasteboardWriting protocols
introduced in OSX 10.6.
2017-07-31 11:22:59 +01:00
Daniel Ferreira
ac26b6725b NSTextAlternatives: implement text alternatives class
Implement NSTextAlternatives, a class usually used for choosing
alternatives from a basic string usually for dictation purposes.
2017-07-31 11:22:59 +01:00
Daniel Ferreira
fcb11edca8 NSScroller: define scroller styles
As of macOS 10.7, scrollers gained two types: Legacy and Overlay. Here,
we define these styles as well as a method to determine which is the
"default" style to be used.
2017-07-31 11:22:59 +01:00
fredkiefer
e85a1a0664 * Source/NSMenuView.m (-attachSubmenuForItemAtIndex:): We should
not use [NSMenu display] for NSWindows95InterfaceStyle as there we
	have two NSMenuViews for the NSMenu.
2017-07-28 19:24:45 +02:00
Riccardo Mottola
47c09aaedb We can actually use retain as an equivalent property when not using ARC 2017-07-28 10:01:25 +02:00
fredkiefer
9bb07ba461 Remove property attribute "strong" as gcc does not support this. 2017-07-27 08:29:18 +02:00