NSTextView and LineNumber
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.