site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=cbfiddle.com; h=from :message-id:content-type:mime-version:subject:date:in-reply-to :cc:to:references; s=cbfiddle.com; bh=5SsNS3xAGW+yRVeG6T2tIiFPWQ A=; b=P3zGDyn8BO0H/LbQAujkW2Psxl0YLyvAHrL7fwou693Nyp7TqrUjrAYpIR wFYZxbOP40+xAMXKqArDIdCee16WrlAT3SOwAUmbwvf3xG1htVbvA2fn4QnZtcJ9 HxXXj1GmAkElY2rKE92QCVfAkYPZOvNb2aC4hyygL+DMcsn5A= Good point. Indeed, it is the responsibility of the app to save the list of ignored words, and there is an API it can use to restore the list into NSSpellChecker. Apple’s own apps are inconsistent. Pages makes the ignored words persistent (although the words do not take effect immediately on reopening a document, presumably a bug). TextEdit and Mail do not. Part of the implementation of persistent ignored words is to provide a way to remove words from the list. Pages does this. Perhaps that is just too much work to support in other apps. Alan
On Aug 22, 2017, at 8:43 PM, Jens Alfke <jens@mooseyard.com> wrote:
On Aug 22, 2017, at 6:26 PM, Alan Snyder <applemail832781@cbfiddle.com <mailto:applemail832781@cbfiddle.com>> wrote:
The documentation that I have seen for the Ignore Spelling contextual menu item says that it applies to the current document, but does not say one way or the other whether the setting is persistent. As far as I can tell, the setting is not persistent. That strikes me as odd. Why would one want to ignore the word only in one editing session? I imagine using this command for words that are correct in context but not correct in all contexts. Any thoughts?
I don't think the spell-checker knows how to persist data [the list of ignored words] into the text being checked. In other words, it doesn't know how or where you're saving that text. If you want this persistent behavior, which I agree is good, you'll have to save the state of that setting, plus the list of ignored words, into your document somehow. (I don't know how to do this; I've never worked with the Cocoa spell-check API.)
—Jens
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com