On Feb 10, 2015, at 11:42 AM, Andreas Höschler <[email protected]> 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 protected])
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/archive%40mail-archive.com
This email sent to [email protected]