• 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
Handling Spelling Action Methods from Carbon
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Handling Spelling Action Methods from Carbon


  • Subject: Handling Spelling Action Methods from Carbon
  • From: Nick Nallick <email@hidden>
  • Date: Fri, 7 Nov 2003 13:40:56 -0500

I have a Carbon app that currently supports spell checking by providing its own UI to the NSSpellChecker API. I'd like to use the Cocoa UI by opening the font panel directly. For the most part I can make this work, but I'm having trouble figuring out how to intercept the action methods sent when buttons are clicked (specifically the NSChangeSpelling and NSIgnoreMisspelledWords protocols). My problem is finding a place to put an object that implements these protocols.

For example the documentation says:
NSChangeSpelling protocol -- changeSpelling:
This message is sent by the NSSpellChecker to the object whose text is being checked.

The NSIgnoreMisspelledWords protocol documentation makes a similar reference to "the object whose text is being checked" but I can't figure out what that means. I've tried inserting a responder after the first responder in the spelling panel and I've tried adding a delegate to NSApp but neither of these seem to be called. I don't think I have a main window so I don't think I can add anything there. The delegate of the spelling panel appears to be the NSSpellChecker object so I don't think I want to mess with that.

Can anyone tell me where NSSpellChecker looks for objects to send these messages to?

Thanks,
Nick Nallick
_______________________________________________
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: TransitionWindowWithOptions work with Cocoa windows?
  • Next by Date: Re: TransitionWindowWithOptions work with Cocoa windows?
  • Previous by thread: Re: TransitionWindowWithOptions work with Cocoa windows?
  • Next by thread: Re: NSAlert with no buttons?
  • Index(es):
    • Date
    • Thread