• 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
Using NSTextViews in custom view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using NSTextViews in custom view


  • Subject: Using NSTextViews in custom view
  • From: Michael Becker <email@hidden>
  • Date: Thu, 15 Sep 2005 18:12:00 +0200

Hi all,

I am trying to let the user enter text in a custom view. I basically want to display rectangles that allow for text input. To achieve this, I am using NSTextViews that I create programmatically. But I am running into two big problems:

1) Can I rotate an NSTextView? The user will be able to edit the rectangular area for the text, i.e. resize it or rotate it.

2) How can I determine whether an NSTextView just became "activated" or "deactivated". If a user clicks OUTSIDE of the view, I want it to be not enabled anymore (that means it should not display the blinking cursor anymore) and vice versa, when a user clicks it, I want to draw out its borders. How can I know if a user clicked in the view or not?

Generally, is this the right way to go? As I said before, I want to create a functionality much like that of a graphics application (like PhotoShop etc.), only a little less sophisticated.

Regards,
Michael
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Using NSTextViews in custom view
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: NSDateFormatter question...
  • Next by Date: Re: Disabling Display of JPG and PDF Files in NSTextView
  • Previous by thread: Re: NSDatePicker / NSDatePickerCell
  • Next by thread: Re: Using NSTextViews in custom view
  • Index(es):
    • Date
    • Thread