• 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: Binding to NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Re: Binding to NSTextView
      • From: "Adam Johnson" <email@hidden>
References: 
 >Binding to NSTextView (From: "Adam Johnson" <email@hidden>)

  • Prev by Date: Capturing keyboard input, including hotkeys
  • Next by Date: Re: Capturing keyboard input, including hotkeys
  • Previous by thread: Binding to NSTextView
  • Next by thread: Re: Re: Binding to NSTextView
  • Index(es):
    • Date
    • Thread