Sample programs showing how to use Xamarin.Mac on OSX.
Перейти к файлу
dependabot[bot] 7b849f28f7
Bump Newtonsoft.Json from 6.0.6 to 13.0.1 in /yosemite/SceneKitSessionWWDC2014/SceneKitSessionWWDC2014 (#141)
Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) from 6.0.6 to 13.0.1.
- [Release notes](https://github.com/JamesNK/Newtonsoft.Json/releases)
- [Commits](JamesNK/Newtonsoft.Json@6.0.6...13.0.1)

---
updated-dependencies:
- dependency-name: Newtonsoft.Json
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-25 10:47:09 +01:00
AnimatedClock improving the readme experience 2019-07-23 09:36:24 -07:00
AnimatingViews improving the readme experience 2019-07-23 09:36:24 -07:00
AzureTodoMac Bump Newtonsoft.Json from 7.0.1 to 13.0.1 in /AzureTodoMac/AzureTodoMac (#143) 2023-01-25 10:46:02 +01:00
ButtonMadness Fix ButtonMadness and MicroSamples/pdf samples 2020-08-11 18:54:00 -04:00
CAQuartzComposition improving the readme experience 2019-07-23 09:36:24 -07:00
CFNetwork Migrate projects to use PackageReferences. (#147) 2023-01-25 10:36:10 +01:00
CircleView improving the readme experience 2019-07-23 09:36:24 -07:00
Constraints improving the readme experience 2019-07-23 09:36:24 -07:00
CoreAnimationBook improving the readme experience 2019-07-23 09:36:24 -07:00
CoreTextArcMonoMac improving the readme experience 2019-07-23 09:36:24 -07:00
CoreWLANWirelessManager [CoreWLANWirelessManager] Location Permission for BSSID Data. Fixes #129. (#139) 2023-01-25 10:07:52 +01:00
CustomFont improving the readme experience 2019-07-23 09:36:24 -07:00
DatePicker improving the readme experience 2019-07-23 09:36:24 -07:00
DockAppIcon improving the readme experience 2019-07-23 09:36:24 -07:00
DocumentSample improving the readme experience 2019-07-23 09:36:24 -07:00
DragAndDropExample [DragAndDropExample] Fix link to image. (#137) 2020-09-24 10:59:34 +02:00
DrawerMadness improving the readme experience 2019-07-23 09:36:24 -07:00
ExtensionSamples improving the readme experience 2019-07-23 09:36:24 -07:00
FSEvents improving the readme experience 2019-07-23 09:36:24 -07:00
Fire improving the readme experience 2019-07-23 09:36:24 -07:00
GLFullScreen sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
GLSLShader sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
GlossyClock dedupe mac sample guids 2019-08-16 16:09:23 -07:00
HeartRateMonitor remote # tag (and other fixes) 2019-07-24 13:25:37 -07:00
Hello_Mac fix screenshot 2019-07-24 17:29:55 -07:00
HttpClient sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
ImageKitDemoStep1 remote # tag (and other fixes) 2019-07-24 13:25:37 -07:00
ImageProtocolSample remote # tag (and other fixes) 2019-07-24 13:25:37 -07:00
MacCollectionNew update docs links 2019-07-23 11:16:32 -07:00
MacControls remote # tag (and other fixes) 2019-07-24 13:25:37 -07:00
MacCopyPaste remote # tag (and other fixes) 2019-07-24 13:25:37 -07:00
MacCustomControl remote # tag (and other fixes) 2019-07-24 13:25:37 -07:00
MacDatabase Migrate projects to use PackageReferences. (#147) 2023-01-25 10:36:10 +01:00
MacDatabinding-Storyboard update docs links 2019-07-23 11:16:32 -07:00
MacDatabinding-XIBs dedupe mac sample guids 2019-08-16 16:09:23 -07:00
MacDialog improving the readme experience 2019-07-23 10:10:34 -07:00
MacImages improving the readme experience 2019-07-23 10:10:34 -07:00
MacInspector update docs links 2019-07-23 11:16:32 -07:00
MacMenus improving the readme experience 2019-07-23 10:10:34 -07:00
MacOpenTK improving the readme experience 2019-07-23 10:10:34 -07:00
MacOutlines improving the readme experience 2019-07-23 10:10:34 -07:00
MacSourceLists improving the readme experience 2019-07-23 10:10:34 -07:00
MacTables improving the readme experience 2019-07-23 10:10:34 -07:00
MacToolbar improving the readme experience 2019-07-23 10:10:34 -07:00
MacWindows fix WillClose event/delegate conflict 2019-12-13 11:38:46 -05:00
MacXibless update docs links 2019-07-23 11:16:32 -07:00
MarkdownViewer sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
MicroSamples Fix ButtonMadness and MicroSamples/pdf samples 2020-08-11 18:54:00 -04:00
MonoMacGameWindow sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
MouseTrackingExample sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
NSAlert sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
NSComboBoxTest sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
NSCustomView sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
NSImageName sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
NSOutlineViewAndTableView sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
NSPortExample sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
NSScrollExample sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
NSTableViewBinding sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
NSTextViewSample sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
OpenGL-NeHe dedupe mac sample guids 2019-08-16 16:09:23 -07:00
OpenGLLayer sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
OpenGLViewSample sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
OutlineView sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
PopupBindings sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
PredicateEditorSample sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
ProgressBarExample sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
QTRecorder sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
ReactiveUIExample Migrate projects to use PackageReferences. (#147) 2023-01-25 10:36:10 +01:00
RoundedTransparentWindow sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
Rulers sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
SCNetworkReachability sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
SceneKitViewer sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
SearchField sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
SkinnableApp sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
SourceWriter sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
StartupTiming Set HttpClientHandler to NSUrlSessionHandler for all samples 2018-05-02 13:22:24 -06:00
StillMotion remote # tag (and other fixes) 2019-07-24 13:25:37 -07:00
TouchBarExample Set HttpClientHandler to NSUrlSessionHandler for all samples 2018-05-02 13:22:24 -06:00
UseMSBuildToCopyFilesToBundleExample sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
UserNotificationExample sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
VillainTracker Fix Villian Tracker exception (#127) 2020-03-02 11:55:22 -06:00
WhereIsMyMac remote # tag (and other fixes) 2019-07-24 13:25:37 -07:00
XMBindingExample sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
XMLocalizationSample improving the readme experience 2019-07-23 09:36:24 -07:00
guiunit-example sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
yosemite Bump Newtonsoft.Json from 6.0.6 to 13.0.1 in /yosemite/SceneKitSessionWWDC2014/SceneKitSessionWWDC2014 (#141) 2023-01-25 10:47:09 +01:00
.gitignore sample metadata schema fix (remove tech) 2019-07-19 18:59:42 -07:00
AUTHORS
Makefile
README.md [yaml] update repo README 2019-08-12 16:05:51 -07:00
config.mk
list-tags
make-sample-metadata
migrate-to-xammac

README.md

Mac Samples

Sample code for Xamarin's C# APIs to develop Mac applications. Visit the Mac Sample Gallery to download individual samples.

License

The Apache License 2.0 applies to all samples in this repository.

Copyright 2011 Xamarin Inc

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Samples Submission Guidelines

Galleries

We love samples! Application samples show off our platform and provide a great way for people to learn our stuff. And we even promote them as a first-class feature of the docs site. You can find our sample galleries here:

Sample GitHub Repositories

These sample galleries are populated by samples in these GitHub repos:

The mobile-samples repository is for samples that are cross-platform. The mac-ios-samples repository is for samples that are Mac/iOS only.

Sample Requirements

We welcome sample submissions, please start by creating an issue with your proposal.

Because the sample galleries are powered by the github sample repos, each sample needs to have the following things:

  • Screenshots - a folder called Screenshots that has at least one screen shot of the sample on each platform (preferably a screen shot for every page or every major piece of functionality). For an example of this, see HeartRateMonitor.

  • Readme - a README.md file that explains the sample, and contains metadata to help customers find it. For an example of this, see HeartRateMonitor. The README file should begin with a YAML header (delimited by ---) with the following keys/values:

    • name - must begin with Xamarin.Mac -

    • description - brief description of the sample (< 150 chars) that appears in the sample code browser search

    • page_type - must be the string sample.

    • languages - coding language/s used in the sample, such as: csharp, fsharp, vb, objc

    • products: should be xamarin for every sample in this repo

    • urlFragment: although this can be auto-generated, please supply an all-lowercase value that represents the sample's path in this repo, except directory separators are replaced with dashes (-) and no other punctuation.

    Here is a working example from HeartRateMonitor README raw view.

    ---
    name: Xamarin.Mac - HeartRateMonitor
    description: The CoreBluetooth framework provides the classes needed for your iOS and Mac apps to communicate with devices that are equipped with Bluetooth low...
    page_type: sample
    languages:
    - csharp
    products:
    - xamarin
    urlFragment: heartratemonitor
    ---
    # Heading 1
    
    rest of README goes here, including screenshot images and requirements/instructions to get it running
    

    NOTE: This must be valid YAML, so some characters in the name or description will require the entire string to be surrounded by " or ' quotes.

  • Buildable solution and .csproj file - the project must build and have the appropriate project scaffolding (solution + .csproj files).

This approach ensures that all samples integrate with the Microsoft sample code browser.

A good example of this stuff is here in the HeartRateMonitor

For a cross-platform sample, please see: https://github.com/xamarin/mobile-samples/tree/master/Tasky

GitHub Integration

We integrate tightly with Git to make sure we always provide working samples to our customers. This is achieved through a pre-commit hook that runs before your commit goes through, as well as a post-receive hook on GitHub's end that notifies our samples gallery server when changes go through.

To you, as a sample committer, this means that before you push to the repos, you should run the "install-hook.bat" or "install-hook.sh" (depending on whether you're on Windows or macOS/Linux, respectively). These will install the Git pre-commit hook. Now, whenever you try to make a Git commit, all samples in the repo will be validated. If any sample fails to validate, the commit is aborted; otherwise, your commit goes through and you can go ahead and push.

This strict approach is put in place to ensure that the samples we present to our customers are always in a good state, and to ensure that all samples integrate correctly with the sample gallery (README.md, Metadata.xml, etc). Note that the master branch of each sample repo is what we present to our customers for our stable releases, so they must always Just Work.

Should you wish to invoke validation of samples manually, simply run "validate.windows" or "validate.posix" (again, Windows vs macOS/Linux, respectively). These must be run from a Bash shell (i.e. a terminal on macOS/Linux or the Git Bash terminal on Windows).

If you have any questions, don't hesitate to ask!