WindowControllers and threads
WindowControllers and threads
- Subject: WindowControllers and threads
- From: email@hidden
- Date: Thu, 27 Mar 2003 11:35:58 -0800 (PST)
Just a little curious as to whether each window has it's own runloop or whether
they share the same runloop as the application (unless they are spawned by a
thread - in which case they use the thread's)?
The reason I am asking is that I have an application that contains 2 windows.
The main window (parent) contains a NSTable and a methood called "insertEntry:"
which adds an enty to the table's datasource.
The child window (child) is simply a dialog that allows for users to enter data
and press a "save" button.
The idea is once the child data is populated and the user presses "save", this
new data should be added to the NSTable's datasource (thus automatically
updating the table view).
The "connection" I have made between the parent and the child is as follows:
The child receives a reference to the parent and calls [parent insertEntry] when
the user presses the "save" button.
If each window has it's own associated thread, then this method is not
correct... but then could anyone suggest a way in which it could be done.
thanks
Zameer *a GUI newbie*
__________________________________________________________
Get your FREE personalized e-mail at
http://www.canada.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.