Re: Binding to NSTextView
Re: Binding to NSTextView
- Subject: Re: Binding to NSTextView
- From: "I. Savant" <email@hidden>
- Date: Sat, 16 Sep 2006 21:38:42 -0400
You can bind to pretty much anything in code ...
See -bind:toObject:withKeyPath:options: which is part of the
<NSKeyValueBindingCreation> informal protocol.
--
I.S.
On Sep 16, 2006, at 7:21 PM, Adam Johnson wrote:
I would like to keep the typing font (the font used for subsequent
characters) in objects in an NSArrayController, so each time the user
changes the selection, the text and the current font changes. I can
add a currentFont attribute to my objects, but there is no current
font binding visible to connect it to in NSTextView. NSTextView does
have typingAtrtibutes ans setTypingAttributes, which is KVC compliant,
but the typingAtrributes binding is not visible in IB. How can I
expose the typingAttributes binding, or can you tell me another way to
do this?
Thanks,
Adam Johnson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
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