• 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
Problems with CAConstraint
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems with CAConstraint


  • Subject: Problems with CAConstraint
  • From: Manfred Schwind <email@hidden>
  • Date: Wed, 20 Feb 2008 16:17:33 +0100

Hi,

I am trying to keep a sublayer quadratic and it's height (and width) should be the height of it's superview.

When I do the following:

[subLayer addConstraint:[CAConstraint constraintWithAttribute:kCAConstraintHeight
relativeTo:@"superlayer"
attribute:kCAConstraintHeight]];


The height is OK. But as soon as I try to adjust the width, the sublayer disappears completely:

[subLayer addConstraint:[CAConstraint constraintWithAttribute:kCAConstraintWidth
relativeTo:@"superlayer"
attribute:kCAConstraintHeight]];


Any ideas why?


Mani -- http://www.mani.de iVolume - Loudness adjustment for iTunes. LittleSecrets - The encrypted notepad.


_______________________________________________

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: Problems with CAConstraint
      • From: Bill Dudney <email@hidden>
  • Prev by Date: NSStringFromClass versus className ?
  • Next by Date: Re: setWantsLayer: YES causing font render problem?
  • Previous by thread: Re: NSStringFromClass versus className ?
  • Next by thread: Re: Problems with CAConstraint
  • Index(es):
    • Date
    • Thread