• 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: Disable Text Replacement
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Disable Text Replacement


  • Subject: Re: Disable Text Replacement
  • From: Andy Lee <email@hidden>
  • Date: Tue, 10 Feb 2015 21:30:07 -0500

On Feb 10, 2015, at 11:42 AM, Andreas Höschler <email@hidden> wrote:
> What puzzles me is that [self respondsToSelector:@selector(setAutomaticQuoteSubstitutionEnabled:)] returns NO!? How can this be?

It can't, assuming self is an NSTextView (or, as you seem to be using, a subclass of NSTextView).

How do you know the above returns NO?  Are you using NSLog to print it?  If so, also log what self is, something like this:

	NSLog(@"%@ %d", [self className], [self respondsToSelector:@selector(setAutomaticQuoteSubstitutionEnabled:)]);

I subclassed NSTextView and the above NSLog printed this:

2015-02-10 21:27:21.747 MyApp[69306:303] MyTextView 1

--Andy


_______________________________________________

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: 
 >Disable Text Replacement (From: Andreas Höschler <email@hidden>)
 >Re: Disable Text Replacement (From: Jens Alfke <email@hidden>)
 >Re: Disable Text Replacement (From: Andreas Höschler <email@hidden>)

  • Prev by Date: Re: Disable Text Replacement
  • Next by Date: Using multiple bindings to enable a button
  • Previous by thread: Re: Disable Text Replacement
  • Next by thread: Re: Disable Text Replacement
  • Index(es):
    • Date
    • Thread