diff --git a/ChangeLog b/ChangeLog index 709d0b085..e65716dce 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,24 @@ +Wed Jan 29 07:44:32 1997 Simon Frankau + + * Headers/gnustep/gui/NSCStringText.h: New file. + * Headers/gnustep/gui/NSDragging.h: New file. + * Headers/gnustep/gui/NSColorPicking.h: New file. + * Headers/gnustep/gui/NSNibLoading.h: New file. + * Headers/gnustep/gui/NSSpellProtocol.h: New file. + * Headers/gnustep/gui/AppKit.h: Include new files. + * Headers/gnustep/gui/Application.h: Add NSServicesRequests category. + * Headers/gnustep/gui/NSColor.h (-decodeNXColor:): New method. + * Headers/gnustep/gui/NSColorPicker.h (-alphaControlAddedOrRemoved:): + New method. + * Headers/gnustep/gui/NSMenu.h (-validateCell:): New method. + * Source/Makefile.in: Add new files. + * Source/NSBundle.m: New file. + * Source/NSCStringText.m: New file. + * SourceNSColor.m (-decodeNXColor:): New method. + * Source/NSColorPicker.m (-alphaControlAddedOrRemoved:): + New method. + * Source/NSText.m (-changeSpelling:, -ignoreSpelling:): New methods. + Thu Jan 23 15:10:13 1997 Scott Christley * Makefile.in (install): Don't force make of source. diff --git a/Headers/gnustep/gui/AppKit.h b/Headers/gnustep/gui/AppKit.h index c084e8fe5..23ae945c6 100644 --- a/Headers/gnustep/gui/AppKit.h +++ b/Headers/gnustep/gui/AppKit.h @@ -64,7 +64,7 @@ float MB_SCREEN_MAXHEIGHT(); @class NSWindow, NSPanel, NSView, NSMenu; @class NSSavePanel, NSOpenPanel, NSHelpPanel; @class NSClipView, NSScrollView, NSSplitView; -@class NSText; +@class NSText,NSCStringText; // Controls @class NSControl, NSButton, NSTextField, NSScroller, NSBox, NSForm, NSMatrix; @class NSPopUpButton, NSSlider, NSBrowser, NSForm; @@ -90,12 +90,14 @@ float MB_SCREEN_MAXHEIGHT(); #include #include #include +#include #include #include #include #include #include #include +#include #include #include #include @@ -103,6 +105,7 @@ float MB_SCREEN_MAXHEIGHT(); #include #include #include +#include #include #include #include @@ -116,6 +119,7 @@ float MB_SCREEN_MAXHEIGHT(); #include #include #include +#include #include #include #include @@ -134,6 +138,7 @@ float MB_SCREEN_MAXHEIGHT(); #include #include #include +#include #include #include #include diff --git a/Headers/gnustep/gui/NSApplication.h b/Headers/gnustep/gui/NSApplication.h index 6f67e761f..0c3f99cd7 100644 --- a/Headers/gnustep/gui/NSApplication.h +++ b/Headers/gnustep/gui/NSApplication.h @@ -43,6 +43,8 @@ #include #include +@class NSPasteboard; + @interface NSApplication : NSResponder { @@ -257,4 +259,13 @@ @end +@interface NSObject (NSServicesRequests) + +// Pasteboard Read/Write +- (BOOL)readSelectionFromPasteboard:(NSPasteboard *)pboard; +- (BOOL)writeSelectionToPasteboard:(NSPasteboard *)pboard + types:(NSArray *)types; + +@end + #endif // _GNUstep_H_NSApplication diff --git a/Headers/gnustep/gui/NSBrowser.h b/Headers/gnustep/gui/NSBrowser.h index 5e4765b2b..979d3e25d 100644 --- a/Headers/gnustep/gui/NSBrowser.h +++ b/Headers/gnustep/gui/NSBrowser.h @@ -1,7 +1,7 @@ /* NSBrowser.h - Description... + Control to display and select from hierarchal lists Copyright (C) 1996 Free Software Foundation, Inc. diff --git a/Headers/gnustep/gui/NSBundle.h b/Headers/gnustep/gui/NSBundle.h index 946658e61..c7e802dfc 100644 --- a/Headers/gnustep/gui/NSBundle.h +++ b/Headers/gnustep/gui/NSBundle.h @@ -29,7 +29,10 @@ #ifndef _GNUstep_H_NSBundleAdditions #define _GNUstep_H_NSBundleAdditions -@implementation NSBundle (NSBundleAdditions) +#include +#include + +@interface NSBundle (NSBundleAdditions) - (NSString *)pathForImageResource:(NSString *)name; diff --git a/Headers/gnustep/gui/NSCStringText.h b/Headers/gnustep/gui/NSCStringText.h new file mode 100644 index 000000000..84473ac8c --- /dev/null +++ b/Headers/gnustep/gui/NSCStringText.h @@ -0,0 +1,297 @@ +/* + NSCStringText.h + + C string text class + + Copyright (C) 1997 Free Software Foundation, Inc. + + Author: Simon Frankau + Date: 1997 + + This file is part of the GNUstep GUI Library. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this library; if not, write to the Free + Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +#ifndef _GNUstep_H_NSCStringText +#define _GNUstep_H_NSCStringText + +#include +#include +#include + +@class NSCell; +@class NSPasteBoard; + + + +@interface NSCStringText : NSText + + +{ + // Attributes +} + + +// +// Initializing a New NSCStringText Object +// +- (id)initWithFrame:(NSRect)frameRect + text:(NSString *)theText + alignment:(NSTextAlignment)mode; + +// +// Modifying the Frame Rectangle +// +- (void)resizeTextWithOldBounds:(NSRect)oldBounds + maxRect:(NSRect)maxRect; + +// +// Laying Out the Text +// +- (int)calcLine; +- (BOOL)changeTabStopAt:(float)oldX + to:(float)newX; +- (BOOL)charWrap; +- (void *)defaultParagraphStyle; +- (float)descentLine; +- (void)getMarginLeft:(float *)leftMargin + right:(float *)rightMargin + top:(float *)topMargin + bottom:(float *)bottomMargin; +- (void)getMinWidth:(float *)width + minHeight:(float *)height + maxWidth:(float)widthMax + maxHeight:(float)heightMax; +- (float)lineHeight; +- (void *)paragraphStyleForFont:(NSFont *)fontId + alignment:(int)alignment; +- (void)setCharWrap:(BOOL)flag; +- (void)setDescentLine:(float)value; +- (void)setLineHeight:(float)value; +- (void)setMarginLeft:(float)leftMargin + right:(float)rightMargin + top:(float)topMargin + bottom:(float)bottomMargin; +- (void)setNoWrap; +- (void)setParagraphStyle:(void *)paraStyle; +- (BOOL)setSelProp:(NSParagraphProperty)property + to:(float)value; + +// +// Reporting Line and Position +// +- (int)lineFromPosition:(int)position; +- (int)positionFromLine:(int)line; + +// +// Reading and Writing Text +// +- (void)finishReadingRichText; +- (NSTextBlock *)firstTextBlock; +- (NSRect)paragraphRect:(int)paraNumber + start:(int *)startPos + end:(int *)endPos; +- (void)startReadingRichText; + +// +// Editing Text +// +- (void)clear:(id)sender; +- (void)hideCaret; +- (void)showCaret; + +// +// Managing the Selection +// +- (void)getSelectionStart:(NSSelPt *)start + end:(NSSelPt *)end; +- (void)replaceSel:(NSString *)aString; +- (void)replaceSel:(NSString *)aString + length:(int)length; +- (void)replaceSel:(NSString *)aString + length:(int)length + runs:(NSRunArray *)insertRuns; +- (void)scrollSelToVisible; +- (void)selectError; +- (void)selectNull; +- (void)setSelectionStart:(int)start + end:(int)end; +- (void)selectText:(id)sender; + +// +// Setting the font +// ++ (NSFont *)defaultFont; ++ (void)setDefaultFont:(NSFont *)anObject; +- (void)setFont:(NSFont *)fontObj + paragraphStyle:(void *)paragraphStyle; +- (void)setSelFont:(NSFont *)fontObj; +- (void)setSelFont:(NSFont *)fontObj + paragraphStyle:(void *)paragraphStyle; +- (void)setSelFontFamily:(NSString *)fontName; +- (void)setSelFontSize:(float)size; +- (void)setSelFontStyle:(NSFontTraitMask)traits; + +// +// Finding Text +// +- (BOOL)findText:(NSString *)textPattern + ignoreCase:(BOOL)ignoreCase + backwards:(BOOL)backwards + wrap:(BOOL)wrap; + +// +// Modifying Graphics Attributes +// +- (NSColor *)runColor:(NSRun *)run; +- (NSColor *)selColor; +- (void)setSelColor:(NSColor *)color; + +// +// Reusing an NSCStringText Object +// +- (void)renewFont:(NSFont *)newFontObj + text:(NSString *)newText + frame:(NSRect)newFrame + tag:(int)newTag; +- (void)renewFont:(NSString *)newFontName + size:(float)newFontSize + style:(int)newFontStyle + text:(NSString *)newText + frame:(NSRect)newFrame + tag:(int)newTag; +- (void)renewRuns:(NSRunArray *)newRuns + text:(NSString *)newText + frame:(NSRect)newFrame + tag:(int)newTag; + +// +// Setting Window Attributes +// +- (BOOL)isRetainedWhileDrawing; +- (void)setRetainedWhileDrawing:(BOOL)flag; + +// +// Assigning a Tag +// +- (void)setTag:(int)anInt; +- (int)tag; + +// +// Handling Event Messages +// +- (void)becomeKeyWindow; +- (void)moveCaret:(unsigned short)theKey; +- (void)resignKeyWindow; + +// +// Displaying Graphics within the Text +// ++ registerDirective:(NSString *)directive + forClass:class; +- (NSPoint)locationOfCell:(NSCell *)cell; +- (void)replaceSelWithCell:(NSCell *)cell; +- (void)setLocation:(NSPoint)origin + ofCell:(NSCell *)cell; ++ excludeFromServicesMenu:(BOOL)flag; +- (BOOL)readSelectionFromPasteboard:(NSPasteBoard *)pboard; +- (id)validRequestorForSendType:(NSString *)sendType + returnType:(NSString *)returnType; +- (BOOL)writeSelectionToPasteboard:(NSPasteboard *)pboard + types:(NSArray *)types; + +// +// Setting Tables and Functions +// +- (const NSFSM *)breakTable; +- (const unsigned char *)charCategoryTable; +- (NSCharFilterFunc)charFilter; +- (const NSFSM *)clickTable; +- (NSTextFunc)drawFunc; +- (const unsigned char *)postSelSmartTable; +- (const unsigned char *)preSelSmartTable; +- (NSTextFunc)scanFunc; +- (void)setBreakTable:(const NSFSM *)aTable; +- (void)setCharCategoryTable:(const unsigned char *)aTable; +- (void)setCharFilter:(NSCharFilterFunc)aFunction; +- (void)setClickTable:(const NSFSM *)aTable; +- (void)setDrawFunc:(NSTextFunc)aFunction; +- (void)setPostSelSmartTable:(const unsigned char *)aTable; +- (void)setPreSelSmartTable:(const unsigned char *)aTable; +- (void)setScanFunc:(NSTextFunc)aFunction; +- (void)setTextFilter:(NSTextFilterFunc)aFunction; +- (NSTextFilterFunc)textFilter; + +// +// Printing +// +- (void)adjustPageHeightNew:(float *)newBottom + top:(float)oldTop + bottom:(float)oldBottom + limit:(float)bottomLimit; +- (NSSize)cellSize; +- (void)drawWithFrame:(NSRect)cellFrame + inView:(NSView *)controlView; +- (void)highlight:(BOOL)flag + withFrame:(NSRect)cellFrame + inView:(NSView *)controlView; +- (void)readRichText:(NSString *)stringObject + forView:(NSView *)view; +- (NSString *)richTextForView:(NSView *)view; +- (BOOL)trackMouse:(NSEvent *)theEvent + inRect:(NSRect)cellFrame + ofView:(NSView *)controlView + untilMouseUp:(BOOL)untilMouseUp; + +// +// Implemented by the Delegate +// +- (void)textDidRead:(NSCStringText *)textObject + paperSize:(NSSize)paperSize; +- (NSRect)textDidResize:(NSCStringText *)textObject + oldBounds:(NSRect)oldBounds; +- (NSFont *)textWillConvert:(NSCStringText *)textObject + toFont:(NSFont *)font; +- (void)textWillFinishReadingRichText:(NSCStringText *)textObject; +- (void)textWillSetSel:(NSCStringText *)textObject + toFont:(NSFont *)font; +- (void)textWillStartReadingRichText:(NSCStringText *)textObject; +- (NSSize)textWillWrite:(NSCStringText *)textObject; + +// +// Compatibility Methods +// +- (NSCStringTextInternalState *)cStringTextInternalState; + +// +// NSCoding protocol +// +- (void)encodeWithCoder:aCoder; +- initWithCoder:aDecoder; + +// +// NSChangeSpelling protocol +// +- (void) changeSpelling:(id)sender; + +// +// NSIgnoreMisspelledWords protocol +// +- (void)ignoreSpelling:(id)sender; + +@end + +#endif // _GNUstep_H_NSCStringText diff --git a/Headers/gnustep/gui/NSClipView.h b/Headers/gnustep/gui/NSClipView.h index bbb4627f5..53f466351 100644 --- a/Headers/gnustep/gui/NSClipView.h +++ b/Headers/gnustep/gui/NSClipView.h @@ -1,7 +1,7 @@ /* NSClipView.h - Description... + A clipped view Copyright (C) 1996 Free Software Foundation, Inc. diff --git a/Headers/gnustep/gui/NSColor.h b/Headers/gnustep/gui/NSColor.h index 123e82706..f1ae36754 100644 --- a/Headers/gnustep/gui/NSColor.h +++ b/Headers/gnustep/gui/NSColor.h @@ -211,5 +211,14 @@ @end +@interface NSCoder (NSCoderAdditions) + +// +// Converting an Archived NXColor to an NSColor +// +- (NSColor *)decodeNXColor; + +@end + #endif // _GNUstep_H_NSColor diff --git a/Headers/gnustep/gui/NSColorPanel.h b/Headers/gnustep/gui/NSColorPanel.h index ed76c23a8..dbd51141a 100644 --- a/Headers/gnustep/gui/NSColorPanel.h +++ b/Headers/gnustep/gui/NSColorPanel.h @@ -33,6 +33,7 @@ #include #include #include +#include @interface NSColorPanel : NSPanel diff --git a/Headers/gnustep/gui/NSColorPicker.h b/Headers/gnustep/gui/NSColorPicker.h index 4024e1fe7..b5156a605 100644 --- a/Headers/gnustep/gui/NSColorPicker.h +++ b/Headers/gnustep/gui/NSColorPicker.h @@ -1,7 +1,7 @@ /* NSColorPicker.h - Description... + Abstract superclass of custom color pickers Copyright (C) 1996 Free Software Foundation, Inc. @@ -34,8 +34,9 @@ #include #include #include +#include -@interface NSColorPicker : NSObject +@interface NSColorPicker : NSObject { // Attributes @@ -70,6 +71,11 @@ - (void)attachColorList:(NSColorList *)colorList; - (void)detachColorList:(NSColorList *)colorList; +// +// Showing Opacity Controls +// +- (void)alphaControlAddedOrRemoved:(id)sender; + // // Responding to a Resized View // diff --git a/Headers/gnustep/gui/NSColorPicking.h b/Headers/gnustep/gui/NSColorPicking.h new file mode 100644 index 000000000..e211e9616 --- /dev/null +++ b/Headers/gnustep/gui/NSColorPicking.h @@ -0,0 +1,97 @@ +/* + NSColorPicking.h + + Protocols for picking colors + + Copyright (C) 1997 Free Software Foundation, Inc. + + Author: Simon Frankau + Date: 1997 + + This file is part of the GNUstep GUI Library. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this library; if not, write to the Free + Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +#ifndef _GNUstep_H_NSColorPicking +#define _GNUstep_H_NSColorPicking + +#include + +@class NSColor; +@class NSColorPanel; +@class NSImage; +@class NSButtonCell; +@class NSColorList; + +@protocol NSColorPickingCustom + +// +// Getting the Mode +// +- (int)currentMode; +- (BOOL)supportsMode:(int)mode; + +// +// Getting the view +// +- (NSView *)provideNewView:(BOOL)firstRequest; + +// +// Setting the Current Color +// +- (void)setColor:(NSColor *)aColor; + +@end + +@protocol NSColorPickingDefault + +// +// Initialize a Color Picker +// +- (id)initWithPickerMask:(int)mask + colorPanel:(NSColorPanel *)colorPanel; + +// +// Adding Button Images +// +- (void)insertNewButtonImage:(NSImage *)newImage + in:(NSButtonCell *)newButtonCell; +- (NSImage *)provideNewButtonImage; + +// +// Setting the Mode +// +- (void)setMode:(int)mode; + +// +// Using Color Lists +// +- (void)attachColorList:(NSColorList *)aColorList; +- (void)detachColorList:(NSColorList *)aColorList; + +// +// Showing Opacity Controls +// +- (void)alphaControlAddedOrRemoved:(id)sender; + +// +// Responding to a Resized View +// +- (void)viewSizeChanged:(id)sender; + +@end + +#endif // _GNUstep_H_NSColorPicking diff --git a/Headers/gnustep/gui/NSCursor.h b/Headers/gnustep/gui/NSCursor.h index 589e92415..8043cdc25 100644 --- a/Headers/gnustep/gui/NSCursor.h +++ b/Headers/gnustep/gui/NSCursor.h @@ -1,7 +1,7 @@ /* NSCursor.h - Description... + Holds an image to use as a cursor Copyright (C) 1996 Free Software Foundation, Inc. diff --git a/Headers/gnustep/gui/NSDataLink.h b/Headers/gnustep/gui/NSDataLink.h index b1fbab7db..75dde4122 100644 --- a/Headers/gnustep/gui/NSDataLink.h +++ b/Headers/gnustep/gui/NSDataLink.h @@ -1,7 +1,7 @@ /* NSDataLink.h - Description... + Link between a source and dependent document Copyright (C) 1996 Free Software Foundation, Inc. diff --git a/Headers/gnustep/gui/NSDataLinkManager.h b/Headers/gnustep/gui/NSDataLinkManager.h index 5b8ae9533..e95658a44 100644 --- a/Headers/gnustep/gui/NSDataLinkManager.h +++ b/Headers/gnustep/gui/NSDataLinkManager.h @@ -1,7 +1,7 @@ /* NSDataLinkManager.h - Description... + Manager of a NSDataLink Copyright (C) 1996 Free Software Foundation, Inc. diff --git a/Headers/gnustep/gui/NSDataLinkPanel.h b/Headers/gnustep/gui/NSDataLinkPanel.h index eece11438..c307a6f22 100644 --- a/Headers/gnustep/gui/NSDataLinkPanel.h +++ b/Headers/gnustep/gui/NSDataLinkPanel.h @@ -1,7 +1,7 @@ /* NSDataLinkPanel.h - Description... + Standard panel for inspecting data links Copyright (C) 1996 Free Software Foundation, Inc. @@ -33,6 +33,8 @@ #include #include #include +#include + @interface NSDataLinkPanel : NSPanel diff --git a/Headers/gnustep/gui/NSDragging.h b/Headers/gnustep/gui/NSDragging.h new file mode 100644 index 000000000..cc042948b --- /dev/null +++ b/Headers/gnustep/gui/NSDragging.h @@ -0,0 +1,101 @@ +/* + NSDragging.h + + Protocols for drag 'n' drop. + + Copyright (C) 1997 Free Software Foundation, Inc. + + Author: Simon Frankau + Date: 1997 + + This file is part of the GNUstep GUI Library. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this library; if not, write to the Free + Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +#ifndef _GNUstep_H_NSDragging +#define _GNUstep_H_NSDragging + +#include + +@class NSDragOperation; +@class NSWindow; +@class NSPoint; +@class NSPasteBoard; +@class NSImage; + +@interface NSObject (NSDraggingDestination) + +// +// Before the Image is Released +// +- (NSDragOperation)draggingEntered:(id )sender; +- (NSDragOperation)draggingUpdated:(id )sender; +- (void)draggingExited:(id )sender; + +// +// After the Image is Released +// +- (BOOL)prepareForDragOperation:(id )sender; +- (BOOL)performDragOperation:(id )sender; +- (void)concludeDragOperation:(id )sender; + +@end + +@protocol NSDraggingInfo + +// +// Dragging-session Information +// +- (NSWindow *)draggingDestinationWindow; +- (NSPoint)draggingLocation; +- (NSPasteboard *)draggingPasteBoard; +- (int)draggingSequenceNumber; +- (id)draggingSource; +- (NSDragOperation)draggingSourceOperationMask; + +// +// Image Information +// +- (NSImage *)draggedImage; +- (NSPoint)draggedImageLocation; + +// +// Sliding the Image +// +- (void)slideDraggedImageTo:(NSPoint)screenPoint; + +@end + +@interface NSObject (NSDraggingSource) + +// +// Querying the Source +// +- (NSDragOperation)draggingSourceOperationMaskForLocal:(BOOL)isLocal; +- (BOOL)ignoreModifierKeysWhileDragging; + +// +// Informing the Source +// +- (void)draggedImage:(NSImage *)image + beganAt:(NSPoint)screenPoint; +- (void)draggedImage: (NSImage*)image + endedAt: (NSPoint)screenPoint + deposited: (BOOL)didDeposit; + +@end + +#endif // _GNUstep_H_NSDragging diff --git a/Headers/gnustep/gui/NSHelpPanel.h b/Headers/gnustep/gui/NSHelpPanel.h index 135de999f..a627ad37a 100644 --- a/Headers/gnustep/gui/NSHelpPanel.h +++ b/Headers/gnustep/gui/NSHelpPanel.h @@ -1,7 +1,7 @@ /* NSHelpPanel.h - Description... + Standard panel for showing help information Copyright (C) 1996 Free Software Foundation, Inc. @@ -32,6 +32,7 @@ #include #include #include +#include @interface NSHelpPanel : NSPanel diff --git a/Headers/gnustep/gui/NSImage.h b/Headers/gnustep/gui/NSImage.h index 2ac024500..d393e61e3 100644 --- a/Headers/gnustep/gui/NSImage.h +++ b/Headers/gnustep/gui/NSImage.h @@ -31,6 +31,7 @@ #include #include +#include @class NSPasteboard; @class NSMutableArray; diff --git a/Headers/gnustep/gui/NSMenu.h b/Headers/gnustep/gui/NSMenu.h index b01b688cd..4b373a4c9 100644 --- a/Headers/gnustep/gui/NSMenu.h +++ b/Headers/gnustep/gui/NSMenu.h @@ -113,4 +113,13 @@ @end +@interface NSObject (NSMenuActionResponder) + +// +// Updating NSMenuCells +// +- (BOOL)validateCell:(id)aCell; + +@end + #endif // _GNUstep_H_NSMenu diff --git a/Headers/gnustep/gui/NSNibLoading.h b/Headers/gnustep/gui/NSNibLoading.h new file mode 100644 index 000000000..772848fdc --- /dev/null +++ b/Headers/gnustep/gui/NSNibLoading.h @@ -0,0 +1,43 @@ +/* + NSNibLoading.h + + Something to do with loading Nibs? + + Copyright (C) 1997 Free Software Foundation, Inc. + + Author: Simon Frankau + Date: 1997 + + This file is part of the GNUstep GUI Library. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this library; if not, write to the Free + Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +#ifndef _GNUstep_H_NSNibLoading +#define _GNUstep_H_NSNibLoading + +#include +#include + +@interface NSObject (NSNibAwaking) + +// +// Notification of Loading +// +- (void)awakeFromNib; + +@end + +#endif // _GNUstep_H_NSNibLoading diff --git a/Headers/gnustep/gui/NSPageLayout.h b/Headers/gnustep/gui/NSPageLayout.h index 87996129c..69f1d47ad 100644 --- a/Headers/gnustep/gui/NSPageLayout.h +++ b/Headers/gnustep/gui/NSPageLayout.h @@ -1,7 +1,7 @@ /* NSPageLayout.h - Description... + Standard panel for querying user about page layout info Copyright (C) 1996 Free Software Foundation, Inc. @@ -33,6 +33,7 @@ #include #include #include +#include @interface NSPageLayout : NSPanel diff --git a/Headers/gnustep/gui/NSPasteboard.h b/Headers/gnustep/gui/NSPasteboard.h index 411535169..e57fffd98 100644 --- a/Headers/gnustep/gui/NSPasteboard.h +++ b/Headers/gnustep/gui/NSPasteboard.h @@ -1,7 +1,7 @@ /* NSPasteboard.h - Description... + Class to transfer data to and from the pasteboard server Copyright (C) 1996 Free Software Foundation, Inc. diff --git a/Headers/gnustep/gui/NSPopUpButton.h b/Headers/gnustep/gui/NSPopUpButton.h index 323748aca..bb5b77f51 100644 --- a/Headers/gnustep/gui/NSPopUpButton.h +++ b/Headers/gnustep/gui/NSPopUpButton.h @@ -36,7 +36,7 @@ #include #include -@interface NSPopUpButton : NSView +@interface NSPopUpButton : NSButton { // Attributes diff --git a/Headers/gnustep/gui/NSPrintInfo.h b/Headers/gnustep/gui/NSPrintInfo.h index dccef1f91..d35300eaa 100644 --- a/Headers/gnustep/gui/NSPrintInfo.h +++ b/Headers/gnustep/gui/NSPrintInfo.h @@ -1,7 +1,7 @@ /* NSPrintInfo.h - Description... + Stores information used in printing Copyright (C) 1996 Free Software Foundation, Inc. diff --git a/Headers/gnustep/gui/NSPrintOperation.h b/Headers/gnustep/gui/NSPrintOperation.h index b212e7f19..d6236d138 100644 --- a/Headers/gnustep/gui/NSPrintOperation.h +++ b/Headers/gnustep/gui/NSPrintOperation.h @@ -1,7 +1,7 @@ /* NSPrintOperation.h - Description... + Controls operations generating EPS or PS print jobs. Copyright (C) 1996 Free Software Foundation, Inc. diff --git a/Headers/gnustep/gui/NSPrintPanel.h b/Headers/gnustep/gui/NSPrintPanel.h index 5d0628d7f..7f71bf287 100644 --- a/Headers/gnustep/gui/NSPrintPanel.h +++ b/Headers/gnustep/gui/NSPrintPanel.h @@ -1,7 +1,7 @@ /* NSPrintPanel.h - Description... + Standard panel to query users for info on a print job Copyright (C) 1996 Free Software Foundation, Inc. diff --git a/Headers/gnustep/gui/NSPrinter.h b/Headers/gnustep/gui/NSPrinter.h index 82c98ef42..4c5e85ec1 100644 --- a/Headers/gnustep/gui/NSPrinter.h +++ b/Headers/gnustep/gui/NSPrinter.h @@ -1,7 +1,7 @@ /* NSPrinter.h - Description... + Class representing a printer's or printer model's capabilities. Copyright (C) 1996 Free Software Foundation, Inc. diff --git a/Headers/gnustep/gui/NSScreen.h b/Headers/gnustep/gui/NSScreen.h index c73b48b4b..ac3082ced 100644 --- a/Headers/gnustep/gui/NSScreen.h +++ b/Headers/gnustep/gui/NSScreen.h @@ -1,7 +1,7 @@ /* NSScreen.h - Description... + Class representing monitors Copyright (C) 1996 Free Software Foundation, Inc. diff --git a/Headers/gnustep/gui/NSScrollView.h b/Headers/gnustep/gui/NSScrollView.h index a30ef1f92..cc3b593f1 100644 --- a/Headers/gnustep/gui/NSScrollView.h +++ b/Headers/gnustep/gui/NSScrollView.h @@ -1,7 +1,7 @@ /* NSScrollView.h - Description... + A scrolling view to allow documents larger than screen to be shown Copyright (C) 1996 Free Software Foundation, Inc. diff --git a/Headers/gnustep/gui/NSSelection.h b/Headers/gnustep/gui/NSSelection.h index fb5684e1f..ab6fb5274 100644 --- a/Headers/gnustep/gui/NSSelection.h +++ b/Headers/gnustep/gui/NSSelection.h @@ -1,7 +1,7 @@ /* NSSelection.h - Description... + Class describing a selection in a document Copyright (C) 1996 Free Software Foundation, Inc. diff --git a/Headers/gnustep/gui/NSSpellChecker.h b/Headers/gnustep/gui/NSSpellChecker.h index 7dfe33b0c..45777a680 100644 --- a/Headers/gnustep/gui/NSSpellChecker.h +++ b/Headers/gnustep/gui/NSSpellChecker.h @@ -1,7 +1,7 @@ /* NSSpellChecker.h - Description... + Class which is interface to spell-checking service Copyright (C) 1996 Free Software Foundation, Inc. diff --git a/Headers/gnustep/gui/NSSpellProtocol.h b/Headers/gnustep/gui/NSSpellProtocol.h new file mode 100644 index 000000000..a0bd8a13f --- /dev/null +++ b/Headers/gnustep/gui/NSSpellProtocol.h @@ -0,0 +1,43 @@ +/* + NSSpellProtocol.h + + Protocols for spell checking + + Copyright (C) 1997 Free Software Foundation, Inc. + + Author: Simon Frankau + Date: 1997 + + This file is part of the GNUstep GUI Library. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this library; if not, write to the Free + Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +#ifndef _GNUstep_H_NSSpellProtocol +#define _GNUstep_H_NSSpellProtocol + +@protocol NSChangeSpelling + +- (void) changeSpelling:(id)sender; + +@end + +@protocol NSIgnoreMisspelledWords + +- (void)ignoreSpelling:(id)sender; + +@end + +#endif // _GNUstep_H_NSSpellProtocol diff --git a/Headers/gnustep/gui/NSSpellServer.h b/Headers/gnustep/gui/NSSpellServer.h index 8eb4694e0..4b99298eb 100644 --- a/Headers/gnustep/gui/NSSpellServer.h +++ b/Headers/gnustep/gui/NSSpellServer.h @@ -1,7 +1,7 @@ /* NSSpellServer.h - Description... + Class to allow a spell checker to be available to other apps Copyright (C) 1996 Free Software Foundation, Inc. diff --git a/Headers/gnustep/gui/NSSplitView.h b/Headers/gnustep/gui/NSSplitView.h index 1ab8ae5eb..84cee2949 100644 --- a/Headers/gnustep/gui/NSSplitView.h +++ b/Headers/gnustep/gui/NSSplitView.h @@ -1,7 +1,7 @@ /* NSSplitView.h - Description... + Allows multiple views to share a region in a window Copyright (C) 1996 Free Software Foundation, Inc. diff --git a/Headers/gnustep/gui/NSText.h b/Headers/gnustep/gui/NSText.h index 759cdbc12..7f61f7491 100644 --- a/Headers/gnustep/gui/NSText.h +++ b/Headers/gnustep/gui/NSText.h @@ -32,10 +32,11 @@ #include #include #include +#include #include #include -@interface NSText : NSView +@interface NSText : NSView { // Attributes @@ -196,6 +197,16 @@ - (void)encodeWithCoder:aCoder; - initWithCoder:aDecoder; +// +// NSChangeSpelling protocol +// +- (void) changeSpelling:(id)sender; + +// +// NSIgnoreMisspelledWords protocol +// +- (void)ignoreSpelling:(id)sender; + @end #endif // _GNUstep_H_NSText diff --git a/Source/Makefile.in b/Source/Makefile.in index 8b3b28e62..330d573e3 100644 --- a/Source/Makefile.in +++ b/Source/Makefile.in @@ -94,6 +94,7 @@ gui/NSBrowserCell.h \ gui/NSBundle.h \ gui/NSButton.h \ gui/NSButtonCell.h \ +gui/NSCStringText.h \ gui/NSCachedImageRep.h \ gui/NSCell.h \ gui/NSClipView.h \ @@ -101,6 +102,7 @@ gui/NSColor.h \ gui/NSColorList.h \ gui/NSColorPanel.h \ gui/NSColorPicker.h \ +gui/NSColorPicking.h \ gui/NSColorWell.h \ gui/NSControl.h \ gui/NSCursor.h \ @@ -109,6 +111,7 @@ gui/NSCustomImageRep.h GNUSTEP2_HEADERS = gui/NSDataLink.h \ gui/NSDataLinkManager.h \ gui/NSDataLinkPanel.h \ +gui/NSDragging.h \ gui/NSEPSImageRep.h \ gui/NSEvent.h \ gui/NSFont.h \ @@ -122,6 +125,7 @@ gui/NSImageRep.h \ gui/NSMatrix.h \ gui/NSMenu.h \ gui/NSMenuCell.h \ +gui/NSNibLoading.h \ gui/NSOpenPanel.h \ gui/NSPageLayout.h \ gui/NSPanel.h \ @@ -141,6 +145,7 @@ gui/NSSelection.h \ gui/NSSlider.h \ gui/NSSliderCell.h \ gui/NSSpellChecker.h \ +gui/NSSpellProtocol.h \ gui/NSSpellServer.h \ gui/NSSplitView.h \ gui/NSText.h \ @@ -177,8 +182,10 @@ NSBitmapImageRep$(oext) \ NSBox$(oext) \ NSBrowser$(oext) \ NSBrowserCell$(oext) \ +NSBundle$(oext) \ NSButton$(oext) \ NSButtonCell$(oext) \ +NSCStringText$(oext) \ NSCachedImageRep$(oext) \ NSCell$(oext) \ NSClipView$(oext) \ diff --git a/Source/NSBundle.m b/Source/NSBundle.m new file mode 100644 index 000000000..359d3387e --- /dev/null +++ b/Source/NSBundle.m @@ -0,0 +1,51 @@ +/* + NSBundle.m + + Implementation of NSBundle Additions + + Copyright (C) 1997 Free Software Foundation, Inc. + + Author: Simon Frankau + Date: 1997 + + This file is part of the GNUstep GUI Library. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this library; if not, write to the Free + Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +#include +#include + +@implementation NSBundle (NSBundleAdditions) + +- (NSString *)pathForImageResource:(NSString *)name +{ + return nil; +} + ++ (BOOL)loadNibFile:(NSString *)fileName + externalNameTable:(NSDictionary *)context +withZone:(NSZone *)zone +{ + return NO; +} + ++ (BOOL)loadNibNamed:(NSString *)aNibName + owner:(id)owner +{ + return NO; +} + +@end diff --git a/Source/NSCStringText.m b/Source/NSCStringText.m new file mode 100644 index 000000000..95090f496 --- /dev/null +++ b/Source/NSCStringText.m @@ -0,0 +1,573 @@ +/* + NSCStringText.m + + C string text class + + Copyright (C) 1997 Free Software Foundation, Inc. + + Author: Simon Frankau + Date: 1997 + + This file is part of the GNUstep GUI Library. + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with this library; if not, write to the Free + Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + +#include +#include +#include + +// +// NSCStringText implementation +// +@implementation NSCStringText + +// +// Class methods +// ++ (void)initialize +{ + if (self == [NSCStringText class]) + { + // Initial version + [self setVersion:1]; + } +} + +// +// Setting the font +// ++ (NSFont *)defaultFont +{ + return nil; +} + ++ (void)setDefaultFont:(NSFont *)anObject +{} + +// +// Displaying Graphics within the Text +// ++ registerDirective:(NSString *)directive + forClass:class +{ + return nil; +} + ++ excludeFromServicesMenu:(BOOL)flag +{ + return nil; +} + +// +// Instance methods +// +// +// Initializing a New NSCStringText Object +// +- (id)initWithFrame:(NSRect)frameRect + text:(NSString *)theText + alignment:(NSTextAlignment)mode +{ + return nil; +} + +// +// Modifying the Frame Rectangle +// +- (void)resizeTextWithOldBounds:(NSRect)oldBounds + maxRect:(NSRect)maxRect +{} + +// +// Laying Out the Text +// +- (int)calcLine +{ + return 0; +} + +- (BOOL)changeTabStopAt:(float)oldX + to:(float)newX +{ + return NO; +} + +- (BOOL)charWrap +{ + return NO; +} + +- (void *)defaultParagraphStyle +{ + return (void *)0; +} + +- (float)descentLine +{ + return 0.0; +} + +- (void)getMarginLeft:(float *)leftMargin + right:(float *)rightMargin + top:(float *)topMargin + bottom:(float *)bottomMargin +{} + +- (void)getMinWidth:(float *)width + minHeight:(float *)height + maxWidth:(float)widthMax + maxHeight:(float)heightMax +{} + +- (float)lineHeight +{ + return 0.0; +} + +- (void *)paragraphStyleForFont:(NSFont *)fontId + alignment:(int)alignment +{ + return (void *)0; +} + +- (void)setCharWrap:(BOOL)flag +{} + +- (void)setDescentLine:(float)value +{} + +- (void)setLineHeight:(float)value +{} + +- (void)setMarginLeft:(float)leftMargin + right:(float)rightMargin + top:(float)topMargin + bottom:(float)bottomMargin +{} + +- (void)setNoWrap +{} + +- (void)setParagraphStyle:(void *)paraStyle +{} + +- (BOOL)setSelProp:(NSParagraphProperty)property + to:(float)value +{ + return NO; +} + +// +// Reporting Line and Position +// +- (int)lineFromPosition:(int)position +{ + return 0; +} + +- (int)positionFromLine:(int)line +{ + return 0; +} + +// +// Reading and Writing Text +// +- (void)finishReadingRichText +{} + +- (NSTextBlock *)firstTextBlock +{ + return (NSTextBlock *)0; +} + +- (NSRect)paragraphRect:(int)paraNumber + start:(int *)startPos + end:(int *)endPos +{ + return NSZeroRect; +} + +- (void)startReadingRichText +{} + +// +// Editing Text +// +- (void)clear:(id)sender +{} + +- (void)hideCaret +{} + +- (void)showCaret +{} + +// +// Managing the Selection +// +- (void)getSelectionStart:(NSSelPt *)start + end:(NSSelPt *)end +{} + +- (void)replaceSel:(NSString *)aString +{} + +- (void)replaceSel:(NSString *)aString + length:(int)length +{} + +- (void)replaceSel:(NSString *)aString + length:(int)length + runs:(NSRunArray *)insertRuns +{} + +- (void)scrollSelToVisible +{} + +- (void)selectError +{} + +- (void)selectNull +{} + +- (void)setSelectionStart:(int)start + end:(int)end +{} + +- (void)selectText:(id)sender +{} + +// +// Setting the font +// +- (void)setFont:(NSFont *)fontObj + paragraphStyle:(void *)paragraphStyle +{} + +- (void)setSelFont:(NSFont *)fontObj +{} + +- (void)setSelFont:(NSFont *)fontObj + paragraphStyle:(void *)paragraphStyle +{} + +- (void)setSelFontFamily:(NSString *)fontName +{} + +- (void)setSelFontSize:(float)size +{} + +- (void)setSelFontStyle:(NSFontTraitMask)traits +{} + +// +// Finding Text +// +- (BOOL)findText:(NSString *)textPattern + ignoreCase:(BOOL)ignoreCase + backwards:(BOOL)backwards + wrap:(BOOL)wrap +{ + return NO; +} + +// +// Modifying Graphics Attributes +// +- (NSColor *)runColor:(NSRun *)run +{ + return nil; +} + +- (NSColor *)selColor +{ + return nil; +} + +- (void)setSelColor:(NSColor *)color +{} + +// +// Reusing an NSCStringText Object +// +- (void)renewFont:(NSFont *)newFontObj + text:(NSString *)newText + frame:(NSRect)newFrame + tag:(int)newTag +{} + +- (void)renewFont:(NSString *)newFontName + size:(float)newFontSize + style:(int)newFontStyle + text:(NSString *)newText + frame:(NSRect)newFrame + tag:(int)newTag +{} + +- (void)renewRuns:(NSRunArray *)newRuns + text:(NSString *)newText + frame:(NSRect)newFrame + tag:(int)newTag +{} + +// +// Setting Window Attributes +// +- (BOOL)isRetainedWhileDrawing +{ + return NO; +} + +- (void)setRetainedWhileDrawing:(BOOL)flag +{} + +// +// Assigning a Tag +// +- (void)setTag:(int)anInt +{} + +- (int)tag +{ + return 0; +} + +// +// Handling Event Messages +// +- (void)becomeKeyWindow +{} + +- (void)moveCaret:(unsigned short)theKey +{} + +- (void)resignKeyWindow +{} + +// +// Displaying Graphics within the Text +// +- (NSPoint)locationOfCell:(NSCell *)cell +{ + return NSZeroPoint; +} + +- (void)replaceSelWithCell:(NSCell *)cell +{} + +- (void)setLocation:(NSPoint)origin + ofCell:(NSCell *)cell +{} + +- (BOOL)readSelectionFromPasteboard:(NSPasteBoard *)pboard +{ + return NO; +} + +- (id)validRequestorForSendType:(NSString *)sendType + returnType:(NSString *)returnType +{ + return nil; +} + +- (BOOL)writeSelectionToPasteboard:(NSPasteboard *)pboard + types:(NSArray *)types +{ + return NO; +} + +// +// Setting Tables and Functions +// +- (const NSFSM *)breakTable +{ + return (const NSFSM *)0; +} + +- (const unsigned char *)charCategoryTable +{ + return (const unsigned char *)0; +} + +- (NSCharFilterFunc)charFilter +{ + return (NSCharFilterFunc)0; +} + +- (const NSFSM *)clickTable +{ + return (const NSFSM *)0; +} + +- (NSTextFunc)drawFunc +{ + return (NSTextFunc)0; +} + +- (const unsigned char *)postSelSmartTable +{ + return (const unsigned char *)0; +} + +- (const unsigned char *)preSelSmartTable +{ + return (const unsigned char *)0; +} + +- (NSTextFunc)scanFunc +{ + return (NSTextFunc)0; +} + +- (void)setBreakTable:(const NSFSM *)aTable +{} + +- (void)setCharCategoryTable:(const unsigned char *)aTable +{} + +- (void)setCharFilter:(NSCharFilterFunc)aFunction +{} + +- (void)setClickTable:(const NSFSM *)aTable +{} + +- (void)setDrawFunc:(NSTextFunc)aFunction +{} + +- (void)setPostSelSmartTable:(const unsigned char *)aTable +{} + +- (void)setPreSelSmartTable:(const unsigned char *)aTable +{} + +- (void)setScanFunc:(NSTextFunc)aFunction +{} + +- (void)setTextFilter:(NSTextFilterFunc)aFunction +{} + +- (NSTextFilterFunc)textFilter +{ + return (NSTextFilterFunc)0; +} + +// +// Printing +// +- (void)adjustPageHeightNew:(float *)newBottom + top:(float)oldTop + bottom:(float)oldBottom + limit:(float)bottomLimit +{} + +- (NSSize)cellSize +{ + return NSZeroSize; +} + +- (void)drawWithFrame:(NSRect)cellFrame + inView:(NSView *)controlView +{} + +- (void)highlight:(BOOL)flag + withFrame:(NSRect)cellFrame + inView:(NSView *)controlView +{} + +- (void)readRichText:(NSString *)stringObject + forView:(NSView *)view +{} + +- (NSString *)richTextForView:(NSView *)view +{ + return nil; +} + +- (BOOL)trackMouse:(NSEvent *)theEvent + inRect:(NSRect)cellFrame + ofView:(NSView *)controlView + untilMouseUp:(BOOL)untilMouseUp +{ + return NO; +} + +// +// Implemented by the Delegate +// +- (void)textDidRead:(NSCStringText *)textObject + paperSize:(NSSize)paperSize +{} + +- (NSRect)textDidResize:(NSCStringText *)textObject + oldBounds:(NSRect)oldBounds +{ + return NSZeroRect; +} + +- (NSFont *)textWillConvert:(NSCStringText *)textObject + toFont:(NSFont *)font +{ + return nil; +} + +- (void)textWillFinishReadingRichText:(NSCStringText *)textObject +{} + +- (void)textWillSetSel:(NSCStringText *)textObject + toFont:(NSFont *)font +{} + +- (void)textWillStartReadingRichText:(NSCStringText *)textObject +{} + +- (NSSize)textWillWrite:(NSCStringText *)textObject +{ +return NSZeroSize; +} + +// +// Compatibility Methods +// +- (NSCStringTextInternalState *)cStringTextInternalState +{ + return (NSCStringTextInternalState *)0; +} + +// +// NSCoding protocol +// +- (void)encodeWithCoder:aCoder +{} + +- initWithCoder:aDecoder +{ + return nil; +} + +// +// NSChangeSpelling protocol +// +- (void) changeSpelling:(id)sender +{} + +// +// NSIgnoreMisspelledWords protocol +// +- (void)ignoreSpelling:(id)sender +{} + +@end diff --git a/Source/NSColor.m b/Source/NSColor.m index 2da86e4e2..c0541914f 100644 --- a/Source/NSColor.m +++ b/Source/NSColor.m @@ -763,3 +763,18 @@ const float NSWhite = 1; } @end + +// +// Implementation of the NSCoder additions +// +@implementation NSCoder (NSCoderAdditions) + +// +// Converting an Archived NXColor to an NSColor +// +- (NSColor *)decodeNXColor +{ + return nil; +} + +@end diff --git a/Source/NSColorPicker.m b/Source/NSColorPicker.m index 8d6818622..d455e28d4 100644 --- a/Source/NSColorPicker.m +++ b/Source/NSColorPicker.m @@ -90,6 +90,12 @@ - (void)detachColorList:(NSColorList *)colorList {} +// +// Showing Opacity Controls +// +- (void)alphaControlAddedOrRemoved:(id)sender +{} + // // Responding to a Resized View // diff --git a/Source/NSText.m b/Source/NSText.m index 3db461626..f2f5f63bc 100644 --- a/Source/NSText.m +++ b/Source/NSText.m @@ -573,4 +573,16 @@ NSString *NSTextDidChangeNotification; return self; } +// +// NSChangeSpelling protocol +// +- (void) changeSpelling:(id)sender +{} + +// +// NSIgnoreMisspelledWords protocol +// +- (void)ignoreSpelling:(id)sender +{} + @end