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

Re: Overriding NSTextView's toggleAutomaticQuoteSubstitution, special considerations?


  • Subject: Re: Overriding NSTextView's toggleAutomaticQuoteSubstitution, special considerations?
  • From: Douglas Davidson <email@hidden>
  • Date: Tue, 11 Dec 2007 12:58:39 -0800


On Dec 11, 2007, at 12:49 PM, Philip Dow wrote:

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.

-toggleAutomaticQuoteSubstitution: is a convenience action method; the primitives are the getter/setter pair, - isAutomaticQuoteSubstitutionEnabled/- setAutomaticQuoteSubstitutionEnabled:. If all you want to do is control the state of quote substitution, you can certainly use the getter/setter methods directly to do that--that's what they're there for.


Douglas Davidson

_______________________________________________

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


References: 
 >Overriding NSTextView's toggleAutomaticQuoteSubstitution, special considerations? (From: Philip Dow <email@hidden>)

  • Prev by Date: Overriding NSTextView's toggleAutomaticQuoteSubstitution, special considerations?
  • Next by Date: Programmatically setting a binding with an NSValueTransformer
  • Previous by thread: Overriding NSTextView's toggleAutomaticQuoteSubstitution, special considerations?
  • Next by thread: Programmatically setting a binding with an NSValueTransformer
  • Index(es):
    • Date
    • Thread