ftp.nice.ch/pub/next/developer/resources/classes/misckit/MiscKit.1.10.0.s.gnutar.gz#/MiscKit/Temp/Text_more/Text_more.rtf

This is Text_more.rtf in view mode; [Download] [Up]

Release 0.1  Copyright ©1995 by ClassEditor.  All Rights Reserved.






Text_more






Inherits From:	MySuperObject

Conforms To:	MyProtocol

Declared In:	Text_more.h

Depends On:	MySecondClass.h





Category Description

This category is intendet to simplify the work with NeXTs Text class. Currently it only adds methods that will allow you to cut/copy and paste to a specified pasteboard. This is very useful because it is nasty to currupt the main pasteboard when dealing with the normal cut/copy/paste methods.

The mecahnism of cut/copy/paste is very powerful when combined with the Texts find method.

In the future we should have better methods for finding lines, strings that spand multiple runs (different fonts etc.) and many other things that we are used to from the MiscStrings.

Note: The implementation requires a nasty hack because it uses a yet undocumented pasteboard type for RTFD text selections. The source for MailHelper (by Izumi Ohzawa and Manuel Alberto Ricart) brought me to this idea. 
It was tested using NeXTSTEP 3.2 and should work on all the other 3.x releases too.

Remember that making selections inside on text object using selectAll: and its companions causes other text objects to forget about their selections if they are both in the same window (firstResponder mechanism).




Method Types

Cutting and Pasting	- copyTo:
	- cutTo:
	- pasteFrom:






Class Methods

Instance Methods

copyTo:
- copyTo:aPasteboard

Does the obviose It copies the selection to the specified pasteboard.

See also:  - copy:, - writeSelectionToPasteboard:types:




cutTo:
- cutTo:aPasteboard

Well here we will just copy the selection to the given pasteboard and then delete the selection. Basically this is a cut.

See also:  - cut:




pasteFrom:
- pasteFrom:aPasteboard

Replaces the current selection with the contents of the specified pasteboard.

See also:  - paste:, - readSelectionFromPasteboard:




These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.