Re: How does Apple want us to deal with custom elements in Xcode 4, with IBPlugins having been killed?
Re: How does Apple want us to deal with custom elements in Xcode 4, with IBPlugins having been killed?
- Subject: Re: How does Apple want us to deal with custom elements in Xcode 4, with IBPlugins having been killed?
- From: Chris Hanson <email@hidden>
- Date: Sun, 14 Aug 2011 10:53:28 -0700
If you're targeting Mac OS X 10.6 or later, you can set arbitrary properties on your objects in Interface Builder that will be set via KVC at nib load time.
These are called "User Defined Runtime Attributes" and are specified in the Identity Inspector right under the place where you can set an object's custom class. It's a mini-plist editor, so you can specify not just a key path and a value, but the type of the value; the value can even be a localized string from your nib's string table.
-- Chris
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden