Posts

Showing posts with the label macOS

Taming Nsdocument Too Agreement Who's Boss: Creating A Unproblematic Macos Text Editor (Swift 3, Xcode Viii Beta 6)

Image
Looking at Apple's diagrams inward their documentation nosotros meet that NSDocumentController is boss of NSDocument, which inward plough is boss of NSWindowController together with this leads to the document window beingness displayed. Yup, but what is actually happening together with what does this hateful inward price of code? Creating the project As with other apps, create a novel projection together with choose macOS Cocoa every bit the type: And having clicked next, brand certain you lot choose the "Create Document-Based Application" checkbox: Navigating the Files When a document-based app is created amongst the familiar AppDelegate together with ViewController files nosotros convey Document.swift every bit well. This concluding shape file providing a subclass of NSDocument. The most of import matter to banknote origin of all is that: the ViewController shape does not ain or create an instance of our NSDocument subclass (i.e. Document) the...

My Favourite Macos Evolution Bugs

1. Changing the Background Colour Influenza A virus subtype H5N1 elementary matter to create inwards iOS is to alter the background colouring cloth of a sentiment simply inwards macOS you lot necessitate to showtime tell the sentiment you lot desire the layer together with and hence reference the layer. And in conclusion you lot necessitate to overstep away it a CGColor rather than an NSColor. 2. NSTextView NSTextView together with the means it interacts alongside NSScrollView is a whole tin of worms that I'm working on getting my caput around. But 1 of the showtime hurdles is that if you lot are working alongside the element parts: NSLayoutManager, NSTextContainer together with NSTextStorage – together with hence you lot must retain a reference to the text store for it to survive equally expected. Follow @sketchytech

Scrivener 3: Getting Started On A New Inward Ten Questions

Image
The firstly thing you'll demand to exercise is to pick out File > New Project... from the menubar, followed past times Fiction > Novel inward the dialog box that opens. Now nosotros tin start shout out for questions. Question 1: How exercise I give my mass a title? Slow down, you lot powerfulness desire to start alongside a championship but Scrivener views this every bit something probable to move inward flux until the end, hence the developer expects you lot to laid this at compile/export fourth dimension rather than at the firstly of writing. To encounter where you'll laid things similar your mass title, author, etc. larn to File > Compile or Option + Cmd + E . Now on the righthand side click on the luggage tag icon (for metadata) together with you'll bring a serial of boxes for setting the championship together with name. Question 2: What virtually the residuum of the front end matter? In the Binder (i.e. the panel on the left of the primary...

Epub Quick Fixes: Comprehend Icon Non Displaying Inwards Finder Or Ereader Libraries

Image
If you lot discovery that to a greater extent than or less of your EPUB files, instead of displaying their encompass within macOS Finder, or on an eReader, display this: Or another generic placeholder identifying the default app inwards which the file volition open, you lot haven't identified the encompass correctly within your content.opf file. There are 2 steps to cook this: Within the <manifest> tags of your parcel (within the opf file), as well as split to a proclamation of the xhtml of the coverpage you lot postulate to position the ikon itself that you lot are using for the cover, e.g.  <item id="CoverImage" href="images/cover_image.jpg" media-type="image/jpeg" properties="cover-image" /> , making certain to include the attribute properties amongst a value of "cover-image", equally shown, along amongst all the other attributes (of course of written report pointing to your actual image). The kickoff ...

It's Fourth Dimension To Terminate Unzipping Your Epubs In Addition To Get-Go Using Zero Properly On Macos

I'm no zip guru as well as trust me, if I tin purpose a GUI I volition but I've come upwards to realise that I'm wasting a lot of fourth dimension zipping as well as unzipping, as well as piece BBEdit does a expert project of allowing us to browse EPUBs as well as edit EPUBs, it has its limitations. Zipping an EPUB There are a multifariousness of ways y'all mightiness brand it at an EPUB: for example, outputting from an app similar InDesign, or Pages, etc., or creating using the relieve selection inward epubcheck's expanded validation process  (thanks to bowerbird for  drawing my attending to this ; meet also  Jorge's comment on this post ), or manually zipping. My way I ordinarily output from InDesign as well as and thence unzip to brand fixes as well as changes. Currently when I demand to re-zip, this is the code I use: zip -Xr9D ../book.epub mimetype META-INF OEBPS -x *.DS_Store Note: it is of import that prior to running this code y'all alter t...