Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#whenCursorPositionChangedDo: can't find slot #cursorPosition #16790

Open
ericwinger opened this issue Jun 19, 2024 · 0 comments
Open

#whenCursorPositionChangedDo: can't find slot #cursorPosition #16790

ericwinger opened this issue Jun 19, 2024 · 0 comments

Comments

@ericwinger
Copy link

ericwinger commented Jun 19, 2024

Bug description
SpTextPresenter>>whenCursorPositionChangedDo: should send an event when the cursor position of the text widget changed. However, instead it gets a walkback.

To Reproduce
Implement #connectPresenters and send #whenCursorPositionChangedDo: to an instance of SpTextPresenter with a block to do something.
Open text presenter
See walkback. [ SlotNotFound signalForName: aName ] in LayoutClassScope(AbstractLayoutScope)>>resolveSlot: in Block: [ SlotNotFound signalForName: aName ]

connectPresenters

	super connectPresenters.
	self whenCursorPositionChangedDo: [
		Transcript
			cr;
			print: 'cursor position changed';
			flush ]

Expected behavior
An announcement of the changed cursor position would be desirable.

Stack
20240619_cursorPosition_walkback.txt

Version information:
Pharo 11.0.0
Build information: Pharo-11.0.0+build.714.sha.0ead11d0b8573ff685db8a39fceeca2a8d528d3e (64 Bit)

Expected development cost
Unknown

Additional context
None

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant