• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Re: Binding to NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Binding to NSTextView
      • From: "I. Savant" <email@hidden>
References: 
 >Binding to NSTextView (From: "Adam Johnson" <email@hidden>)
 >Re: Binding to NSTextView (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: Checkbox in menuitem...
  • Next by Date: Re: Calling applescript from cocoa application and getting information back
  • Previous by thread: Re: Binding to NSTextView
  • Next by thread: Re: Binding to NSTextView
  • Index(es):
    • Date
    • Thread