runModalSession & NSToolbar
runModalSession & NSToolbar
- Subject: runModalSession & NSToolbar
- From: Sascha Matzke <email@hidden>
- Date: Sat, 26 Oct 2002 13:36:32 +0200
Hi,
I have here a NSWindow with a NSToolbar attached to it. One of the
NSToolbarItems opens a new window which then initiates a modal session
using:
NSModalSession modalSession = [NSApp beginModalSessionForWindow:[self
window]];
[NSApp runModalSession:modalSession];
When my window is displayed and the NSModalSession is started all
NSToolbarItem instances in the toolbar of the main window are disabled,
except the NSToolbarCustomizeToolbar item which stays active and allows
the manipulation of the toolbar in the main window.
Although one only can submit the changes to the toolbar after the modal
session ends, it is nevertheless a very disturbing behavior - at least
from my point of view - to have an active toolbar item in another
window than the one which runs the modal session.
Has anyone else experienced this behavior?
Sascha
_______________________________________________
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.