Re: NSInvocation error when closing a dirty document
Re: NSInvocation error when closing a dirty document
- Subject: Re: NSInvocation error when closing a dirty document
- From: Jerry Krinock <email@hidden>
- Date: Sun, 11 Apr 2010 22:04:17 -0700
Brad, you're overriding a method for a strange purpose, and it looks like you're examining an argument to see if it is a certain Apple private selector, and all this is done to achieve something which is quite ordinary, namely binding your data model to a combo box and a text view.
When you find yourself doing something extraordinary to achieve a result which is ordinary, it means that you took a wrong turn somewhere. Anyone else with a similar problem should instead try the object controller I suggested.
On 2010 Apr 11, at 14:42, Brad Stone wrote:
> - (void)saveDocumentWithDelegate:(id)delegate didSaveSelector:(SEL)didSaveSelector contextInfo:(void *)contextInfo {
>
> if (didSaveSelector == @selector(_document:shouldClose:contextInfo:)) {
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden