• 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
NSDrawThreePartImage - Strange scaling behavior, is it supposed to do that?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSDrawThreePartImage - Strange scaling behavior, is it supposed to do that?


  • Subject: NSDrawThreePartImage - Strange scaling behavior, is it supposed to do that?
  • From: aaron smith <email@hidden>
  • Date: Fri, 14 May 2010 13:53:47 -0700

Hello. Quick question.

I'm using NSDrawThreePartImage and for the most part it works. But
when the height of the views changes it's scaling the left and right
edges. I'm just not sure if it's supposed to be doing that?

Here are some images to see what's happening:
http://i.imgur.com/LviD0.png - normal, the component size is the same
size as the source image.
http://i.imgur.com/Wzvc3.png - this is normal looking when just the
width is changed.
http://i.imgur.com/cikiL.png - as soon as the height is changed, it's
scaling everything. This can't be right?

When the view draws, it's using [self bounds] as the frame for
NSDrawThreePartImage.

Here's my code that slices up the image for scale three:
http://pastebin.com/HgVGyLEp

I've put a bunch of logging in this method, and all of the rects are
always the same size, which is correct. So i'm not sure where the
scaling of the image is being introduced.

Any ideas?
Thanks!
_______________________________________________

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: NSDrawThreePartImage - Strange scaling behavior, is it supposed to do that?
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: TUTORIAL: Generating Unique ID Strings
  • Next by Date: Re: [[NSFileManager alloc] init] considered thread-safe
  • Previous by thread: Re: Crash Question
  • Next by thread: Re: NSDrawThreePartImage - Strange scaling behavior, is it supposed to do that?
  • Index(es):
    • Date
    • Thread