Commit graph

8140 commits

Author SHA1 Message Date
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
Riccardo Mottola
5627b69f1a Do not initialize a string constant with another string constant or it breaks GCC build as is. Better proposals to ensure the exact same string pointer is used welcome. 2017-07-26 14:23:00 +02:00
Daniel Ferreira
78e6ea6b8a Update ChangeLog 2017-07-25 22:33:12 +01:00
Daniel Ferreira
fbdea829c0 NSAttributedString: define writing direction attribute
Define an (unimplemented) NSAttributedString attribute for Unicode
writing direction.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
d09106096b NSAttributedString: define writing direction constants
Define constants for defining an attributed string's writing direction.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
b29d85f451 NSAttributedString: define NSTextAlternatives attribute
Define an (unimplemented) NSAttributedString attribute for an
NSTextAlternatives object.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
758d524547 NS{Cell,View}: implement stubs for layout direction handling
Implement stubs for the layout direction properties in NSCell and
NSView. Currently, they default to left-to-right layouting.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
05c58fe023 NSAccessibility: declare base Accessibility APIs
Declare base NSAccessibility functions and constants, which have been
implemented as stubs.

In the near future, we could begin supporting some NSAccessibility
informal protocol features (for instance, elements ignored in the
accessible view hierarchy). However, for even considering thorough
accessibility support we would require, at least:

* A proper implementation of the AX* API in gnustep-boron;
* Design integration with screen reading software and other components
for an accessible graphic environment.

which are most certainly long-term tasks.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
eca638147c NSWindow: define missing window mask
Define a missing enum value for a window mask. This mask remains
unimplemented.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
e9b0367207 NSControl: create stub for -sizeThatFits:
Create a stub for the -[NSControl sizeThatFits:] function.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
16b0299916 NSVisualEffectView: create class stub
Create stub for the NSVisualEffectView class.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
62ec654335 NSScrollView: create stubs for inset properties
Create stubs for the content/scroller inset properties in NSScrollView.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
ecb4178417 NSGestureRecognizer: create stub for class
Create stub for the NSGestureRecognizer class.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
f9daf52083 NSSpellChecker: define new constants
Define new constants on NSSpellChecker. They are not yet handled by the
implementation.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
f1abcb313a NSSpeechSynthesizer: define new constants
Define new constants in NSSpeechSynthesizer. These are not yet handled
by the implementation.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
75dd71b149 NSRunningApplication: create stub for class
Create a stub for the NSRunningApplication class.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
0a6f8c0152 Update ChangeLog 2017-07-25 22:33:12 +01:00
Daniel Ferreira
819c459f6f NSUserInterfaceLayout: create interface layout constants
Define interface layout enums to be used by AppKit. This improves
compatibility with the reference platform.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
3d88922f45 NSUserInterfaceItemIdentification: introduce protocol
Introduce the NSUserInterfaceItemIdentification protocol, which required
an user interface class provide an unique identifier.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
4769fc8edd NSSharingService: define class
Define the NSSharingService class as an unimplemented stub for
compatibility purposes.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
bb6805742d NSView: define layer-related properties
Define layer-related properties in NSView for compatibility purposes,
and keep their getters and setters as stubs, since they will not have
any effect before NSView-CALayer integration is implemented.
2017-07-25 22:33:12 +01:00
Daniel Ferreira
9e80b07531 NSPasteboard: define new constants
Define new constants for NSPasteboard type identifiers. Most of them are
aliases to the old "Pboard"-style types, although some new ones are not
fully implemented:

* NSPasteboardTypePNG
* NSPasteboardTypeSound
* NSPasteboardTypeMultipleTextSelection
* NSPasteboardTypeTextFinderOptions
2017-07-25 22:33:12 +01:00
Daniel Ferreira
f665887c68 NSSpeechSynthesizerDelegate: define protocol properly
Modern applications require NSSpeechSynthesizerDelegate to be an actual
@protocol in order to conform to it. Here, we allow it to be one if we
are on an Objective-C runtime that supports it.
2017-07-25 22:33:12 +01:00
fredkiefer
fd6e7f2e42 Fix small bug found by compiler. 2017-07-22 20:44:45 +02:00
fredkiefer
6f22d6429e Add phase method forgotten in last commit. 2017-07-22 20:38:39 +02:00
fredkiefer
a02b40a9dd Add some enums and the method -momentumPhase to NSEvent. 2017-07-22 20:17:00 +02:00
fredkiefer
79d6582884 Add ChangeLog for last change. 2017-07-09 22:35:42 +02:00
fredkiefer
025b73ce6d Add some newer Cocoa methods for NSEvent. 2017-07-09 22:02:40 +02:00
Ivan Vučica
d078c703a4 Fix typo introduced in commit 6304640556. 2017-07-09 15:51:57 +00:00
fredkiefer
3776e17d59 Add a .gitignore file 2017-07-09 15:47:23 +00:00
Riccardo Mottola
4ba0fa25cc Save resolution information if it is different from 72 dpi 2017-06-20 20:14:50 +00:00
fredkiefer
fc8c034aca * Source/externs.m: Added semicolons missing in last commit.
* Source/NSSavePanel.m: Fix return type of sorting function.
2017-06-20 20:14:40 +00:00
fredkiefer
759ff8fecf Split ChangeLog file. 2017-06-20 20:14:09 +00:00
Fred Kiefer
86c2fd5391 Added missing change log for merged pull request. 2017-06-20 20:14:00 +00:00
TheDharc
6304640556 Update NSAttributedString.h
adding what is missing
2017-06-20 20:13:49 +00:00
TheDharc
2f4343438a Update externs.m
adding what lacks
2017-06-20 20:13:36 +00:00
Riccardo Mottola
9c7eeb9c20 Support for writing resolution
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40491 72102866-910b-0410-8b05-ffd578937521
2017-04-24 10:42:32 +00:00
Fred Kiefer
2b747e4809 * Version: Correct required base version that has been off for a year.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40489 72102866-910b-0410-8b05-ffd578937521
2017-04-22 13:14:55 +00:00
Fred Kiefer
c8f9e50b85 * Printing/GSCUPS/GSCUPSPrinter.m: Add include to get deprecated
function cupsGetPPD() on newer CUPS systems.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40486 72102866-910b-0410-8b05-ffd578937521
2017-04-16 18:24:16 +00:00
Fred Kiefer
099257dac9 Fix some clang static analyser warnings reported by
Sebastian Reitenbach <sebastia@l00-bugdead-prods.de>.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@40484 72102866-910b-0410-8b05-ffd578937521
2017-04-16 11:54:21 +00:00