• 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
Changing Insertion Point Size?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changing Insertion Point Size?


  • Subject: Changing Insertion Point Size?
  • From: Gerald Daniels <email@hidden>
  • Date: Wed, 05 Jun 2002 19:19:02 -0500

How do you change the size of the insertion point in an NSTextView? I would
like to change it into a block cursor, like you can have in Terminal.app.
Here is a snippet of my code, but when I run this the insertion point never
displays:

[textView lockFocus];
[textView drawInsertionPointInRect:NSMakeRect(0.0, 0.0, 5.0, 10.0)
color:[NSColor whiteColor]
turnedOn:YES];
[textView unlockFocus];

The textView object is a IBOutlet NSTextView which points to a NSTextView in
my .nib file.

When I just do this:

[textView setInsertionPointColor:[NSColor whiteColor]];

A regular insertion point is displayed.

Thanks.

--
Gerald W. Daniels II
Home: mailto:email@hidden
_______________________________________________
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.

  • Prev by Date: doesPathPointToFile
  • Next by Date: [ANN] improved image view
  • Previous by thread: Re: doesPathPointToFile
  • Next by thread: [ANN] improved image view
  • Index(es):
    • Date
    • Thread