• 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: Problems with custom NSView subclass, IBPalette, and bindings support
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with custom NSView subclass, IBPalette, and bindings support


  • Subject: Re: Problems with custom NSView subclass, IBPalette, and bindings support
  • From: mmalcolm crawford <email@hidden>
  • Date: Wed, 26 Jan 2005 10:29:40 -0800


On Jan 26, 2005, at 6:40 AM, Sean McBride wrote:

On 2005-01-25 14:12, mmalcolm crawford said:
Now in IB, I see all my items listed automatically in the bindings part
of the 'Show Info' window (Cmd-4). I set one of them up, but as soon
as I did the disclosure triangle closed up and the binding item is now
greyed out. I've tried rebooting, rebuilding the palette, but I just
can't get the thing to be enabled.
Anyone seen this before?
In your implementation of bind:... have you called super?
Doh!  Adding that fixed it.  Thanks a million mmalc!

Actually, thanks to someone else in engineering who told me, and to Scott for rubbing it in...

Should I call super at the beginning or end of my implementation?

I don't think it matters.

Do I also need to call super for unbind? valueClassForBinding?
observeValueForKeyPath:...?

Probably, yes, I will check (unless Scott wants to chime in here?)...

Am I blind, or is this not documented?  Your GraphicsView.m and
JoystickView.m classes in you GraphicsBindings example also do not call
super.  Is doing so only needed if one is making an IBPalette?
No, it's not documented.  Please file an enhancement request.

I'm not sure exactly what's going on behind the scenes here, but to be candid I was a little surprised this was necessary. Assuming you're implementing an NSView subclass and you're taking care of all bindings yourself, the only place it seems to be required is in an IB palette.

mmalc

_______________________________________________
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: Problems with custom NSView subclass, IBPalette, and bindings support
      • From: "Sean McBride" <email@hidden>
    • Re: Problems with custom NSView subclass, IBPalette, and bindings support
      • From: Scott Anguish <email@hidden>
References: 
 >Re: Problems with custom NSView subclass, IBPalette, and bindings support (From: mmalcolm crawford <email@hidden>)
 >Re: Problems with custom NSView subclass, IBPalette, and bindings support (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: Detecting if iPod is connected?
  • Next by Date: Re: Arrow-keys as Key Equivalents in IB
  • Previous by thread: Re: Problems with custom NSView subclass, IBPalette, and bindings support
  • Next by thread: Re: Problems with custom NSView subclass, IBPalette, and bindings support
  • Index(es):
    • Date
    • Thread