• 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: How to support clicks in a non-selectable NSTextView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to support clicks in a non-selectable NSTextView?


  • Subject: Re: How to support clicks in a non-selectable NSTextView?
  • From: Brian Webster <email@hidden>
  • Date: Mon, 8 Jul 2002 13:57:26 -0500

On Monday, July 8, 2002, at 01:22 PM, Douglas Davidson wrote:

You're making things too difficult. The cleanest way to do this would be to make the view selectable, set the selection to {0, 0}, and refuse all selection changes using the delegate method

- (NSRange)textView:(NSTextView *)textView willChangeSelectionFromCharacterRange:(NSRange)oldSelectedCharRange toCharacterRange:(NSRange)newSelectedCharRange;

Douglas Davidson



Ahh, I knew there must have been something I was missing. That's definitely much cleaner.

--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: How to support clicks in a non-selectable NSTextView? (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: Problems
  • Next by Date: Re: NSRect and the origin
  • Previous by thread: Re: How to support clicks in a non-selectable NSTextView?
  • Next by thread: Receive an URL through my applications icon?
  • Index(es):
    • Date
    • Thread