On 18 Jul 2017, at 00:30, Quincey Morris <quinceymorris@...> wrote:On Jul 17, 2017, at 07:12 , Gerriet M. Denkmann <g@...> wrote:it works exactly onceYou haven’t really done “due diligence” with this problem description. What does “works” mean?
it works exactly once
That the window doesn’t reappear after it’s made to disappear?
When you call that action method again, is self.prefController nil or not?
Is there a corresponding line of code that sets self.prefController to nil when the window is closed?
Or does the “showWindow” not make the window visible?
Does the action method get called at all, after the first time?
What kind of object is “self”?
How is the “prefController” property declared?
How did you hide the window (orderOut: or close)?
Is it a NSWindow or a NSPanel?
Have you made sure the “release on close” checkbox isn’t set in IB?
(But do you really want the prefs controller to hang around when it’s closed? Seems like a waste of memory to me.)
© 2023 Groups.io