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

Re: Problems with CAConstraint


  • Subject: Re: Problems with CAConstraint
  • From: Bill Dudney <email@hidden>
  • Date: Wed, 20 Feb 2008 16:34:51 -0700

Hi Mani,

Can't tell from the short code snipit, but some thing to keep in mind is that if you over constrain (3 of the 3 constraints possible on an axis) you will get unpredictable results.

HTH,


-bd- http://bill.dudney.net/roller/objc

On Feb 20, 2008, at 8:17 AM, Manfred Schwind wrote:

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

_______________________________________________

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: 
 >Problems with CAConstraint (From: Manfred Schwind <email@hidden>)

  • Prev by Date: Run time crash in App linking to WebKit (_kjs_pcre_free)
  • Next by Date: Re: NSStringFromClass versus className ?
  • Previous by thread: Problems with CAConstraint
  • Next by thread: Problem with NSStream newbie question
  • Index(es):
    • Date
    • Thread