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

Re: Custom NSView subclass + binding in IB


  • Subject: Re: Custom NSView subclass + binding in IB
  • From: Tim Lucas <email@hidden>
  • Date: Tue, 15 Feb 2005 16:23:28 +1100

On 15/02/2005, at 3:57 PM, Daniel Yankowsky wrote:
Hi all!

I'm relatively new to Cocoa programming. I'm trying to mess with Cocoa bindings.

uh oh

I have a custom subclass of an NSView. I want to bind a slider in my window to a property that I created of that view called "hue". However, I can't seem to convince IB to display this property in the bindings inspector page.

You missed mmalc's list resources post by 1 minute. Its not easy, but check out the "Graphics Bindings" example here:
http://homepage.mac.com/mmalc/CocoaExamples/controllers.html


I have read some allusions to the fact that you need to create an IB Palette to show bindings for a custom NSView subclass in IB. Is this true? If so, isn't that pretty lame?

You don't need to do that... though it isn't simple (let alone easy). See "Graphics Bindings" above (specifically JoystickView.m)


- tim lucas

http://www.toolmantim.com

_______________________________________________
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: Custom NSView subclass + binding in IB
      • From: Daniel Yankowsky <email@hidden>
References: 
 >Custom NSView subclass + binding in IB (From: Daniel Yankowsky <email@hidden>)

  • Prev by Date: Custom NSView subclass + binding in IB
  • Next by Date: Re: [Moderator] Cocoa and list resources
  • Previous by thread: Custom NSView subclass + binding in IB
  • Next by thread: Re: Custom NSView subclass + binding in IB
  • Index(es):
    • Date
    • Thread