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

Re: IB_DESIGNABLE - anyone got it to work?


  • Subject: Re: IB_DESIGNABLE - anyone got it to work?
  • From: Sean McBride <email@hidden>
  • Date: Tue, 12 May 2015 11:22:40 -0400
  • Organization: Rogue Research Inc.

On Tue, 12 May 2015 16:43:32 +1000, Graham Cox said:

>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?

After some difficulty, yes.  But it seems to only support direct subclasses of NSView, not NSControl for example.  What's your superclass?

Cheers,

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada

_______________________________________________

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: Graham Cox <email@hidden>
References: 
 >IB_DESIGNABLE - anyone got it to work? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Core Data sync between iOS and Mac apps
  • Next by Date: Re: Core Data sync between iOS and Mac apps
  • Previous by thread: Re: IB_DESIGNABLE - anyone got it to work?
  • Next by thread: Re: IB_DESIGNABLE - anyone got it to work?
  • Index(es):
    • Date
    • Thread