NSWindowController troubles.
NSWindowController troubles.
- Subject: NSWindowController troubles.
- From: Brandon Meyer <email@hidden>
- Date: Tue, 13 Dec 2005 22:02:17 -0600
Hi all,
I'm rather new to this whole Cocoa thing, so any help or insights to
this issue would be greatly appreciated.
I'm having trouble understanding what's actually going on here... I
have an app delegate that handles opening new windows via a
NSWindowController subclass. It also takes care of keeping track of
the front-most window by way of NSNotificationCenter then setting a
local variable of NSWindowController subclass type that corresponds
to the windowController. I am sending UI actions through the
delegate to the front-most window's controller. When I open a new
window, all of the UI actions work correctly until that window loses
focus and then regains focus. I get a flash of the menu to tell me
that it recognized my event, but the window shows no signs of the
event being passed to it.
I should note that my NSWindowController subclass refers to it's
window via an outlet named 'theWindow'. If I change that outlet's
name to 'window', the events seem to pass to the window, but my
custom NSView doesn't display properly.
Brandon Meyer
_______________________________________________
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