kosmictask / fragaria Goto Github PK
View Code? Open in Web Editor NEWCocoa syntax highlighting text view
Cocoa syntax highlighting text view
When using Fragaria in a document-based Cocoa application (where the Fragaria editor is embedded into an NSView in the document window), the first document opens without problems, but when trying to open another one, the app crashes. The error has to do with the "setObject" method. Furthermore, the application crashes when the user scrolls the view, and it does not perform syntax highlighting either. The application itself consists of a simple NSDocument-based application with the code in the sample app provided with the framework. Any idea? Thanks.
is all syntax definitions written for Fragaria or just conventered from some other format?
I tried to automatically convert my local fragria repo but there's an error with one of the functions, which I don't fully understand (provided I've no experience with garbage collected code).
Do you think you will update the code for ARC?
The Fragaria GC and Fragaria targets don't load the preferences correctly on the first start of the app. Syntax coloring does not work until the preferences are reset in the preferences window (and thereby forced to reload).
Note, that the user default plist in ~/Library/Preferences
has to be removed for this to be reproducible.
OS X 10.8
Xcode 4.5.2 (4G2008a)
The podspec points to an old version, which is apparently incompatible with ARC.
Line 45 of MGSFragaria.h is:
#import "SMLSyntaxColouringDelegate.h"
This line throws an error when I use the Framework in my project workspace:
'SMLSyntaxColouringDelegate.h' file not found.
I'm not experienced enough to know for sure, but I'm wondering if this occurs because SMLSyntaxColouringDelegate.h isn't in the Framework/Smultron/headers folder?
I can't seem to get syntaxDefinitionMenu to work, Im pretty new to objective-c, but I have it linked up to a menu item from MGSTextMenuController. Is there something else I have to do?
Hey, can we get an updated ARC compatible version? I've tried some of the forks and tried upgrading the project myself to be ARC compatible to no avail. I really need Fragaria for a desktop project I'm working on. Would love for ARC support. Thanks again for the great work thus far :)
This looks great. Any chance you could convert the project file & XIB files to Xcode/IB 3.1.4 format (perhaps on a 10.5 branch if necessary)? I'd like to be able to use this on my personal machines, which are all Mac OS 10.5.8 / ppc and it's failing to build mainly because of the XIBs. It would also be nice to conditionalize the use of the NSTextStorageDelegate, NSTextViewDelegate formal protocols to support compilation under 10.5.
Just wondering if it's possible for Fragaria to support mixed mode syntax highlighting (the most obvious case being HTML/CSS/JS).
Cheers,
Jeff
In DP3 of Mountain Lion, the Fragaria view doesn't show up when embedded. You can type, copy and paste stuff, and do everything you normally could, you just can't see the view.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.