• 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 won't allow a Return (Enter)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView won't allow a Return (Enter)


  • Subject: NSTextView won't allow a Return (Enter)
  • From: Steve Cronin <email@hidden>
  • Date: Sat, 07 Mar 2009 23:41:18 -0600

Folks;

I'm really puzzled by this one. In one window I have a TexView inside a ScrollView - works well - user can type many lines and scroller appear and disappear as expected.

In another window I have another TextView inside a ScrollView and every time the user hits the 'Return' or 'Enter' I get what is shown below.
What is making the TextView give up being first responder?
I can't see any difference in the IB settings...


The 'offending' textView accepts the cursor normally and as long as the user does not use the 'Enter/Return' all is well.
When that key is struck then the cursor disappears. A set of 'Tab's will bring the cursor back cycling through the various fields on the window.
I know this is probably one of those 'Duh' issues but I evidently need the whack on the head to see it....


Thanks for the tap,
Steve


#2 0x90837e94 in _NSSetObjectValueAndNotify
#3 0x907d9cee in -[NSObject(NSKeyValueCoding) setValue:forKey:]
#4 0x9085e7c1 in -[NSObject(NSKeyValueCoding) setValue:forKeyPath:]
#5 0x9194c441 in -[NSBinder _setValue:forKeyPath:ofObject:mode:validateImmediately:raisesForNotApplicableKeys:error :]
#6 0x9194c1f2 in -[NSBinder setValue:forBinding:error:]
#7 0x9194be8b in -[NSValueBinder _applyObjectValue:forBinding:canRecoverFromErrors:handleErrors:typeOfAlert:discardEditingCallback:otherCallback:callbackContextInfo:didRunAlert :]
#8 0x9194bb19 in -[NSValueBinder applyDisplayedValueHandleErrors:typeOfAlert:canRecoverFromErrors:discardEditingCallback:otherCallback:callbackContextInfo:didRunAlert :]
#9 0x9194e86e in -[NSValueBinder _applyDisplayedValueIfHasUncommittedChangesWithHandleErrors:typeOfAlert:discardEditingCallback:otherCallback:callbackContextInfo:didRunAlert :]
#10 0x9194b3fa in -[NSValueBinder validateAndCommitValueInEditor:editingIsEnding:errorUserInterfaceHandled :]
#11 0x9194b1b7 in -[_NSBindingAdaptor _validateAndCommitValueInEditor:editingIsEnding:errorUserInterfaceHandled:bindingAdaptor :]
#12 0x9194b0ef in -[_NSBindingAdaptor validateAndCommitValueInEditor:editingIsEnding:errorUserInterfaceHandled :]
#13 0x9181da6d in -[NSTextView(NSSharing) resignFirstResponder]
#14 0x91793b0d in -[NSWindow makeFirstResponder:]
#15 0x9181d628 in -[NSTextView(NSPrivate) _giveUpFirstResponder:]
#16 0x9181d4df in -[NSTextView(NSKeyBindingCommands) insertNewline:]
#17 0x9181d281 in -[NSResponder doCommandBySelector:]
#18 0x9181d108 in -[NSTextView doCommandBySelector:]
#19 0x91810229 in - [NSKeyBindingManager(NSKeyBindingManager_MultiClients) interpretEventAsCommand:forClient:]
#20 0x9180ee36 in -[NSTSMInputContext interpretKeyEvents:]
#21 0x9180e952 in -[NSView interpretKeyEvents:]
#22 0x9180e862 in -[NSTextView keyDown:]
#23 0x9177eddd in -[NSWindow sendEvent:]
#24 0x9174ad49 in -[NSApplication sendEvent:]
#25 0x916a869f in -[NSApplication run]
#26 0x916758a4 in NSApplicationMain


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Cleaner daemon managed by Launchd?
  • Next by Date: NSObjectController selection - now you see it, now you don't
  • Previous by thread: Re: NSString to Integer
  • Next by thread: Re: NSTextView won't allow a Return (Enter)
  • Index(es):
    • Date
    • Thread