문제

I need to instantiate some properties with the content of the saved document. Since theses properties are used by my interface, I would like to instantiate them before the NIB is loaded.

At which point of my initialization can I access the data of the loaded document ?

If possible, I would like to access it not from the initFromURL method. Indeed, when I create a document, I also create this data. So, if it is possible, I would like to put the instanciation at only one point, that will work for both the creation and the opening of a document.

So, is there an accessible point after the initFromURL and initWithType methods but before the windowControllerDidLoadNib.

Thanks !

도움이 되었습니까?

해결책

Easy !

-windowControllerWillLoadNib
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top