• 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
Overriding NSTextView's toggleAutomaticQuoteSubstitution, special considerations?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Overriding NSTextView's toggleAutomaticQuoteSubstitution, special considerations?


  • Subject: Overriding NSTextView's toggleAutomaticQuoteSubstitution, special considerations?
  • From: Philip Dow <email@hidden>
  • Date: Tue, 11 Dec 2007 12:49:48 -0800

I plan to override NSTextView's toggleAutomaticQuoteSubstitution: to handle the toggling myself in such a way that a group of text views in the application is notified of the change (I've set up a user defaults binding in each one and will just change the user defaults value from my override).

Does that toggle method just reverse the value, or does it do something else as well that I need to be aware of, something that won't be done when I override and don't call super's implementation?

I suppose I could pass the reversed value to user defaults *and* call's super's implementation with the only ill effect being that the setter is called twice, but if it isn't necessary I'd prefer not to.

~Phil




_______________________________________________

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: Overriding NSTextView's toggleAutomaticQuoteSubstitution, special considerations?
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: How can I create a multipage PDF?
  • Next by Date: Re: Overriding NSTextView's toggleAutomaticQuoteSubstitution, special considerations?
  • Previous by thread: Re: doc bug: links should be local
  • Next by thread: Re: Overriding NSTextView's toggleAutomaticQuoteSubstitution, special considerations?
  • Index(es):
    • Date
    • Thread