• 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: When is the 'Open Recent' submenu populated?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: [OT] Application ideas
  • Next by Date: NSURL leaking 1.7kb ?
  • Previous by thread: Re: When is the 'Open Recent' submenu populated?
  • Next by thread: Finding number of processors
  • Index(es):
    • Date
    • Thread