• 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
IB_DESIGNABLE - anyone got it to work?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

IB_DESIGNABLE - anyone got it to work?


  • Subject: IB_DESIGNABLE - anyone got it to work?
  • From: Graham Cox <email@hidden>
  • Date: Tue, 12 May 2015 16:43:32 +1000

I’m exploring the use of the new IB_DESIGNABLE macro to preview a custom view live in IB.

It keeps complaining that my view is taking too long to draw, over 200mS, which seems to be a limit built into IB. However, when I measure the time myself for drawing, it’s nowhere near this long - 10mS max, typically 2mS. Because of this constant and apparently erroneous complaint, IB doesn’t show my custom view. I’ve even tried to do some minimal drawing (just filling the dirty rect) for just the Interface Builder target, but I get the same problem, so it’s pretty clear that the timeout is nothing to do with my drawing.

At other times IB complains that the rendering agent “crashed”, though it’s actually an exception from the bowels of Core Graphics. My usual drawing code never triggers the same exception, only when it’s drawn by the IB rendering agent.

Has anyone been able to make this work?

—Graham



_______________________________________________

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


  • Follow-Ups:
    • Re: IB_DESIGNABLE - anyone got it to work?
      • From: Sean McBride <email@hidden>
    • Re: IB_DESIGNABLE - anyone got it to work?
      • From: Roland King <email@hidden>
    • Re: IB_DESIGNABLE - anyone got it to work?
      • From: Kevin Meaney <email@hidden>
  • Prev by Date: Re: Rotate a standard Cocoa control?
  • Next by Date: Re: IB_DESIGNABLE - anyone got it to work?
  • Previous by thread: Re: Cannot create an NSPersistentStoreCoordinator with a nil model
  • Next by thread: Re: IB_DESIGNABLE - anyone got it to work?
  • Index(es):
    • Date
    • Thread