Re: NSTextView question...
Re: NSTextView question...
- Subject: Re: NSTextView question...
- From: April Gendill <email@hidden>
- Date: Sun, 5 Oct 2003 21:25:52 -0700
On Sunday, October 5, 2003, at 07:38 PM, Alex Lock wrote:
>
Hey guys,
>
>
This might be a simple question, but I've been having a great deal of
>
trouble...
>
>
I want to be able to dynamically put text in a text field, but I do
>
NOT want said field to be editable. It seems when disabling
>
editability in IB it also makes the textView insertString: message
>
stop working. So, how does one accomplish this seemingly easy goal?
>
couldn't you not set it at all in IB (probably better to build it in
the program too) and then set it programatically from your awakefromnib
or whatever. Set it as noneditable, when you need to edit it, set it as
editable, edit it, set it back and so on. I might be way off base but
if nothing else that would be the first thing I'd try to do.
check out the NSTextView header
- (BOOL)isSelectable;
- (void)setSelectable:(BOOL)flag;
- (BOOL)isEditable;
- (void)setEditable:(BOOL)flag;
>
Also, how can one remove a text field from the responder chain so that
>
a user can't accidentally change focus to the non-editable region and
>
foul up my key press methods?
- (BOOL)resignFirstResponder;
- (BOOL)becomeFirstResponder;
Like I said I could be way off base here, but it looks like this is
what you need.
April.
>
>
Alex <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.
_______________________________________________
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.