Implement missing protocols and classes.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@2067 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
netcrep 1997-01-29 16:07:56 +00:00
parent c6e9d304af
commit fc3e19d912
41 changed files with 1351 additions and 25 deletions

View file

@ -1,3 +1,24 @@
Wed Jan 29 07:44:32 1997 Simon Frankau <sgf@frankau.demon.co.uk>
* 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 <scottc@net-community.com> Thu Jan 23 15:10:13 1997 Scott Christley <scottc@net-community.com>
* Makefile.in (install): Don't force make of source. * Makefile.in (install): Don't force make of source.

View file

@ -64,7 +64,7 @@ float MB_SCREEN_MAXHEIGHT();
@class NSWindow, NSPanel, NSView, NSMenu; @class NSWindow, NSPanel, NSView, NSMenu;
@class NSSavePanel, NSOpenPanel, NSHelpPanel; @class NSSavePanel, NSOpenPanel, NSHelpPanel;
@class NSClipView, NSScrollView, NSSplitView; @class NSClipView, NSScrollView, NSSplitView;
@class NSText; @class NSText,NSCStringText;
// Controls // Controls
@class NSControl, NSButton, NSTextField, NSScroller, NSBox, NSForm, NSMatrix; @class NSControl, NSButton, NSTextField, NSScroller, NSBox, NSForm, NSMatrix;
@class NSPopUpButton, NSSlider, NSBrowser, NSForm; @class NSPopUpButton, NSSlider, NSBrowser, NSForm;
@ -90,12 +90,14 @@ float MB_SCREEN_MAXHEIGHT();
#include <AppKit/NSButton.h> #include <AppKit/NSButton.h>
#include <AppKit/NSButtonCell.h> #include <AppKit/NSButtonCell.h>
#include <AppKit/NSCachedImageRep.h> #include <AppKit/NSCachedImageRep.h>
#include <AppKit/NSCStringText.h>
#include <AppKit/NSCell.h> #include <AppKit/NSCell.h>
#include <AppKit/NSClipView.h> #include <AppKit/NSClipView.h>
#include <AppKit/NSColor.h> #include <AppKit/NSColor.h>
#include <AppKit/NSColorList.h> #include <AppKit/NSColorList.h>
#include <AppKit/NSColorPanel.h> #include <AppKit/NSColorPanel.h>
#include <AppKit/NSColorPicker.h> #include <AppKit/NSColorPicker.h>
#include <AppKit/NSColorPicking.h>
#include <AppKit/NSColorWell.h> #include <AppKit/NSColorWell.h>
#include <AppKit/NSControl.h> #include <AppKit/NSControl.h>
#include <AppKit/NSCursor.h> #include <AppKit/NSCursor.h>
@ -103,6 +105,7 @@ float MB_SCREEN_MAXHEIGHT();
#include <AppKit/NSDataLink.h> #include <AppKit/NSDataLink.h>
#include <AppKit/NSDataLinkManager.h> #include <AppKit/NSDataLinkManager.h>
#include <AppKit/NSDataLinkPanel.h> #include <AppKit/NSDataLinkPanel.h>
#include <AppKit/NSDragging.h>
#include <AppKit/NSEPSImageRep.h> #include <AppKit/NSEPSImageRep.h>
#include <AppKit/NSEvent.h> #include <AppKit/NSEvent.h>
#include <AppKit/NSFont.h> #include <AppKit/NSFont.h>
@ -116,6 +119,7 @@ float MB_SCREEN_MAXHEIGHT();
#include <AppKit/NSMatrix.h> #include <AppKit/NSMatrix.h>
#include <AppKit/NSMenu.h> #include <AppKit/NSMenu.h>
#include <AppKit/NSMenuCell.h> #include <AppKit/NSMenuCell.h>
#include <AppKit/NSNibLoading.h>
#include <AppKit/NSOpenPanel.h> #include <AppKit/NSOpenPanel.h>
#include <AppKit/NSPageLayout.h> #include <AppKit/NSPageLayout.h>
#include <AppKit/NSPanel.h> #include <AppKit/NSPanel.h>
@ -134,6 +138,7 @@ float MB_SCREEN_MAXHEIGHT();
#include <AppKit/NSSlider.h> #include <AppKit/NSSlider.h>
#include <AppKit/NSSliderCell.h> #include <AppKit/NSSliderCell.h>
#include <AppKit/NSSpellChecker.h> #include <AppKit/NSSpellChecker.h>
#include <AppKit/NSSpellProtocol.h>
#include <AppKit/NSSpellServer.h> #include <AppKit/NSSpellServer.h>
#include <AppKit/NSSplitView.h> #include <AppKit/NSSplitView.h>
#include <AppKit/NSText.h> #include <AppKit/NSText.h>

View file

@ -43,6 +43,8 @@
#include <DPSClient/NSDPSContext.h> #include <DPSClient/NSDPSContext.h>
#include <Foundation/NSNotification.h> #include <Foundation/NSNotification.h>
@class NSPasteboard;
@interface NSApplication : NSResponder <NSCoding> @interface NSApplication : NSResponder <NSCoding>
{ {
@ -257,4 +259,13 @@
@end @end
@interface NSObject (NSServicesRequests)
// Pasteboard Read/Write
- (BOOL)readSelectionFromPasteboard:(NSPasteboard *)pboard;
- (BOOL)writeSelectionToPasteboard:(NSPasteboard *)pboard
types:(NSArray *)types;
@end
#endif // _GNUstep_H_NSApplication #endif // _GNUstep_H_NSApplication

View file

@ -1,7 +1,7 @@
/* /*
NSBrowser.h NSBrowser.h
Description... Control to display and select from hierarchal lists
Copyright (C) 1996 Free Software Foundation, Inc. Copyright (C) 1996 Free Software Foundation, Inc.

View file

@ -29,7 +29,10 @@
#ifndef _GNUstep_H_NSBundleAdditions #ifndef _GNUstep_H_NSBundleAdditions
#define _GNUstep_H_NSBundleAdditions #define _GNUstep_H_NSBundleAdditions
@implementation NSBundle (NSBundleAdditions) #include <AppKit/stdappkit.h>
#include <Foundation/NSBundle.h>
@interface NSBundle (NSBundleAdditions)
- (NSString *)pathForImageResource:(NSString *)name; - (NSString *)pathForImageResource:(NSString *)name;

View file

@ -0,0 +1,297 @@
/*
NSCStringText.h
C string text class
Copyright (C) 1997 Free Software Foundation, Inc.
Author: Simon Frankau <sgf@frankau.demon.co.uk>
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 <AppKit/stdappkit.h>
#include <AppKit/NSText.h>
#include <Foundation/NSCoder.h>
@class NSCell;
@class NSPasteBoard;
@interface NSCStringText : NSText
<NSChangeSpelling, NSIgnoreMisspelledWords, NSCoding>
{
// 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

View file

@ -1,7 +1,7 @@
/* /*
NSClipView.h NSClipView.h
Description... A clipped view
Copyright (C) 1996 Free Software Foundation, Inc. Copyright (C) 1996 Free Software Foundation, Inc.

View file

@ -211,5 +211,14 @@
@end @end
@interface NSCoder (NSCoderAdditions)
//
// Converting an Archived NXColor to an NSColor
//
- (NSColor *)decodeNXColor;
@end
#endif // _GNUstep_H_NSColor #endif // _GNUstep_H_NSColor

View file

@ -33,6 +33,7 @@
#include <AppKit/NSPanel.h> #include <AppKit/NSPanel.h>
#include <AppKit/NSColorList.h> #include <AppKit/NSColorList.h>
#include <Foundation/NSCoder.h> #include <Foundation/NSCoder.h>
#include <AppKit/NSApplication.h>
@interface NSColorPanel : NSPanel <NSCoding> @interface NSColorPanel : NSPanel <NSCoding>

View file

@ -1,7 +1,7 @@
/* /*
NSColorPicker.h NSColorPicker.h
Description... Abstract superclass of custom color pickers
Copyright (C) 1996 Free Software Foundation, Inc. Copyright (C) 1996 Free Software Foundation, Inc.
@ -34,8 +34,9 @@
#include <AppKit/NSImage.h> #include <AppKit/NSImage.h>
#include <AppKit/NSColorList.h> #include <AppKit/NSColorList.h>
#include <AppKit/NSButtonCell.h> #include <AppKit/NSButtonCell.h>
#include <AppKit/NSColorPicking.h>
@interface NSColorPicker : NSObject @interface NSColorPicker : NSObject <NSColorPickingDefault>
{ {
// Attributes // Attributes
@ -70,6 +71,11 @@
- (void)attachColorList:(NSColorList *)colorList; - (void)attachColorList:(NSColorList *)colorList;
- (void)detachColorList:(NSColorList *)colorList; - (void)detachColorList:(NSColorList *)colorList;
//
// Showing Opacity Controls
//
- (void)alphaControlAddedOrRemoved:(id)sender;
// //
// Responding to a Resized View // Responding to a Resized View
// //

View file

@ -0,0 +1,97 @@
/*
NSColorPicking.h
Protocols for picking colors
Copyright (C) 1997 Free Software Foundation, Inc.
Author: Simon Frankau <sgf@frankau.demon.co.uk>
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 <AppKit/NSPasteboard.h>
@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

View file

@ -1,7 +1,7 @@
/* /*
NSCursor.h NSCursor.h
Description... Holds an image to use as a cursor
Copyright (C) 1996 Free Software Foundation, Inc. Copyright (C) 1996 Free Software Foundation, Inc.

View file

@ -1,7 +1,7 @@
/* /*
NSDataLink.h NSDataLink.h
Description... Link between a source and dependent document
Copyright (C) 1996 Free Software Foundation, Inc. Copyright (C) 1996 Free Software Foundation, Inc.

View file

@ -1,7 +1,7 @@
/* /*
NSDataLinkManager.h NSDataLinkManager.h
Description... Manager of a NSDataLink
Copyright (C) 1996 Free Software Foundation, Inc. Copyright (C) 1996 Free Software Foundation, Inc.

View file

@ -1,7 +1,7 @@
/* /*
NSDataLinkPanel.h NSDataLinkPanel.h
Description... Standard panel for inspecting data links
Copyright (C) 1996 Free Software Foundation, Inc. Copyright (C) 1996 Free Software Foundation, Inc.
@ -33,6 +33,8 @@
#include <AppKit/NSPanel.h> #include <AppKit/NSPanel.h>
#include <AppKit/NSDataLink.h> #include <AppKit/NSDataLink.h>
#include <Foundation/NSCoder.h> #include <Foundation/NSCoder.h>
#include <AppKit/NSApplication.h>
@interface NSDataLinkPanel : NSPanel <NSCoding> @interface NSDataLinkPanel : NSPanel <NSCoding>

View file

@ -0,0 +1,101 @@
/*
NSDragging.h
Protocols for drag 'n' drop.
Copyright (C) 1997 Free Software Foundation, Inc.
Author: Simon Frankau <sgf@frankau.demon.co.uk>
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 <AppKit/stdappkit.h>
@class NSDragOperation;
@class NSWindow;
@class NSPoint;
@class NSPasteBoard;
@class NSImage;
@interface NSObject (NSDraggingDestination)
//
// Before the Image is Released
//
- (NSDragOperation)draggingEntered:(id <NSDraggingInfo>)sender;
- (NSDragOperation)draggingUpdated:(id <NSDraggingInfo>)sender;
- (void)draggingExited:(id <NSDraggingInfo>)sender;
//
// After the Image is Released
//
- (BOOL)prepareForDragOperation:(id <NSDraggingInfo>)sender;
- (BOOL)performDragOperation:(id <NSDraggingInfo>)sender;
- (void)concludeDragOperation:(id <NSDraggingInfo>)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

View file

@ -1,7 +1,7 @@
/* /*
NSHelpPanel.h NSHelpPanel.h
Description... Standard panel for showing help information
Copyright (C) 1996 Free Software Foundation, Inc. Copyright (C) 1996 Free Software Foundation, Inc.
@ -32,6 +32,7 @@
#include <AppKit/stdappkit.h> #include <AppKit/stdappkit.h>
#include <AppKit/NSPanel.h> #include <AppKit/NSPanel.h>
#include <Foundation/NSCoder.h> #include <Foundation/NSCoder.h>
#include <AppKit/NSApplication.h>
@interface NSHelpPanel : NSPanel <NSCoding> @interface NSHelpPanel : NSPanel <NSCoding>

View file

@ -31,6 +31,7 @@
#include <AppKit/stdappkit.h> #include <AppKit/stdappkit.h>
#include <DPSClient/TypesandConstants.h> #include <DPSClient/TypesandConstants.h>
#include <AppKit/NSBundle.h>
@class NSPasteboard; @class NSPasteboard;
@class NSMutableArray; @class NSMutableArray;

View file

@ -113,4 +113,13 @@
@end @end
@interface NSObject (NSMenuActionResponder)
//
// Updating NSMenuCells
//
- (BOOL)validateCell:(id)aCell;
@end
#endif // _GNUstep_H_NSMenu #endif // _GNUstep_H_NSMenu

View file

@ -0,0 +1,43 @@
/*
NSNibLoading.h
Something to do with loading Nibs?
Copyright (C) 1997 Free Software Foundation, Inc.
Author: Simon Frankau <sgf@frankau.demon.co.uk>
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 <AppKit/stdappkit.h>
#include <AppKit/NSBundle.h>
@interface NSObject (NSNibAwaking)
//
// Notification of Loading
//
- (void)awakeFromNib;
@end
#endif // _GNUstep_H_NSNibLoading

View file

@ -1,7 +1,7 @@
/* /*
NSPageLayout.h NSPageLayout.h
Description... Standard panel for querying user about page layout info
Copyright (C) 1996 Free Software Foundation, Inc. Copyright (C) 1996 Free Software Foundation, Inc.
@ -33,6 +33,7 @@
#include <AppKit/NSPanel.h> #include <AppKit/NSPanel.h>
#include <AppKit/NSPrintInfo.h> #include <AppKit/NSPrintInfo.h>
#include <Foundation/NSCoder.h> #include <Foundation/NSCoder.h>
#include <AppKit/NSApplication.h>
@interface NSPageLayout : NSPanel <NSCoding> @interface NSPageLayout : NSPanel <NSCoding>

View file

@ -1,7 +1,7 @@
/* /*
NSPasteboard.h NSPasteboard.h
Description... Class to transfer data to and from the pasteboard server
Copyright (C) 1996 Free Software Foundation, Inc. Copyright (C) 1996 Free Software Foundation, Inc.

View file

@ -36,7 +36,7 @@
#include <AppKit/NSFont.h> #include <AppKit/NSFont.h>
#include <Foundation/NSCoder.h> #include <Foundation/NSCoder.h>
@interface NSPopUpButton : NSView <NSCoding> @interface NSPopUpButton : NSButton <NSCoding>
{ {
// Attributes // Attributes

View file

@ -1,7 +1,7 @@
/* /*
NSPrintInfo.h NSPrintInfo.h
Description... Stores information used in printing
Copyright (C) 1996 Free Software Foundation, Inc. Copyright (C) 1996 Free Software Foundation, Inc.

View file

@ -1,7 +1,7 @@
/* /*
NSPrintOperation.h NSPrintOperation.h
Description... Controls operations generating EPS or PS print jobs.
Copyright (C) 1996 Free Software Foundation, Inc. Copyright (C) 1996 Free Software Foundation, Inc.

View file

@ -1,7 +1,7 @@
/* /*
NSPrintPanel.h NSPrintPanel.h
Description... Standard panel to query users for info on a print job
Copyright (C) 1996 Free Software Foundation, Inc. Copyright (C) 1996 Free Software Foundation, Inc.

View file

@ -1,7 +1,7 @@
/* /*
NSPrinter.h NSPrinter.h
Description... Class representing a printer's or printer model's capabilities.
Copyright (C) 1996 Free Software Foundation, Inc. Copyright (C) 1996 Free Software Foundation, Inc.

View file

@ -1,7 +1,7 @@
/* /*
NSScreen.h NSScreen.h
Description... Class representing monitors
Copyright (C) 1996 Free Software Foundation, Inc. Copyright (C) 1996 Free Software Foundation, Inc.

View file

@ -1,7 +1,7 @@
/* /*
NSScrollView.h NSScrollView.h
Description... A scrolling view to allow documents larger than screen to be shown
Copyright (C) 1996 Free Software Foundation, Inc. Copyright (C) 1996 Free Software Foundation, Inc.

View file

@ -1,7 +1,7 @@
/* /*
NSSelection.h NSSelection.h
Description... Class describing a selection in a document
Copyright (C) 1996 Free Software Foundation, Inc. Copyright (C) 1996 Free Software Foundation, Inc.

View file

@ -1,7 +1,7 @@
/* /*
NSSpellChecker.h NSSpellChecker.h
Description... Class which is interface to spell-checking service
Copyright (C) 1996 Free Software Foundation, Inc. Copyright (C) 1996 Free Software Foundation, Inc.

View file

@ -0,0 +1,43 @@
/*
NSSpellProtocol.h
Protocols for spell checking
Copyright (C) 1997 Free Software Foundation, Inc.
Author: Simon Frankau <sgf@frankau.demon.co.uk>
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

View file

@ -1,7 +1,7 @@
/* /*
NSSpellServer.h NSSpellServer.h
Description... Class to allow a spell checker to be available to other apps
Copyright (C) 1996 Free Software Foundation, Inc. Copyright (C) 1996 Free Software Foundation, Inc.

View file

@ -1,7 +1,7 @@
/* /*
NSSplitView.h NSSplitView.h
Description... Allows multiple views to share a region in a window
Copyright (C) 1996 Free Software Foundation, Inc. Copyright (C) 1996 Free Software Foundation, Inc.

View file

@ -32,10 +32,11 @@
#include <AppKit/stdappkit.h> #include <AppKit/stdappkit.h>
#include <AppKit/NSView.h> #include <AppKit/NSView.h>
#include <AppKit/NSFont.h> #include <AppKit/NSFont.h>
#include <AppKit/NSSpellProtocol.h>
#include <Foundation/NSCoder.h> #include <Foundation/NSCoder.h>
#include <Foundation/NSNotification.h> #include <Foundation/NSNotification.h>
@interface NSText : NSView <NSCoding> @interface NSText : NSView <NSChangeSpelling,NSIgnoreMisspelledWords,NSCoding>
{ {
// Attributes // Attributes
@ -196,6 +197,16 @@
- (void)encodeWithCoder:aCoder; - (void)encodeWithCoder:aCoder;
- initWithCoder:aDecoder; - initWithCoder:aDecoder;
//
// NSChangeSpelling protocol
//
- (void) changeSpelling:(id)sender;
//
// NSIgnoreMisspelledWords protocol
//
- (void)ignoreSpelling:(id)sender;
@end @end
#endif // _GNUstep_H_NSText #endif // _GNUstep_H_NSText

View file

@ -94,6 +94,7 @@ gui/NSBrowserCell.h \
gui/NSBundle.h \ gui/NSBundle.h \
gui/NSButton.h \ gui/NSButton.h \
gui/NSButtonCell.h \ gui/NSButtonCell.h \
gui/NSCStringText.h \
gui/NSCachedImageRep.h \ gui/NSCachedImageRep.h \
gui/NSCell.h \ gui/NSCell.h \
gui/NSClipView.h \ gui/NSClipView.h \
@ -101,6 +102,7 @@ gui/NSColor.h \
gui/NSColorList.h \ gui/NSColorList.h \
gui/NSColorPanel.h \ gui/NSColorPanel.h \
gui/NSColorPicker.h \ gui/NSColorPicker.h \
gui/NSColorPicking.h \
gui/NSColorWell.h \ gui/NSColorWell.h \
gui/NSControl.h \ gui/NSControl.h \
gui/NSCursor.h \ gui/NSCursor.h \
@ -109,6 +111,7 @@ gui/NSCustomImageRep.h
GNUSTEP2_HEADERS = gui/NSDataLink.h \ GNUSTEP2_HEADERS = gui/NSDataLink.h \
gui/NSDataLinkManager.h \ gui/NSDataLinkManager.h \
gui/NSDataLinkPanel.h \ gui/NSDataLinkPanel.h \
gui/NSDragging.h \
gui/NSEPSImageRep.h \ gui/NSEPSImageRep.h \
gui/NSEvent.h \ gui/NSEvent.h \
gui/NSFont.h \ gui/NSFont.h \
@ -122,6 +125,7 @@ gui/NSImageRep.h \
gui/NSMatrix.h \ gui/NSMatrix.h \
gui/NSMenu.h \ gui/NSMenu.h \
gui/NSMenuCell.h \ gui/NSMenuCell.h \
gui/NSNibLoading.h \
gui/NSOpenPanel.h \ gui/NSOpenPanel.h \
gui/NSPageLayout.h \ gui/NSPageLayout.h \
gui/NSPanel.h \ gui/NSPanel.h \
@ -141,6 +145,7 @@ gui/NSSelection.h \
gui/NSSlider.h \ gui/NSSlider.h \
gui/NSSliderCell.h \ gui/NSSliderCell.h \
gui/NSSpellChecker.h \ gui/NSSpellChecker.h \
gui/NSSpellProtocol.h \
gui/NSSpellServer.h \ gui/NSSpellServer.h \
gui/NSSplitView.h \ gui/NSSplitView.h \
gui/NSText.h \ gui/NSText.h \
@ -177,8 +182,10 @@ NSBitmapImageRep$(oext) \
NSBox$(oext) \ NSBox$(oext) \
NSBrowser$(oext) \ NSBrowser$(oext) \
NSBrowserCell$(oext) \ NSBrowserCell$(oext) \
NSBundle$(oext) \
NSButton$(oext) \ NSButton$(oext) \
NSButtonCell$(oext) \ NSButtonCell$(oext) \
NSCStringText$(oext) \
NSCachedImageRep$(oext) \ NSCachedImageRep$(oext) \
NSCell$(oext) \ NSCell$(oext) \
NSClipView$(oext) \ NSClipView$(oext) \

51
Source/NSBundle.m Normal file
View file

@ -0,0 +1,51 @@
/*
NSBundle.m
Implementation of NSBundle Additions
Copyright (C) 1997 Free Software Foundation, Inc.
Author: Simon Frankau <sgf@frankau.demon.co.uk>
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 <Foundation/NSBundle.h>
#include <AppKit/NSBundle.h>
@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

573
Source/NSCStringText.m Normal file
View file

@ -0,0 +1,573 @@
/*
NSCStringText.m
C string text class
Copyright (C) 1997 Free Software Foundation, Inc.
Author: Simon Frankau <sgf@frankau.demon.co.uk>
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 <gnustep/gui/NSCStringText.h>
#include <gnustep/gui/NSText.h>
#include <Foundation/NSCoder.h>
//
// 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

View file

@ -763,3 +763,18 @@ const float NSWhite = 1;
} }
@end @end
//
// Implementation of the NSCoder additions
//
@implementation NSCoder (NSCoderAdditions)
//
// Converting an Archived NXColor to an NSColor
//
- (NSColor *)decodeNXColor
{
return nil;
}
@end

View file

@ -90,6 +90,12 @@
- (void)detachColorList:(NSColorList *)colorList - (void)detachColorList:(NSColorList *)colorList
{} {}
//
// Showing Opacity Controls
//
- (void)alphaControlAddedOrRemoved:(id)sender
{}
// //
// Responding to a Resized View // Responding to a Resized View
// //

View file

@ -573,4 +573,16 @@ NSString *NSTextDidChangeNotification;
return self; return self;
} }
//
// NSChangeSpelling protocol
//
- (void) changeSpelling:(id)sender
{}
//
// NSIgnoreMisspelledWords protocol
//
- (void)ignoreSpelling:(id)sender
{}
@end @end