• 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
Using custom exposed bindings of custom views in Interface Builder?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using custom exposed bindings of custom views in Interface Builder?


  • Subject: Using custom exposed bindings of custom views in Interface Builder?
  • From: Frank Illenberger <email@hidden>
  • Date: Fri, 21 Nov 2003 19:15:57 +0100

I have subclassed an NSImageView and have given it several new attributes that I like to be exposed in the bindings panel in Interface Builder. The documentation says that I have to call "exposeBinding" in the classes +initialize method. So I am implementing it like this.

@implementation CustomImageView
+ (void)initialize
{
[CustomImageView exposeBinding:@"nameOfCustomAttribute"];
}
...


But this does not seem to work. When selecting the Bindings info panel in IB, only the original attributes of NSImageView are exposed.
So how do I really tell IB that my attributes are available to be bound? Without the possibilty of exposing my own attributes the controller layer really isn't exciting.

Thanks and cheers

Frank Illenberger
_______________________________________________
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: Using custom exposed bindings of custom views in Interface Builder?
      • From: Scott Anguish <email@hidden>
  • Prev by Date: Re: [OT] ssh tunnels and port < 1024 (NSTask)
  • Next by Date: Re: Where to set default user defaults?
  • Previous by thread: Re: dealloc of App Contoller never gets called
  • Next by thread: Re: Using custom exposed bindings of custom views in Interface Builder?
  • Index(es):
    • Date
    • Thread