• 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: Sun, 17 Sep 2006 18:07:31 -0400


Nobody said you'll never have to write any code if you use Bindings ...


--
I.S.


On Sep 17, 2006, at 4:45 PM, Adam Johnson wrote:

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
References: 
 >Binding to NSTextView (From: "Adam Johnson" <email@hidden>)
 >Re: Binding to NSTextView (From: "I. Savant" <email@hidden>)
 >Re: Re: Binding to NSTextView (From: "Adam Johnson" <email@hidden>)

  • Prev by Date: Re: Re: Drawing 32-bit images into an NSBitmapImageRep
  • Next by Date: Re: Checkbox in menuitem...
  • Previous by thread: Re: Re: Binding to NSTextView
  • Next by thread: Stealing keystrokes
  • Index(es):
    • Date
    • Thread