• 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: NSView subclass bindings? NSTextView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSView subclass bindings? NSTextView?


  • Subject: Re: NSView subclass bindings? NSTextView?
  • From: Terrence Talbot <email@hidden>
  • Date: Sun, 9 Nov 2003 23:17:38 -0800

On Nov 9, 2003, at 10:44 PM, mmalcolm crawford wrote:


On Nov 9, 2003, at 7:04 PM, mmalcolm crawford wrote:

The tool tip for the data binding says that this is for an NSTextStorage object. Makes sense, but how do you hook that up?
Looks like it's actually expecting an NSMutableData...

A little more investigation: it *seems* it's actually RTFD data...

Yes, I discovered this, too, after implementing your suggestion. It would seem, then, that the IB tool tip for the binding is incorrect, or am I missing something else here?

I was actually also hoping to bind an NSTextView to a derived value. E.g., imagine the simple case of one text view that takes input, displaying it as plain text, a companion text view then redisplays the same text in bold when focus changes. I had anticipated dealing with mutable attributed strings, rather than a typed streams of rtf. Is there a known shortcut to unpacking the data, fiddling with the data, and packing it back up? I admit that I try not to deal with rtf all that often. All those twips...

Thanks much,


Terrence
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: NSView subclass bindings? NSTextView?
      • From: Kurt Marek <email@hidden>
References: 
 >NSView subclass bindings? NSTextView? (From: Terrence Talbot <email@hidden>)
 >Re: NSView subclass bindings? NSTextView? (From: mmalcolm crawford <email@hidden>)
 >Re: NSView subclass bindings? NSTextView? (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: NSView subclass bindings? NSTextView?
  • Next by Date: Re: best practices for globals/identifiers in a Cocoa app
  • Previous by thread: Re: NSView subclass bindings? NSTextView?
  • Next by thread: Re: NSView subclass bindings? NSTextView?
  • Index(es):
    • Date
    • Thread