Should I call [super awakeFromNib]?

Viewed 13436

If i implement my own version of awakeFromNib, should I call [super awakeFromNib] at the end of my method?

3 Answers

Yes you should.

I implemented drag and drop and everything was working until I added my own awakeFromNib then the drag and drop function whichTypeToProcess never got called.

It wasn't till I added [super awakeFromNib]; as the last statement in my own awakeFromNib that the drag and drop function whichTypeToProcess was being called again and drag and drop started working again.

FYI - This was in a MacOSX application.

Related