• 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: How does Apple want us to deal with custom elements in Xcode 4, with IBPlugins having been killed?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Uli Kusterer <email@hidden>
  • Date: Tue, 16 Aug 2011 11:58:46 +0200

On 16.08.2011, at 00:31, Dale Miller wrote:
> It looks like Apple's current answer is to programatically create the custom elements. I find this interesting considering the roasting I took some time back when I wrote in about a problem I was having programatically creating a custom element. I remember a lot of dogmatic evangelism about always using IB. Everyone was more concerned with converting the sinner than in finding the problem, which, by the way, was a finger-check.

 You don't need to *create* them programmatically. All that's needed is dragging in a custom view, setting its custom class to your class.

 You may have to configure them programmatically, but if your custom class is similar enough to an existing class, you may get away without that. E.g. I wrote an NSButton subclass where you could specify the custom image to use for drawing the actual button body (which is different from the *content* image used) in its alternate title.

 Is it as pretty as having an integrated IBPlugin? No, but I need to get work done. I have a lot of custom UI, and most of it can be approximated by splitting it up into buttons and image views, with a few labels (of my own custom NSTextField subclass, so it can draw with shadow, bezel and vertically centered) in between.

Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de

_______________________________________________

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

References: 
 >Re: How does Apple want us to deal with custom elements in Xcode 4, with IBPlugins having been killed? (From: Dale Miller <email@hidden>)

  • Prev by Date: Re: How does Apple want us to deal with custom elements in Xcode 4, with IBPlugins having been killed?
  • Next by Date: Re: How does Apple want us to deal with custom elements in Xcode 4, with IBPlugins having been killed?
  • Previous by thread: Re: How does Apple want us to deal with custom elements in Xcode 4, with IBPlugins having been killed?
  • Next by thread: Re: Recommendations for creating a beta with date to expire
  • Index(es):
    • Date
    • Thread