Re: When is the 'Open Recent' submenu populated?
Re: When is the 'Open Recent' submenu populated?
- Subject: Re: When is the 'Open Recent' submenu populated?
- From: Hamish Allan <email@hidden>
- Date: Mon, 21 Mar 2005 13:47:59 +0000
Thank you Leo, I actually solved this problem by declaring a category
on NSDocumentController:
@interface NSDocumentController (Private)
- (void)_prepareForOpeningOfOpenRecentMenu:(id)sender;
@end
Then I forgot to write to the list to let people know.
Best wishes,
Hamish
On Mar 21, 2005, at 11:44, zyx 101 wrote:
I don't like using private APIs, of course, not least of all because
I now get compiler warnings about NSDocumentController maybe not
responding to _prepareForOpeningOfOpenRecentMenu: (can anyone tell me
how to get rid of this warning?).
I don't have MacOSX, but in Openstep you can call an Objective-C
method with the functions objc_msgSend, objc_msgSendSuper
(objc/objc-runtime.h)
If you have return values other that id or "void" use NSInvocation
This will work:
- (void)_prepareForOpeningOfOpenRecentMenu:(id)sender
{
objc_msgSendSuper(super,
@selector(_prepareForOpeningOfOpenRecentMenu:), sender);
Bye
Leo
_______________________________________________
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