Coder Social home page Coder Social logo

carabina / cocoaprogrammatichowtocollection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from eonil/cocoaprogrammatichowtocollection

0.0 1.0 0.0 1.04 MB

A collection of programmatic how-to code examples for each cases to write a Cocoa GUI (AppKit) app and some non GUI stuffs.

Swift 51.57% Objective-C 48.43%

cocoaprogrammatichowtocollection's Introduction

Eonil/CocoaProgrammaticHowtoCollection

2014/06/13 2015/01/10 Hoon H.

This shows how to create a Cocoa GUI app using only program code with no Interface Builder / Storyoard stuffs. Apple sample codes are great, but in many cases it lacks programmatic-only way and overly complex.

It's arguable that which one of IB-ful or IB-less strategy is better. But it's also clear that the IB sometimes doesn't fit to, work on or serve well some situations. This how-to examples are written for the situations.

This also contains some non-GUI stuffs lacked in Apple's documentation. For example, Umbrella framework.

These examples always aim minimal code and configuration, then what you see is all fully required to do the job.

  • ComponentUsages

    Contains Swift examples. Written and tested in OSX 10.10.

    • Bootstrapping. How to make an empty AppKit application.
    • SplitViewExample. How to use NSSplitViewController.
    • TextInput. How to take international text input using NSTextInputClient mechanism.
    • TextView. How to make NSTextView properly working with scrolling.
    • OutlineViewExample. How to fully establish working NSOutlineView.
    • BorderlessRoundWindowWithShadow. How to make a border-less window with round corners and proper shadow. A bit verbose.
    • RegularDarkVibrantWindow. How to make a dark NSWindow with blurred transparent background. A bit verbose.
    • CustomNSTextViewWithNSTextStorage. How to make a custom NSTextView with custom NSTextStorage. A bit verbose.
    • CollectionView. How to use NSCollectionView.
    • NSTableViewExample. How to make view-based NSTableView with reused component views.
    • NSToolbar. How to make and use NSToolbar within an NSWindow properly.
  • ComponentUsagesInObjectiveC

    Contains Objective-C based examples. Written and tested in OSX 10.9.

  • NonUIStuffsExamples

    Contains non-UI stuff examples. Written and tested in OSX 10.9.

  • iOSExamples

    Contains iOS stuff examples. Written in Swift and tested in iOS 8.0.

License

This code is written by Hoon H. (a.k.a. Eonil), and licensed under MIT license.

Contribution

The ultimate goal of this project is providing a collection of minimal examples for each single situations so I can imediately assemble them to figure out precise solution for my (and holpefully your) problems. It will be nice if you help me to improve this collection by reporting some issues, suggestions, questions or even a pull request!

cocoaprogrammatichowtocollection's People

Contributors

eonil avatar

Watchers

Carabineiro avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.