Skip to content

A NSView subclass which displays a message when empty

Notifications You must be signed in to change notification settings

JustSid/JUEmptyView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Another shameless copy of an Xcode 4 component. A NSView subclass that displays a custom message inside a bubble whenever the view becomes empty (that is, it doesn't have any subviews). When a view is added, the message disappears automatically, similar to the behvaior of Xcode 4's Inspector View when empty.

Usage

Just make any view an instance of JUEmptyView and you are done. The rest is managed automagically for you, however, if you want you can customize the font, text color and background color (the default values copy the Xcode 4 colors), as well as the displayed text.

Screenshot

image

About

A NSView subclass which displays a message when empty

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published