Re: Re: Binding to NSTextView
Re: Re: Binding to NSTextView
- Subject: Re: Re: Binding to NSTextView
- From: "Adam Johnson" <email@hidden>
- Date: Sun, 17 Sep 2006 16:45:38 -0400
You can't do it from IB? Oh well, so much for no glue code. Thanks anyways.
On 9/16/06, I. Savant <email@hidden> wrote:
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