• 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: -[NSWindow parentWindow] for sheet never works?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -[NSWindow parentWindow] for sheet never works?


  • Subject: Re: -[NSWindow parentWindow] for sheet never works?
  • From: Graham Cox <email@hidden>
  • Date: Wed, 25 Nov 2015 21:49:52 +1100

> On 25 Nov 2015, at 4:58 PM, Quincey Morris <email@hidden> wrote:
>
> n the end, I’ve come to the (possibly incorrect) conclusion, and that Graham misspoke.

Yup, I’m a complete idiot. I looked at the docs, saw [NSWindow -endSheet:sheetWindow] and totally misinterpreted it. I might be losing my mind, this sort of thing seems to be happening a lot lately.

I also felt sure that I’d used endSheet to trigger a completion block in the manner I suggested, but now I come to look for a concrete example that’s not the case:

- (IBAction)	ok:(id)sender
{
	[self.window.sheetParent endSheet:self.window returnCode:NSOKButton];
}




So, as you were, carry on.

—G.
_______________________________________________

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


  • Follow-Ups:
    • Re: -[NSWindow parentWindow] for sheet never works?
      • From: Jerry Krinock <email@hidden>
References: 
 >-[NSWindow parentWindow] for sheet never works? (From: Jerry Krinock <email@hidden>)
 >Re: -[NSWindow parentWindow] for sheet never works? (From: Graham Cox <email@hidden>)
 >Re: -[NSWindow parentWindow] for sheet never works? (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Why can't a Swift method directly access a static member?
  • Next by Date: Re: Swift - internal class conforming to public protocol
  • Previous by thread: Re: -[NSWindow parentWindow] for sheet never works?
  • Next by thread: Re: -[NSWindow parentWindow] for sheet never works?
  • Index(es):
    • Date
    • Thread