code_junkie

initWithFrame not called, but awakeFromNib is

Nov 13th, 2011
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #import <Cocoa/Cocoa.h>
  2.  
  3. @interface OutlineViewSubclass : NSOutlineView {
  4.  
  5. }
  6.  
  7. @end
  8.  
  9. #import "OutlineViewSubclass.h"
  10.  
  11. @implementation OutlineViewSubclass
  12.  
  13. - (id)initWithFrame:(NSRect)frame
  14. {
  15. self = [super initWithFrame:frame];
  16. printf("debug An");
  17. return self;
  18. }
  19.  
  20. - (void)awakeFromNib
  21. {
  22. printf("debug Bn");
  23. }
  24.  
  25. @end
  26.  
  27. debug B
Add Comment
Please, Sign In to add comment