Git Product home page Git Product logo

bcfirstlaunchtutorial's Introduction

BCFirstLaunchTutorial

Snapshot5

Installation

  • Drag the five files from the BCFirstTimeLaunch directory (BCFirstLaunchTutorial.*, PopoverView.xib, BCFadedInButton.*) to your project.

Usage

###Init the controller

myPopoverController = [[BCFirstLaunchTutorial alloc] initFromXIB];

###Create Tutorial Trajectory The tutorial will be made of a succession of NSPopovers appearing, pointing to objects and displaying a text of your choosing. The object needs to be able to respond to the selector boundsto be usable.

To add an event to the trajectory, use :

[myPopoverController 	addEventWithObject: myTextField
			andText:@"Click this text field. Close this window to display the next one."];

Then to launch the Tutorial, simply call:

[myPopoverController proceedToNextPopoverEvent];

To go to a given event in the trajectory, use the property @property int currentEvent (NB : Numbered From 0 !) For instance :

[myPopoverController setCurrentEvent:0]; 		//Reset the inner loop to the first event 
[myPopoverController proceedToNextPopoverEvent];	//Then relaunch it

To abort the tutorial : Wait For It !

Limitations

Currently, launching two tutorials at once will result in a painful duplication of all messages.

Sub-Project

BCFadedInButton

BCFadedInButton

bcfirstlaunchtutorial's People

Contributors

bertrand-caron avatar

Stargazers

percy avatar Soneé John avatar  avatar Haris Amin avatar

Watchers

James Cloos avatar  avatar

bcfirstlaunchtutorial's Issues

Adding User Default Writing Capabilities

Idea

Adding a dialog to let the user decide at the end of the Tutorial to "Do not show again". This pref can then be read and exploited by the app using the class.

Status

Working on it :

  • Code is done
  • Still thinking about the design : an appearing NSButton seems too aggressive.

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.