This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { scopeName = 'source.js.objj'; | |
| fileTypes = ( 'j', 'J' ); | |
| foldingStartMarker = '(?x) | |
| /\*\*(?!\*) | |
| |^(?![^{]*?//|[^{]*?/\*(?!.*?\*/.*?\{)).*?\{\s*($|//|/\*(?!.*?\*/.*\S)) | |
| |^@(interface|protocol|implementation)\b | |
| '; | |
| foldingStopMarker = '(?<!\*)\*\*/|^\s*\}|^@end\b'; | |
| patterns = ( | |
| { name = 'meta.interface-or-protocol.js.objj'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jscore: jscore.m | |
| gcc -Wall -g -lobjc -o jscore jscore.m -framework JavaScriptCore -framework Foundation | |
| clean: | |
| rm -rf jscore *.o | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var embed = [[ReadOnlyTextField alloc] initWithFrame:CGRectMake(90, 50, 236, 20)]; | |
| [embed setFont:[CPFont systemFontOfSize:12.0]]; | |
| [embed setBordered:YES]; | |
| [embed setBezeled:YES]; | |
| [embed setBezelStyle:CPTextFieldSquareBezel]; | |
| [embed setEditable:YES]; | |
| [embed setStringValue: "theIframeCode"]; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @implementation CPTextView : CPView | |
| { | |
| DOMElement FIXME_textArea; | |
| id _delegate; | |
| CPScrollView _scrollView; | |
| CPView _contentView; | |
| JSObject _existingSelectStart; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var characterKeys = ['s', 'o', 'n', 'b', 'i', 'u', 'a', 'e']; | |
| [[CPDOMWindowBridge sharedDOMWindowBridge] preventCharacterKeysFromPropagating: characterKeys] | |
| var keyCodes = [37, 38, 39, 40]; | |
| [[CPDOMWindowBridge sharedDOMWindowBridge] preventKeyCodesFromPropagating: keyCodes]; | |
NewerOlder