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

Re: Using custom exposed bindings of custom views in Interface Builder?


  • Subject: Re: Using custom exposed bindings of custom views in Interface Builder?
  • From: Scott Anguish <email@hidden>
  • Date: Fri, 21 Nov 2003 15:38:53 -0500

Did you create a new palette with for the CustomImageView in Interface Builder?

If the custom object isn't in the runtime when IB goes looking for bindings, there is no way to find it.


On Nov 21, 2003, at 1:15 PM, Frank Illenberger wrote:

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.
_______________________________________________
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: Chris Hanson <email@hidden>
References: 
 >Using custom exposed bindings of custom views in Interface Builder? (From: Frank Illenberger <email@hidden>)

  • Prev by Date: copying an object instance using NSCopyMemoryPages
  • Next by Date: Re: NSLayoutManager and NSTextView problems
  • Previous by thread: Using custom exposed bindings of custom views in Interface Builder?
  • Next by thread: Re: Using custom exposed bindings of custom views in Interface Builder?
  • Index(es):
    • Date
    • Thread