• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How do you hide/show a window via bindings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do you hide/show a window via bindings?


  • Subject: How do you hide/show a window via bindings?
  • From: Scott Ellsworth <email@hidden>
  • Date: Tue, 7 Jun 2005 14:09:28 -0700

Hi, all.

I tried to use bindngs to show/hide my per-document inspector, and cannot figure out where to put the 'inspectorVisible' field/accessor.

I have an IWMainWindowController and an IWGroupWindowController. Depending on which of the MainWindow and the GroupWindow is frontmost, a different window controller is in the responder loop. The two windows are, of course, in different nibs, so File's Owner in IWGroupWindowController.nib is an IWGroupWindowController.

Ideally, the document would have the accessors, but if I put them in the document, I get a kvc error when the IWGroupWindow's enabled flag is bound to File's Owner.selection.groupWindowVisible.

2005-06-07 14:04:53.388 Astrogator[18914] Error setting value for key path selection.groupWindowVisible of object <NSObjectController: 0x566dbf0>[object class: NSMutableDictionary] (from bound object <NSWindow: 0x5670670>): [<IWGroupWindowController 0x3d29d0> setValue:forUndefinedKey:]: this class is not key value coding- compliant for the key groupWindowVisible.

It is true, an IWGroupWindowController does not have a groupWindowVisible accessor visible, but that is because the accessor is in the MyDocument subclass.

So, am I barking up the wrong tree?

Scott

_______________________________________________
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


  • Follow-Ups:
    • Re: How do you hide/show a window via bindings?
      • From: John Timmer <email@hidden>
  • Prev by Date: Re: NSStatusItem: window instead of menu
  • Next by Date: Re: How do you hide/show a window via bindings?
  • Previous by thread: Anyone interested in helping me port SkiFree (http://ski.ihoc.net/) to MacOS X?
  • Next by thread: Re: How do you hide/show a window via bindings?
  • Index(es):
    • Date
    • Thread