mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 07:30:47 +00:00
2005-01-21 21:43 Alexander Malmberg <alexander@malmberg.org>
Various whitespace cleanups, comment type fixes, and changes to avoid warnings from recent versions of gcc. * Headers/Additions/GNUstepGUI/GSToolbar.h (-_toolbars): Declare. * Source/NSWindow+Toolbar.m: Remove conflicting declaration of [NSToolbar -_toolbars]. * Headers/Additions/GNUstepGUI/GSServicesManager.h, Source/GSServicesMananger.m (-item2title:, -validateMenuItem:): Adjust argument types. * Headers/AppKit/NSMenu.h (-validateMenuItem:): Adjust argument type. * Source/NSTextView.m (-sizeToFit): Don't use size uninitialized if neither resizable flags is set. (-insertText:): Adjust argument type. * Headers/AppKit/NSResponder.h, Source/NSResponder.m (-insertText:): Adjust argument type. Document. * Headers/AppKit/NSView.h: Change type of ivar _window to NSWindow *. * Source/GSTitleView.m (-mouseDown:): Always initialize startWindowOrigin. * Source/NSApplication.m (-setApplicationIconImage:): Add casts to avoid warnings. * Source/NSCell.m (-cellSize): Add default: case. * Source/NSPasteboard.m ([GSFiltered -pasteboard:provideDataForType:]): Detect and warn if we can't find a filter that will get us the desired type. * Source/NSProgressIndicator.m: Comment out unused variable 'images'. * Source/NSBezierPath.m: Declare GSBezierPath fully before using it. (-bezierPathByFlatteningPath, -bezierPathByReversingPath): Make sure variables are always initialized. * Source/NSMenuView.m, * Source/NSPrintOperation.m, * Source/NSSplitView.m, * Source/NSTableHeaderView.m: Make sure variables are always initialized. * Source/NSBox.m, * Source/NSImageview.m, * Source/NSText.m, * Source/NSTextStorage.m: Add missing includes. * Source/GSKeyBindingTable.m, * Source/GSLayoutManager.m, * Source/NSBitmapImageRep+PNM.m, * Source/NSBundleAdditions.m, * Source/NSLayoutManager.m, * Source/nsimage-tiff.h, * Source/tiff.m, * Headers/Additions/GNUstepGUI/GSDisplayServer.h, * Source/GSDisplayServer.m: Change signedness of various variables. * Source/NSPanel.m (-sendEvent:): Remove. * Source/NSWindow.m (-becomesKeyOnlyIfNeeded): New method. (-_sendEvent:becomesKeyOnlyIfNeeded:): Remove. Move code ... (-sendEvent:): ... here. Use -becomesKeyOnlyIfNeeded instead of the argument. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20590 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
efe686d736
commit
ad2419e484
38 changed files with 199 additions and 116 deletions
|
@ -49,7 +49,7 @@
|
|||
NSResponder *_next_responder;
|
||||
|
||||
/*
|
||||
Due to interface brain-damage, but NSResponder and NSMenuView have -menu
|
||||
Due to interface brain-damage, both NSResponder and NSMenuView have -menu
|
||||
and -setMenu: methods, but for different menus. Thus, to prevent (future,
|
||||
there have already been some) problems and confusion, this ivar is
|
||||
private (iow, it can't be accidentally used in NSMenuView).
|
||||
|
@ -144,7 +144,18 @@
|
|||
- (BOOL) performMnemonic: (NSString*)aString;
|
||||
- (void) flushBufferedKeyEvents;
|
||||
- (void) doCommandBySelector: (SEL)aSelector;
|
||||
- (void) insertText: (NSString*)aString;
|
||||
|
||||
/** <p>Tells the receiver to insert the given string. In a text view
|
||||
the text is typically inserted at the insertion point, and replaces
|
||||
any selection.
|
||||
</p><p>
|
||||
Subclasses should override this method. The implementation in
|
||||
NSResponder just sends the message on to the next responder.
|
||||
</p><p>
|
||||
Normally, aString will be an NSString, but in some cases, it might
|
||||
be an NSAttributedString.
|
||||
</p> */
|
||||
- (void) insertText: (id)aString;
|
||||
- (NSUndoManager*) undoManager;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue