• 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
NSView subclass + manual binding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSView subclass + manual binding


  • Subject: NSView subclass + manual binding
  • From: Raphael Sebbe <email@hidden>
  • Date: Mon, 9 Feb 2004 09:49:02 +0100

Hi all,

I am writing a subclass of NSView that has a property that I want to
bind to the a document attribute.

Using manual binding, I found it is possible to directly bind the view
to the document, using smth like this:
[_targetView bind:@"time" toObject:self withKeyPath:@"editingTime"
options:nil];
[self bind:@"editingTime" toObject:_targetView withKeyPath:@"time"
options:nil];

What are pros/cons of using direct binding, as opposed to using a
controller in between ?
Am I forced to have bi-directional binding in the case of direct
binding (it seems to) ?

Thanks !

Raphael
_______________________________________________
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 + manual binding
      • From: mmalcolm crawford <email@hidden>
  • Prev by Date: Re: Legality of scraping a web site?
  • Next by Date: Regarding to function absolute numbers.
  • Previous by thread: Mapping NSURLRequests to NSCachedURLResponses for WebView
  • Next by thread: Re: NSView subclass + manual binding
  • Index(es):
    • Date
    • Thread