What is the precise role of AppController?


#1

Hi,

I am slightly confused as to the precise role of AppController class here. Why was it needed? Why couldn’t the standard RMDocument class be used?

Thanks in advance


#2

I think that this is because there will only be a single AppController class object instantiated when the RaiseMan application runs. This makes sense since it is interacting with the menu bar and there is only one menu bar no matter how many documents are simultaneously open.

When multiple documents are open there will be multiple RMDocument class objects. Additionally, there is no RMDocument object instantiated when no document is open.

Cheers,
Bob


#3

I understand the need of having a controller for the application itself rather than just for a single document. However, why can’t the AppDelegate class, which already exisits, handle this? :open_mouth: