• 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
NSTextView and LineNumber
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView and LineNumber


  • Subject: NSTextView and LineNumber
  • From: Wezzy <email@hidden>
  • Date: Sun, 16 Nov 2003 22:59:28 +0100

Hi all, i have 2 simple question :
1) how can i display line numbers on the right of my NSTextView subclass ?
2) how can i change the background color of a specific line ? (something like the debugger of Xcode) i've got the range and i've tried with
dict = [[NSDictionary alloc] initWithObjectsAndKeys:[NSColor redColor],@"NSBackgroundColorAttributeName",nil];

[[MyNSTextView textStorage] setAttributes:dict range:myRange];

but it doesn't work.

Thanks a lot for your time
Wezzy _______________________________________________
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.
  • Follow-Ups:
    • Re: NSTextView and LineNumber
      • From: Jonathan Jackel <email@hidden>
  • Prev by Date: Is there an Expose' event sent to an NSWindow?
  • Next by Date: Re: NSTextView and LineNumber
  • Previous by thread: Is there an Expose' event sent to an NSWindow?
  • Next by thread: Re: NSTextView and LineNumber
  • Index(es):
    • Date
    • Thread