Skip to content

Instantly share code, notes, and snippets.

@mmower
Created July 5, 2011 21:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mmower/1066053 to your computer and use it in GitHub Desktop.
Save mmower/1066053 to your computer and use it in GitHub Desktop.
// .h
NSView *_memberView;
@property (nonatomic,retain) IBOutlet NSView *memberView;
// .m
- (void)windowDidLoad {
...
NSAssert( [self drawer], @"Drawer should not be nil!" );
NSAssert( [self memberView], @"Member View should not be nil when we are setting it!" );
[[self drawer] setContentView:[self memberView]];
NSAssert( [[self drawer] contentView], @"Content View should not be nil when we just set it!" );
...
}
// output
*** Assertion failure in -[NFNetworkWindowController windowDidLoad]
Content View should not be nil when we just set it!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment