/Examples

Single place for examples I create: iOS, Mac OS, Cocoa, XCTest, MapKit, Make, Flex/Bison etc.

Examples

Table of Contents generated with DocToc

2014-01-14 How to adjust region to fit custom annotation callout that have just appeared?

Demo project

StackOverflow: How to adjust region to fit custom annotation callout that have just appeared?

2015-06-15 Xcode Analyzer Bug

Xcode Analyzer produces wrong warning: "Function call argument is an uninitialized value"

Demo project

rdar://21383256

2015-06-27 How to animate MKAnnotation on OSX? (Problem solved)

Demo project

StackOverflow: How to animate coordinate property of MKAnnotation-based annotation on OSX?

2015-12-20 Raw Terminal: weird behavior of Left Arrow key

Demo project

StackOverflow: Terminfo: left arrow is mapped to backspace code (8) on default OSX terminal. Why is it so? And how to change it?

2016-02-10 Kingpin: when viewing clusters over the international dateline cluster pins disappear

Demo project

2016-03-12 How to create scrollable NSTextView programmatically?

Working example based on Apple documentation: Text System User Interface Layer Programming Guide - Putting an NSTextView Object in an NSScrollView.

Demo project

2016-03-23 Terminal-like NSTextView

Demo project

Original StackOverflow topic: NSTextView: how to disable single clicks but still allow selection for copy-and-paste?.

2016-03-27 Flex: How to detect partial unfinished token and join its pieces that are obtained from two consequent portions of input?

Demo project

Original StackOverflow topic: How to detect partial unfinished token and join its pieces that are obtained from two consequent portions of input?.

2016-03-28 Reentrant aka thread-safe parser with Flex and Bison

Demo project

Original StackOverflow topic: Problems with reentrant flex and bison.

2016-04-09 How to integrate Make-based subproject into Xcode

Demo project

Original StackOverflow topic: Xcode Build Phase Input Folder.

2016-11-01 Flex, Bison, C++ all in Xcode

Demo project.

Original StackOverflow topic: Flex, Bison, C++ all in Xcode.

2016-11-09 -[NSURLCache currentDiskUsage] doesn't show actual disk usage (or behavior is not documented).

Demo project.

Radar: -[NSURLCache currentDiskUsage] doesn't show actual disk usage (or behavior is not documented)..

2017-02-14 XCTest: focused tests

Demo project.

My post: XCTest: focused tests.

2017-09-16 Possible bug related to LTO in LLVM 5.0.0, mac OS Sierra 10.12.6 (16G29)

https://github.com/stanislaw/Examples/tree/20170916-llvm500-possible-lto-bug

https://bugs.llvm.org/show_bug.cgi?id=34645

2019-02-24 Xcode / C++ / Google Test: blank "hello world" project

Demo project

Russian StackOverflow: Unit - тесты для C++ и Xcode [требует правки]

2020-01-10 Linking a dynamic library that links in symbols from a static library (macOS vs Linux)

Demo project

Linking a dynamic library that links in symbols from a static library: macOS vs Linux

2020-01-24 How to share a global variable between a main process and a dynamic library via a static library (macOS)?

Demo project

How to share a global variable between a main process and a dynamic library via a static library (macOS)