org.rococoa.cocoa.appkit.categories
Interface NSAttributedStringKitAdditions

All Known Implementing Classes:
NSAttributedString, NSMutableAttributedString, NSTextStorage

public interface NSAttributedStringKitAdditions

This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java, Rococoa, or JNA.


Nested Class Summary
static interface NSAttributedStringKitAdditions._static_
           
 
Method Summary
 boolean containsAttachments()
           
 NSObject doubleClickAtIndex(int location)
           
 NSAttributedString initWithData_options_documentAttributes_error(NSData data, NSDictionary options, PointerByReference dict, PointerByReference error)
           
 NSAttributedString initWithDocFormat_documentAttributes(NSData data, PointerByReference dict)
           
 NSAttributedString initWithHTML_baseURL_documentAttributes(NSData data, NSURL base, PointerByReference dict)
           
 NSAttributedString initWithHTML_documentAttributes(NSData data, PointerByReference dict)
           
 NSAttributedString initWithHTML_options_documentAttributes(NSData data, NSDictionary options, PointerByReference dict)
           
 NSAttributedString initWithPath_documentAttributes(NSString path, PointerByReference dict)
          These two superseded methods are similar to the first listed above except that they lack the options dictionary and error return arguments.
 NSAttributedString initWithRTF_documentAttributes(NSData data, PointerByReference dict)
          The following methods should now be considered as conveniences for various common document types.
 NSAttributedString initWithRTFD_documentAttributes(NSData data, PointerByReference dict)
           
 NSAttributedString initWithRTFDFileWrapper_documentAttributes(NSFileWrapper wrapper, PointerByReference dict)
          A separate method is available for initializing from an RTFD file wrapper.
 NSAttributedString initWithURL_documentAttributes(NSURL url, PointerByReference dict)
           
 NSAttributedString initWithURL_options_documentAttributes_error(NSURL url, NSDictionary options, PointerByReference dict, PointerByReference error)
          These first two general methods supersede the previous versions shown below.
 int itemNumberInTextList_atIndex(NSTextList list, int location)
           
 int nextWordFromIndex_forward(int location, boolean isForward)
           
 NSObject rangeOfTextBlock_atIndex(NSTextBlock block, int location)
          Convenience methods for calculating the range of an individual text block, range of an entire table, range of a list, and the index within a list.
 NSObject rangeOfTextList_atIndex(NSTextList list, int location)
           
 NSObject rangeOfTextTable_atIndex(NSTextTable table, int location)
           
 

Method Detail

containsAttachments

boolean containsAttachments()

doubleClickAtIndex

NSObject doubleClickAtIndex(int location)

nextWordFromIndex_forward

int nextWordFromIndex_forward(int location,
                              boolean isForward)

rangeOfTextBlock_atIndex

NSObject rangeOfTextBlock_atIndex(NSTextBlock block,
                                  int location)
Convenience methods for calculating the range of an individual text block, range of an entire table, range of a list, and the index within a list.
Original signature : -(id)rangeOfTextBlock:(NSTextBlock*) atIndex:(NSUInteger)


rangeOfTextTable_atIndex

NSObject rangeOfTextTable_atIndex(NSTextTable table,
                                  int location)

rangeOfTextList_atIndex

NSObject rangeOfTextList_atIndex(NSTextList list,
                                 int location)

itemNumberInTextList_atIndex

int itemNumberInTextList_atIndex(NSTextList list,
                                 int location)

initWithURL_options_documentAttributes_error

NSAttributedString initWithURL_options_documentAttributes_error(NSURL url,
                                                                NSDictionary options,
                                                                PointerByReference dict,
                                                                PointerByReference error)
These first two general methods supersede the previous versions shown below. They take a dictionary of options to specify how the document should be loaded. The various possible options are specified above, as NS...DocumentOption. If NSDocumentTypeDocumentOption is specified, the document will be treated as being in the specified format. If NSDocumentTypeDocumentOption is not specified, these methods will examine the document and do their best to load it using whatever format it seems to contain.
Original signature : -(id)initWithURL:(NSURL*) options:(NSDictionary*) documentAttributes:(NSDictionary**) error:(NSError**)


initWithData_options_documentAttributes_error

NSAttributedString initWithData_options_documentAttributes_error(NSData data,
                                                                 NSDictionary options,
                                                                 PointerByReference dict,
                                                                 PointerByReference error)

initWithPath_documentAttributes

NSAttributedString initWithPath_documentAttributes(NSString path,
                                                   PointerByReference dict)
These two superseded methods are similar to the first listed above except that they lack the options dictionary and error return arguments. They will always attempt to determine the format from the document.
Original signature : -(id)initWithPath:(NSString*) documentAttributes:(NSDictionary**)


initWithURL_documentAttributes

NSAttributedString initWithURL_documentAttributes(NSURL url,
                                                  PointerByReference dict)

initWithRTF_documentAttributes

NSAttributedString initWithRTF_documentAttributes(NSData data,
                                                  PointerByReference dict)
The following methods should now be considered as conveniences for various common document types.
Original signature : -(id)initWithRTF:(NSData*) documentAttributes:(NSDictionary**)


initWithRTFD_documentAttributes

NSAttributedString initWithRTFD_documentAttributes(NSData data,
                                                   PointerByReference dict)

initWithHTML_documentAttributes

NSAttributedString initWithHTML_documentAttributes(NSData data,
                                                   PointerByReference dict)

initWithHTML_baseURL_documentAttributes

NSAttributedString initWithHTML_baseURL_documentAttributes(NSData data,
                                                           NSURL base,
                                                           PointerByReference dict)

initWithDocFormat_documentAttributes

NSAttributedString initWithDocFormat_documentAttributes(NSData data,
                                                        PointerByReference dict)

initWithHTML_options_documentAttributes

NSAttributedString initWithHTML_options_documentAttributes(NSData data,
                                                           NSDictionary options,
                                                           PointerByReference dict)

initWithRTFDFileWrapper_documentAttributes

NSAttributedString initWithRTFDFileWrapper_documentAttributes(NSFileWrapper wrapper,
                                                              PointerByReference dict)
A separate method is available for initializing from an RTFD file wrapper. No options apply in this case.
Original signature : -(id)initWithRTFDFileWrapper:(NSFileWrapper*) documentAttributes:(NSDictionary**)