From 27529079210b452ceb281e130eec1dce721a6350 Mon Sep 17 00:00:00 2001 From: Cocoa Hoto Date: Mon, 22 May 2023 15:40:19 +0900 Subject: [PATCH] docs: update readme, master branch renamed to main --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 31f7ce5..677a120 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ Note that you can also build and link against the GTK2 version, see build tags b On macOS, you need Xcode or Command Line Tools for Xcode. Note that support for `Cocoa` is a **work in progress**. Not everything is implemented. If you can help with Cocoa or GLCanvas, please join the IUP mailing list. -Also note that you must use and distribute binary in the `.app` directory, together with `.nib` compiled resources, see [example.app](https://github.com/gen2brain/iup-go/tree/master/dist/darwin/example.app). +Also note that you must use and distribute binary in the `.app` directory, together with `.nib` compiled resources, see [example.app](https://github.com/gen2brain/iup-go/tree/main/dist/darwin/example.app). You can also build for GTK+ in macOS, with `gtk` build tag. It will use [Quartz](https://en.wikipedia.org/wiki/Quartz_(graphics_layer)) native rendering. See [screenshot](examples/sample/sample_darwin_gtk.png), `.app` is not required with GTK+. @@ -85,7 +85,7 @@ though not all controls and attributes are possible, check the documentation for ### Documentation [IUP](https://www.tecgraf.puc-rio.br/iup/) documentation is nice, every Go function in doc reference there. -Also check [Go Reference](https://pkg.go.dev/github.com/gen2brain/iup-go/iup) and [Examples](https://github.com/gen2brain/iup-go/tree/master/examples). +Also check [Go Reference](https://pkg.go.dev/github.com/gen2brain/iup-go/iup) and [Examples](https://github.com/gen2brain/iup-go/tree/main/examples). ### Thread-Safety @@ -93,7 +93,7 @@ User interface (and OpenGL) is usually not thread-safe and IUP is not thread-saf Note that a goroutine can arbitrarily and randomly be scheduled or rescheduled on different running threads. The secondary threads (goroutine) should not directly update the UI, instead, use `PostMessage` that is expected to be thread-safe. -See [example](https://github.com/gen2brain/iup-go/tree/master/examples/postmessage) that sends data to an element, +See [example](https://github.com/gen2brain/iup-go/tree/main/examples/postmessage) that sends data to an element, that will be received by a callback when the main loop regains control. You can also use the `IdleFunc` and `Timer`. ### Cross-compile (Linux) @@ -129,4 +129,4 @@ alarm: Mach-O 64-bit arm64 executable, flags: