Latest 0.0.1
Homepage https://github.com/danielmj/DJProgressHUD_OSX
License GNU
Platforms osx 10.8, requires ARC
Frameworks QuartzCore

DJProgressHUD

Progress and Activity HUD for OSX.

I am really excited to introduce this ProgressHUD for osx. When I started my first osx app, I noticed that there was not good alternative to SVProgressHUD for the mac. Because this is a such a great tool for displaying a process, I decided to write it for the mac.

Please let me know if you find this helpfull!

Screenshot

Installation

If you use CocoaPods, the feel free to add the following to your podfile:

pod 'DJProgressHUD_OSX'

# Or if you prefer:
# pod 'DJProgressHUD_OSX', '~> X.X.X'

If you do not use CocoaPods, do the following:

  1. Add DJProgressHUD to your application directory
  2. Ensure ARC is enabled on the project
  3. Import the control you want to use
  4. Refer to the samples below for possible display options

Whats included:

  • DJProgressHUD: A class to show a popup view to the user displaying the current progress or an activity indicator.
  • DJActivityIndicator: A customizable activity indicator. The mac’s version, NSProgressIndicator, just doesn’t cut it.
  • DJProgressIndicator: A customizable circular progress view. Change the thickness, radius, size and color. I couldnt find one for the mac. So again, I made one.

Code Sample

Simple Progress – uses progress indicator

CGFloat currentProgress = 0.33;
[DJProgressHUD showProgress:currentProgress withStatus:@"The Progress!" FromView:self.view];
...
[DJProgressHUD dismiss];

Simple Status – uses activity indicator

[DJProgressHUD showStatus:@"INDICATOR" FromView:self.view];
...
[DJProgressHUD dismiss];

Progress Indicator – Customizing

DJProgressIndicator* progress = [[DJProgressIndicator alloc] initWithFrame: ... ];
[progress setRingThickness:8];
[progress setRingRadius:15];
[progress setBackgroundColor:[NSColor clearColor]];
[progress setRingColor:[NSColor whiteColor] backgroundRingColor:[NSColor darkGrayColor]];
[self.view addSubview:progress];
[progress showProgress: 0.33 ];

Latest podspec

{
    "name": "DJProgressHUD_OSX",
    "version": "0.0.1",
    "summary": "Progress and Activity Indicators and HUD for Mac OS X.",
    "homepage": "https://github.com/danielmj/DJProgressHUD_OSX",
    "license": {
        "type": "GNU",
        "file": "LICENSE.txt"
    },
    "authors": "Daniel Jackson",
    "social_media_url": "http://www.danmjacks.com/",
    "platforms": {
        "osx": "10.8"
    },
    "source": {
        "git": "https://github.com/danielmj/DJProgressHUD_OSX.git",
        "tag": "0.0.1"
    },
    "source_files": "DJProgressHUD/*.{h,m}",
    "public_header_files": "DJProgressHUD/*.h",
    "frameworks": "QuartzCore",
    "requires_arc": true
}

Pin It on Pinterest

Share This