• Stars
    star
    114
  • Rank 308,031 (Top 7 %)
  • Language
    Objective-C
  • Created over 11 years ago
  • Updated about 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Category to run alerts within NSPopovers.

NSAlert+Popover

This category adds methods to open the alert within a NSPopover below any kind of NSView. The alerts do not run as modal windows, that is, your app continues execution while the alert's result will be processed in a execution block.

NSAlert+Popover Preview

Usage

Create a NSAlert and call runAsPopoverForView:withCompletionBlock:;:

NSAlert *alert = [NSAlert alertWithMessageText:@"Do you really want to delete this item?"
									 defaultButton:@"Delete"
								   alternateButton:@"Learn more"
									   otherButton:@"Cancel"
						 informativeTextWithFormat:@"Deleting this item will erase all associated data in the database. Click learn more if you need additional information."];
					 
[alert runAsPopoverForView:self.showNextDateButton withCompletionBlock:^(NSInteger *result) {
	// handle result
}];

Requirements

NSPopovers require at least OS X 10.7 (OS X Lion). This category has been built for and tested with ARC enabled only!

Contact

License

Copyright (c) 2013 Raffael Hannemann Under BSD License.

Want more?

Follow @raffael_me for similar releases.

More Repositories

1

RMBlurredView

This subclass of NSView can be used to get an iOS 7 like blurred background to mimic a frosted glass effect.
Objective-C
374
star
2

SISinusWaveView

A Siri like voice input visualizer using EZAudio.
Objective-C
273
star
3

iOS.css

High quality lib (CSS, JS) to imitate native iOS UI elements in Web Applications.
CSS
41
star
4

RMSkinnedView

Subclass of NSView with a NSImage as background pattern. Interface Builder properties can be used to directly set the image path.
Objective-C
38
star
5

RMBlurredViewExample

Example project for the RMBlurredView class.
Objective-C
16
star
6

RMSecondaryScroller

This NSScroller sub-class can be used to get a second scroll bar for a NSScrollView instance. This can be useful if you want to have a scrollbar height which is different from the NSScrollView's height.
Objective-C
16
star
7

RMSpotlightQuery

A Cocoa mdfind wrapper to query the Spotlight server within OS X applications.
Objective-C
6
star
8

RMFBLayer

Facebook API access for Mac applications, that uses OS X FB integration if available, otherwise PhFacebook.framework
Objective-C
5
star
9

tuioJSON-Protocol

The official tuioJSON Protocol specification
JavaScript
3
star
10

RMUpdateDetection

Easy app version transition recognizer with delegate pattern.
Objective-C
3
star
11

RMSuggestionPanel

A custom list view with a search filter textfield for OS X applications.
Objective-C
3
star
12

tuioJSON-Parser

JavaScript based tuioJSON Protocol parser to enable HTML5 application to receive Touch events from TUIO servers
JavaScript
3
star
13

Atom.io-Yosemite

A set of settings and stylesheets to make Atom.io look like a real OS X Yosemite app.
CSS
3
star
14

NSObject-DictionaryPropertyMapping

NSObject category for simple NSDictionary-to-NSObject injecting and reading
Objective-C
2
star
15

rattata.js

A lil' MVC architecture for Javascript – use it for your next web app.
JavaScript
2
star
16

RMBorderlessButton

An iOS 7 like, textual-only NSButton subclass with no border.
Objective-C
1
star
17

multitouchOverlay

Shows all Touch Events as red blobs on your web app
JavaScript
1
star