Detecting textView alignment changes
Detecting textView alignment changes
- Subject: Detecting textView alignment changes
- From: Matt Ball <email@hidden>
- Date: Sat, 1 May 2004 15:27:53 -0400
I have an NSSegmentedControl in the toolbar of my app, which, when
pressed, changes the alignment of a textView. I need to know when a
user changes the textView's alignment using the menu so that I can
update the segmentedControl to reflect the new alignment. I also need
to know when the alignment has changed within a document (ie: on line
4, it is aligned to the right, but on line 5, it is centered. When the
user moves the cursor to line 5, I need to change the SegmentedControl
to reflect the new alignment). Is there some sort of NSNotification
that will help me accomplish this? Thanks.
-- Matt Ball
_______________________________________________
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.