• 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
Re: window does not seem to respond to orderOut:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: window does not seem to respond to orderOut:


  • Subject: Re: window does not seem to respond to orderOut:
  • From: Robert Olivier <email@hidden>
  • Date: Tue, 02 Jun 2009 23:27:34 -0700

Never mind ... silly newbie mistake .. didn't have the window outlet set in IB.

rjo
On Jun 2, 2009, at 8:15 PM, Robert Olivier wrote:

I'm implementing a shared inspector and following the guidance at http://borkware.com/rants/inspectors/

I have a method in my NSWindowController subclass:

- (void) toggle
{
if(!visible) {
visible = true;
[self setDocument: [[NSDocumentController sharedDocumentController] currentDocument]];
[self showWindow: self];
NSLog(@"show inspector window");
} else {
visible = false;
[[self window] orderOut: self];
NSLog(@"hide inspector panel");
}

}


That should toggle visibility of the window without closing/ releasing it. However, when this method is invoked with visible=true, the window does not go away in response to the orderOut: message. Any clue as to why this would be?

rjo

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >window does not seem to respond to orderOut: (From: Robert Olivier <email@hidden>)

  • Prev by Date: Re: Referring to file by Alias ^or^ path
  • Next by Date: Re: NSDictionary dictionaryWithContentsOfURL problem
  • Previous by thread: window does not seem to respond to orderOut:
  • Next by thread: NSDictionary dictionaryWithContentsOfURL problem
  • Index(es):
    • Date
    • Thread