Are you sending convertFont: to the sender of changedFont:? I think this is required or controls start to get confused. May or may not solve your problem though.

On Apr 8, 2008, at 8:41 AM, Thomas Backman wrote:

Hey everybody. I'm working on a small app - to make the post shorter, lets just say that it displays (plain) text, but I want the user to be able to pick the font used (the same font should be used for all the text). Right now, I have a changedFont: method in my controller class, that changes the font successfully, and saves the font+size as a string and float. First off, is there a better way to save things? There has to be. Anyway, that wasn't my main question. More importantly, this does work, until you click in the textview... When that happens, changedFont: is no longer called, and the font stays the same.
Why? (It works again after an app restart.)
I've tried setting the textview delegate, and a sharedFontManager delegate, to my controller. (Not sure about what I'm doing here, as you might have noticed)

I realize I'm short on info, but I'm not exactly sure what info to provide, so please ask if you need more.

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to