NSTextView and EndEditing
NSTextView and EndEditing
- Subject: NSTextView and EndEditing
- From: James Housley <email@hidden>
- Date: Wed, 2 Feb 2005 08:32:48 -0500
My program has several tabs, on each tab is a NSTableView with a list
of items. To the right of that there are attributes of the item.
Currently there are 2 NSTextView and 2 NSTextField objects. I have no
problem detecting when editing ends on the NSTextField objects, for
both moving to a different object or a different tab. For NSTextView I
detect editing has ended when moving to a new object, but NOT when
clicking on a different tab. I am using
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(textDidEndEditing:)
name:NSTextDidEndEditingNotification object:Items_Required_Title];
Items_Required_Title is a NSTextView.
I have searched the archives and found similar questions, but I did not
see any answeres. I could have missed them.
I was thinking of using tabView:willSelectTabViewItem, and friends, to
force a change of focus before the tab actually changes. I think this
will work, but is there a better way?
Jim
--
/"\ ASCII Ribbon Campaign .
\ / - NO HTML/RTF in e-mail .
X - NO Word docs in e-mail .
/ \ -----------------------------------------------------------------
email@hidden http://www.FreeBSD.org The Power to Serve
email@hidden http://www.TheHousleys.net
---------------------------------------------------------------------
Do not meddle in the affairs of dragons, for you are crunchy and taste
good with ketchup.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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