Skip to content
A reusable subclass of NSPanel that makes deploying sheets much saner.
Objective-C
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
PRHSheet.xcodeproj
PRHSheet
LICENSE.txt
README.md

README.md

PRHSheet

A reusable subclass of NSPanel to make deploying sheets much saner

Features/Improvements over built-in API

  • Responds to ok: and cancel:, so you can connect OK/Done and Cancel buttons directly to the sheet and have them work
  • No need to talk to NSApp for something that's none of its business
  • No more callback object and selector; instead, you pass a block
  • Automatically orders itself out when you end or the user ends the sheet
  • Function to convert a return code to a string for debug log output

Sample

See the runSheet: action method in the included test app's app delegate.

Something went wrong with that request. Please try again.