Re: Selector of Open recent document
Re: Selector of Open recent document
- Subject: Re: Selector of Open recent document
- From: Alexander Griekspoor <email@hidden>
- Date: Fri, 28 Apr 2006 00:15:27 +0200
Brilliant J.! That was the trick to find out. The backtrace shows
that the selector is a private one (bummer): _openRecentDocument:
that is targeted to the NSDocumentController (could have guessed
that! ;-). Anyway, implementing the following in my custom chooser
window class perfectly works:
- (IBAction)_openRecentDocument:(id)sender{
[[NSDocumentController sharedDocumentController]_openRecentDocument:
sender];
}
And since I'm only intercepting and forwarding the message, I guess
it's not too bad to touch this private method a bit (that is, unless
someone reveals a big danger)...
Thanks!
Alex
On 27-apr-2006, at 20:42, Jordan Krushen wrote:
On 4/27/06, Alexander Griekspoor <email@hidden> wrote:
I understand Ondra, although I'm not sure I'm working "against" the
framework. Still, that doesn't answer the question which method is
called when you select a recent document from the list...
Have you tried simply setting a breakpoint on your document's -init
method and examining the backtrace when it pauses, comparing it to the
bakctrace from opening a document other ways?
J.
*********************************************************
** Alexander Griekspoor **
*********************************************************
The Netherlands Cancer Institute
Department of Tumorbiology (H4)
Plesmanlaan 121, 1066 CX, Amsterdam
Tel: + 31 20 - 512 2023
Fax: + 31 20 - 512 2029
E-mail: email@hidden
AIM: email@hidden
Web: http://www.mekentosj.com
EnzymeX - To cut or not to cut
http://www.mekentosj.com/enzymex
*********************************************************
_______________________________________________
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