Git Product home page Git Product logo

mac-pppoe's Introduction

mac-pppoe

mac-pppoe

pppoe client for mac osx, both for Ethernet and IEEE80211(airport) If local type(you chose Ethernet or Airport before) pppoe is exsit, the app just call it; If not, the app create it with your choose type(Ethernet or Airport)

Contents

  1. The application icon
  2. The application updates
  3. Application background
  4. Internationalization
  5. The program logic section
  6. The post-maintenance
  7. Development environment
  8. About quit-action Update

detail

1. The application icon

PPPoEClient.icns, you can diy it yourself。 128 × 128 pixels

2. The application updates

I write it in pppoeGUI.

2.1 constant

const NSString *curl=@"http://dev.cppfun.com/pppoe.txt";
const int ccurrVesion=1;

2.2 function

- (void)checkUpdate:(const NSString *)url version:(int)currVesion;

2.3 call it

I put it in the position after the success pppoe connection for backend asynchronous checks note: // osx can make the app with 32bit and 64bit together // so we do need the Ostype request field on osx // http://dev.cppfun.com/pppoe.txt?CurrVersion=1 I just implement it by response a simple string

// here do some update check
[self checkUpdate:curl version:ccurrVesion];

3. Application background img

background.jpg Do not change the name and type. Image Size:465 × 329 pixels You can replace the image to modify the application background.

4. Internationalization

both English and Chinese Localizable.strings includes chinese and english Note that the inside of the format (with a semicolon):

"updateLabel" = "A new version find.";
"updateLabel" = "发现一个新版本.";

5. The program logic section

cocoa model.

6. The post-maintenance

I do.

7. Development environment

  • OSX Version 10.11.1 (15B42) 64-bit;
  • xcode Version 7.2 (7C68);

8. About quit-action Update

just update pppoeGUI.m - (IBAction)qButtonAction:(id)sender;

- (IBAction)qButtonAction:(id)sender {
    // update for cancel begin
    if (queue) [queue cancelAllOperations];
    if (tStatus == kDisconnectTitle || tStatus == kCancelTitle) {
        [self addOperation:kPPPDisconnect];
    }
    // update for cancel endl
	[[NSApplication sharedApplication] terminate:sender];
}

License

MIT

http://www.cppfun.com

mac-pppoe's People

Contributors

quantxyz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

stonefive

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.