• 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: NSInvocation error when closing a dirty document
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSInvocation error when closing a dirty document
      • From: Brad Stone <email@hidden>
References: 
 >NSInvocation error when closing a dirty document (From: Brad Stone <email@hidden>)
 >Re: NSInvocation error when closing a dirty document (From: Jerry Krinock <email@hidden>)
 >Re: NSInvocation error when closing a dirty document (From: Brad Stone <email@hidden>)

  • Prev by Date: Re: Problem with reading an NSPipe->NSFileHandle to end
  • Next by Date: Re: MPMoviePlayerController playhead position, setting markers to trigger events and notifications (MPMediaPlayback Protocol Reference)
  • Previous by thread: Re: NSInvocation error when closing a dirty document
  • Next by thread: Re: NSInvocation error when closing a dirty document
  • Index(es):
    • Date
    • Thread