Re: NSDocumentController didCloseAllSelector

2009-10-01 Thread Adam R. Maxwell
On Sep 30, 2009, at 9:47 PM, Michael Ash wrote: On Wed, Sep 30, 2009 at 9:39 PM, Adam R. Maxwell wrote: On Sep 30, 2009, at 7:15 PM, Graham Cox wrote: On 01/10/2009, at 12:06 PM, Adam R. Maxwell wrote: That should bring you to a helpful discussion titled "Advice for Overriders of Metho

Re: NSDocumentController didCloseAllSelector

2009-09-30 Thread Michael Ash
On Wed, Sep 30, 2009 at 9:39 PM, Adam R. Maxwell wrote: > > On Sep 30, 2009, at 7:15 PM, Graham Cox wrote: > >> >> On 01/10/2009, at 12:06 PM, Adam R. Maxwell wrote: >> >>> That should bring you to a helpful discussion titled "Advice for >>> Overriders of Methods that Follow the >>> delegate:didSo

Re: NSDocumentController didCloseAllSelector

2009-09-30 Thread Adam R. Maxwell
On Sep 30, 2009, at 7:15 PM, Graham Cox wrote: On 01/10/2009, at 12:06 PM, Adam R. Maxwell wrote: That should bring you to a helpful discussion titled "Advice for Overriders of Methods that Follow the delegate:didSomethingSelector:contextInfo: Pattern." Wow. I thought it was byzantine

Re: NSDocumentController didCloseAllSelector

2009-09-30 Thread Graham Cox
On 01/10/2009, at 12:06 PM, Adam R. Maxwell wrote: NSInvocation is the correct way to handle this. See the 10.5 release notes, and search for NSInvocation on that page: http://developer.apple.com/mac/library/releasenotes/Cocoa/AppKitOlderNotes.html#X10_5Notes That should bring you to a hel

Re: NSDocumentController didCloseAllSelector

2009-09-30 Thread Chris Idou
From: Graham Cox To: Chris Idou Cc: cocoa-dev@lists.apple.com Sent: Thursday, 1 October, 2009 11:42:05 AM Subject: Re: NSDocumentController didCloseAllSelector On 01/10/2009, at 11:00 AM, Chris Idou wrote: > The doco for closeAllDocumentsWithDelegate:didCloseAllS

Re: NSDocumentController didCloseAllSelector

2009-09-30 Thread Adam R. Maxwell
On Sep 30, 2009, at 6:42 PM, Graham Cox wrote: I can't actually see an easy way to invoke the callback selector with the signature as given - you need to pass it the document (self), a BOOL and the contextInfo. You can invoke the method directly on the delegate easily enough, but since you

Re: NSDocumentController didCloseAllSelector

2009-09-30 Thread Graham Cox
On 01/10/2009, at 11:00 AM, Chris Idou wrote: The doco for closeAllDocumentsWithDelegate:didCloseAllSelector:contextInfo: says that it should call the didCloseAllSelector. How would one do that? This is what I am doing: Chris, this stuff is a right old mess. No wonder you're confused. I