• 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: Invoking a Callback Selector (Newbie question)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Invoking a Callback Selector (Newbie question)


  • Subject: Re: Invoking a Callback Selector (Newbie question)
  • From: Philippe Mougin <email@hidden>
  • Date: Sun, 1 Feb 2004 06:55:13 +0100

Look at the NSInvocation class.

http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ ObjC_classic/Classes/NSInvocation.html

Best,

Philippe Mougin


> I'm overriding the function
>
> - (void)canCloseDocumentWithDelegate:(id)delegate
> shouldCloseSelector:(SEL)shouldCloseSelector contextInfo:
> (void *)contextInfo
>
> If the document should be closed, I'm supposed to invoke the
> shouldCloseSelector callback method with the signature:
>
> - (void)document:(NSDocument *)doc shouldClose:(BOOL)shouldClose
> contextInfo:(void *)contextInfo
>
> This may be a simple question -- but I can't find any examples of
> invoking a selector with three arguments. I've found examples of
> (performSelector:withObject:withObject:). All the different approaches
> I've tried have failed so far, so any help will be appreciated.
>
> Thanks to anyone that can get me out of this brain dead moment..
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Moving focus to an NSTextField.
  • Next by Date: Re: Adding Graphics to Buttons
  • Previous by thread: Re: Moving focus to an NSTextField.
  • Next by thread: Does NSImageView dispose of it's image
  • Index(es):
    • Date
    • Thread