Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Invoking a Callback Selector (Newbie question)



Hi guys,

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..

Mark Munz
_______________________________________________
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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.