menu enabling with miniturized windows?
menu enabling with miniturized windows?
- Subject: menu enabling with miniturized windows?
- From: Ken Victor <email@hidden>
- Date: Tue, 13 Sep 2005 13:27:08 -0700
i have a multi-window (multi document core data) cocoa document app.
i've noticed if all the windows of a document are miniaturized, then
my "document menu items" are not enabled. by "document menu items" i
mean those menu items that are handled (and "validated by") my
subclass of NSPersistentDocument. i mostly understand this as in my
main nib file, these items have the first responder as their target,
and with all windows miniaturized, the first responder will be my app
(and its delegate).
i can think of the following "fixes" for this situation:
1) "handle" these menu items redundantly in my app delegate
2) "handle" these menu items in my app delegate and remove their
"handling" from my document class
3) change the file's owner in my nib file from NSApplication to be my
document class and retarget all the other menu items to first
responder instead of file owner.
i'm not sure of the consequences of approach 3.
so... is the behaviour i'm seeing the expected behavior? if not, have
i done something wrong. if the behavior is as it should be per the
above explanation/analysis, which of the above 3 approaches is the
best solution? or is there some other solution (i hope so, as i'm not
fond of any of the 3).
thanx,
ken
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden