• 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
Custom NSView Bindings (Newbie)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Custom NSView Bindings (Newbie)


  • Subject: Custom NSView Bindings (Newbie)
  • From: Vince Ackerman <email@hidden>
  • Date: Thu, 3 Feb 2005 15:09:06 -0800

Arrrgh, the binding thing again. Trying to learn by doing has got me confused.

I have read and re-read the docs on bindings and Views. Programatically, I copied the Joystick example bindings to create bindings for my NSView subclass object. It's a similar to joystick, in that I draw coordinates supplied by my model object in my view rectangle, and similarly pass mousedown coordinates from the view to my model object. Programatically, the bindings work. Everything draws correctly.

However, I don't understand some of the NSView bindings docs. Are all of the coded bindings I've written (that bind my variables in the custom view to the model ) replaceable by using a NSObjectController in IB, and the bindings pane of the info inspector? How do I do this? It mentions dragging my custom view header file to the nib file and then instantiate a customView instance. I did this and now I basically have I customview icon in my nib and another view rectangle in my main window where I want the drawing to take place. How do I connect all this together? Or is it possible? The docs just aren't explicit on all this.

Any help would be appreciated.... the simpler the better  : (

_______________________________________________
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


  • Prev by Date: NSTextField blocking mouseDown: on NSImageView
  • Next by Date: Erasing portion of NSView and custom cursors
  • Previous by thread: NSTextField blocking mouseDown: on NSImageView
  • Next by thread: Erasing portion of NSView and custom cursors
  • Index(es):
    • Date
    • Thread