No proper way to run SCI_GETTEXT
Bug #646064 reported by
masmullin
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Scintilla Cocoa |
New
|
Undecided
|
Unassigned |
Bug Description
setStringProperty is not the way to use SCI_GETTEXT.
I've solved this in my mpatch directory via adding the following to ScintillaView
@interface
- (void) setCharProperty: (int) property parameter: (long) parameter value: (char*) value;
@implementation
/**
* Specialized property setter setting char* out parameters
*/
- (void) setCharProperty: (int) property parameter: (long) parameter value: (char*) value
{
mBackend-
}
To post a comment you must log in.
What is wrong with setStringProperty? Do you work with char* pointers in your application instead NSString? Note: for SCI_SETTEXT there is a special method
- (void) setString: (NSString*) aString